944,148 Members | Top Members by Rank

Ad:
Sep 29th, 2009
-1

Add mouseover change color to links and background on Vbulletin?

Expand Post »
Hey Daniwebs members

Was wondering if any one could tell me how to add the mouseover to links? because i've tried applying the style sheet, but it doesnt seem to be working Can someone tell me how to do this pleaseeeeeeeeeeeee
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
Gearspro is offline Offline
38 posts
since Aug 2009
Oct 4th, 2009
0

Re: Add mouseover change color to links and background on Vbulletin?

HTML and CSS Syntax (Toggle Plain Text)
  1. a:hover
  2. {
  3. background-color: blue;
  4. color: white;
  5. }
Reputation Points: 25
Solved Threads: 23
Junior Poster
cfajohnson is offline Offline
193 posts
since Dec 2008
Oct 4th, 2009
0

Re: Add mouseover change color to links and background on Vbulletin?

Click to Expand / Collapse  Quote originally posted by cfajohnson ...
HTML and CSS Syntax (Toggle Plain Text)
  1. a:hover
  2. {
  3. background-color: blue;
  4. color: white;
  5. }
Thanks for the info, but where in the coding do i apply this?
Reputation Points: 10
Solved Threads: 0
Light Poster
Gearspro is offline Offline
38 posts
since Aug 2009
Oct 4th, 2009
0

Re: Add mouseover change color to links and background on Vbulletin?

external stylesheet
html Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. <link rel="stylesheet" type="text/css" href="http://www.yoursite.com/style.css">
  4. </head>
  5. <body>
  6. bla bla bla
  7. </body>
  8. </html>
with style.css containing amid the other styles
css Syntax (Toggle Plain Text)
  1. a:hover { background-color: blue; color: white; }
header styles
html Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. <style type='text/css'>
  4. <!--
  5. a:hover { background-color: blue; color: white; }
  6. -->
  7. <style>
  8. </head>
  9. <body>
  10. bla bla bla
  11. </body></html>
inline styles
html Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <a href='thisfile' style="hover { background-color: blue; color: white; }" > thisfile </a>
  6. </body>
  7. </html>
most use external stylesheets
only one file need be altered to update the whole site
header styles, contain the full stylesheet in every page
inline styles contain the full style in every link on every page
they get exponentially bigger
each has a purpose
external stylesheet to style a site
header style to make a single page different
inline style to make a single element different
Reputation Points: 562
Solved Threads: 369
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Oct 7th, 2009
0
Re: Add mouseover change color to links and background on Vbulletin?
Click to Expand / Collapse  Quote originally posted by almostbob ...
external stylesheet[code=html]
<html>
<head>
<style type='text/css'>
<!--

There is no need to comment out the style rules, and hasn't been since Netscape 4.
Quote ...
<a href='thisfile' style="hover { background-color: blue; color: white; }" > thisfile </a>

Where did you come up with that? It's nonsense! Did you even try it?
Reputation Points: 25
Solved Threads: 23
Junior Poster
cfajohnson is offline Offline
193 posts
since Dec 2008
Oct 7th, 2009
0
Re: Add mouseover change color to links and background on Vbulletin?
never left out a colon?
its a typo, Human error
<a href="http://www.w3.org/style/CSS" style="{color: blue; background: white} :visited {color: green} :hover {background: yellow} :visited:hover {color: purple} "> Example of a hyperlink to the CSS home page with special one-off visited and hover effects. </a>
Reputation Points: 562
Solved Threads: 369
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Oct 7th, 2009
0
Re: Add mouseover change color to links and background on Vbulletin?
Click to Expand / Collapse  Quote originally posted by almostbob ...
never left out a colon?
its a typo, Human error
<a href="http://www.w3.org/style/CSS" style="{color: blue; background: white} :visited {color: green} :hover {background: yellow} :visited:hover {color: purple} "> Example of a hyperlink to the CSS home page with special one-off visited and hover effects. </a>

That even more bizarre. Does it work anywhere?
Reputation Points: 25
Solved Threads: 23
Junior Poster
cfajohnson is offline Offline
193 posts
since Dec 2008
Oct 9th, 2009
0
Re: Add mouseover change color to links and background on Vbulletin?
Thanks for all the help guys, but can someone classify which is the best to implement on a site, because its confusing as people are saying some are really old, dont work at all etc.

Thanks.
Reputation Points: 10
Solved Threads: 0
Light Poster
Gearspro is offline Offline
38 posts
since Aug 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: How to get anchor link specific area of a page.
Next Thread in HTML and CSS Forum Timeline: HTML to CSS and something else





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC