Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse Overs 1

Status
Not open for further replies.

Montroze

Technical User
Apr 20, 2001
113
CA
When I mouse over links my page shifts a bit, either horizontaly or vertically, anyone know how to fix this? I tried taking out the Border-width and it didnt help.Thanks

<STYLE TYPE=&quot;text/css&quot;><!--
A:link { text-decoration: none; color: #0000ff; font-weight:bold; font-face:arial }
A:visited { text-decoration: none; color: #990000; background-color: #000000; }
A:active { text-decoration: none; color: #0000FF }
A:hover { text-decoration: none; color: #FF0000 ;background-color: White; font-family:arial, verdana, tahoma, ms sans serif;font-size:12;border-color:White; border-width : 1px;}

-->
</STYLE>


<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
var event = 0; //for backwards compatibility.
var id = &quot;&quot;; //for backwards compatibility.

function rollBG(event,name,color) {
if (document. layers) { //test for communicator 4+
if (color==null)
var color = (event. type == &quot;mouseover&quot;) ? &quot;Silver&quot; : &quot;White&quot;;
document[name]. bgColor = color; //set the background color
}
}
</SCRIPT>
 
Hi Montroze,

I think it may be because of this part in your css:
its in the a:hover, font-size:12;. try using 10
instead of 12. Maybe that helps, BobbaFet

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
I'd suggest taking the font-size out of the hover style entirely, and let it use the same font size a for the normal anchor. If you want a different font size for your anchors than for other text, use a style for all anchors:
Code:
A {font-size:12pt;}
That will also make it easier to modify later if you need to. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top