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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multi-line hyperlink mouseover

Status
Not open for further replies.

moron3

Technical User
Dec 2, 2008
17
US
I have a list of links to blog entries with line breaks between them in the sidebar of my website like this:

BlogEntry1

BlogEntry2

BlogEntry3

etc...


But the blog entries are chronological so I want the list to be all one link to BlogEntry1

I'm trying to make the whole list underline when the mouse cursor is over it using the text decoration attribute.

But the hyperlink stops when it reaches a line break...

Can you tell me how to make the list into one big hyperlink with underline on mouse hover? (while keeping the line breaks?)


 
If you wrap all the links in one <a> element and achieve the line breaks via <br /> attribute, you should have no problems achieving your goal. The fact is that that is a bad way to code a list of links (should be structured as list). If all "three" links point to one place, you should simply have only one link.

[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top