| | Well, I actually don't know what it is. But I need a code where you can click everywhere on the table, not only on the text/image. |
|
|
Ahh.. I see. I know what you are talking about. A TEXT in a TD cell and just hovering on that CELL and clicking will activate that link.
That is a cool effect and looks nice. CODE <table name="badger"> <tr> <td class="row1" width="100%" style="cursor:hand; padding: 30px; border: 1px solid black;" onclick="window.location.href='linked_page.html'">THIS IS CONTENT</td> </tr> </table> try this...
Yeah! That's exactly what I need, but with a mouseover effect! (changing colour)
CODE <style> a.menu:link {display:block;width:100%;background:white} a.menu:visited {display:block;width:100%;background:white} a.menu:hover {display:block;width:100%;background:blue} a.menu:active {display:block;width:100%;background:white} </style> <table border=1 width=100 cellpadding=0 cellspacing=0> <tr><td><a href="link1.html" class=menu>1</a></td></tr> <tr><td><a href="link2.html" class=menu>2</a></td></tr> <tr><td><a href="link3.html" class=menu>3</a></td></tr> <tr><td><a href="link4.html" class=menu>4</a></td></tr> </table> you can modify the CSS so that the colors and the look is right for you.
actually, I just realized where it says
CODE a.menu:hover {display:block;width:100%;background:blue} you sould change the BLUE to some other color because the link color is automatically BLUE and you won't see the link when you hover over it. Just letting you know in case you try the code and see it doesn't work. There are many things you can change using CSS. It is very powerful.
I liked the code. But there's one problem left:
The height is 75px. It's not used in a menu, but in a content. So it will only hover when I click the beside the text, not below or above.
just add "height:100%" to all the stuff in the style area.
It don't work. The only thing that changed is:
In firefox, the text is in the middle(nothing changed), in IE, it's on the top. I want the text in the middle, and the whole cell has the hover effect/link. Now, only the width of the text has the hover effect (almost nothing changed)
the code works. you must have done something wrong. But the only thing it will not do is center it. do you have a link I can see where you want to use this? And what is in your table? That would be easier. Cause in order to center it you might have to do it with padding.
Recent Queries:-
Keywords : table, cell, link
(2) This is another refresh problem question. The project I'm doing uses tons of frames (I know, (5) I have an online application Form that multiple groups use from their own webpages. I would like the refresh local webpage (16) /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> post it on ur website (5) Is there a way to make a link that actually creates a desktop shortcut? I have a page that gives IDK how to make them link (3) Ok its a big problem to me, i need to make my drop down menus options link to a web page. I know i (5) Hey all, i dont know how easy this is to do or whether it can be done just using HTML or whatever. web site link (5) Hi i find this web site you can learn html lan very fast and very easy woow i found it many (12) Wee... Another question: How can I make that clicking on a specific link expand to something? (4) hi, how do you make the linkcolor fade to another color when pointing your cursor to the link? Looking for table, cell, link
|
|
![]() Table/cell Link? |
| ADD REPLY / Got an Opinion! | a humble request :-) | RAPID SEARCH! | Free Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|