I need link hover code to make the link become underlined with a dashed underline.
I need link hover code to make the link become underlined with a dashed underline.
You can do this with CSS: Cascading Style Sheets. This is a type of code which goes in the head of your document, or in a seperate file.
The markup would look something like this:
So to do links, you can do this:Code:<html> <head> <style type="text/css"> /*CSS code goes here/* </style> </head> <body> </body> </html>
"a" stands for anchor, and hover is like an event handler, when you mouseover and mouse out do something, which is defined between to braces {}. That will set a hover affect for all the links on your page.Code:a:hover { text-decoration:underline; }
BTW: you might want to read a good CSS tutorial.
- Mike
Only solid underlines are possible. One could use a dashed border, but that doesn't carry the same semantics.Originally Posted by IllustriousLyts
Mike
Thanks a lot, it was needed for me as well
have a goood day
Think this is what you were looking for:
A:hover {
font-family: "Tahoma";
font-size: 8pt;
color: #9A8975;
text-decoration: none;
font-weight: normal;
border-bottom: #091434;
border-width: 0px 0px 1px 0px;
border-style: none none dotted none;
}
Bookmarks