|
Posted by Jukka K. Korpela on April 4, 2006, 11:48 am
Please log in for more thread options
rich.sagall@pobox.com (Rich Sagall) wrote:
> I have a table with a number hot links.
Redesign the page then. Can't give any details because you didn't.
> I want to define the text in the table.
Parse that does but meaning your statement lacks.
> I also want the underlines to disappear from the links
Stop wanting that. Problem solved.
> and to
> have the text change to red when the cursor is on the text.
That makes more sense, though only because the popular browser still does not
use "hover" color by default. Simply set
:link:hover, :visited:hover { color: red; background: white; }
with the background setting tuned as needed.
> Here's what I have so far:
>
> <table width="100%" cellspacing=5 border="0"
> style="font-family:'Arial';text-decoration:none; font-size:90%;">
>
> It changes the font to Arial and sizes it correctly.
It's ugly markup, but apart from text-decoration, there would not be anything
fundamentally wrong _if_ you had tabular data with so many columns that it
pays off to take all the risks caused by font size reduction, in hope of
making the data fit better.
> However, the underline remains.
Fine. Stop trying to create problems.
> I am not sure the correct syntax for adding the hover
> options to this code.
Well, you're wrong, and your question seems to revolve around CSS, not HTML,
so you're in the wrong group. However, the abuse of tables is somewhat of an
HTML issue, and the answer is that you should use <ul> to set up a list of
links.
--
Yucca, http://www.cs.tut.fi/~jkorpela/ Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
|