Welcome visitor
* Login
* Register
It is currently March 25th, 2019, 2:13 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  navigation bar issues with css
PostPosted: July 8th, 2009, 4:42 pm 

Posts: 22
hi, im using a 1row table with 5 cells as my navigation bar. Im using a class to change the background of the cell on which the mouse is over, but its changing all the 5 cells and not only one, can you help me?


Top
 Profile  
 
  Re: navigation bar issues with css
PostPosted: July 8th, 2009, 5:06 pm 
User avatar

Posts: 137
can you show us some code? but it seems like you add the code to the tr instead of the td individually, check that.


Top
 Profile  
 
  Re: navigation bar issues with css
PostPosted: July 8th, 2009, 11:06 pm 

Posts: 22
<style>
.links:hover{background-color: #f73}
</style>

<body>
<table><tr class="links">
<a href="index.html"><td>home</td></a>
<a href="dir/1.html"><td>The Complete Works</td></a>
<a href="dir/2/1.html"><td>The Essays</td></a>
<a href="dir/2/2.html"><td>Poetry</td></a>
<a href="file.html"><td>FAQuestions</td></a>
</tr></table>


Top
 Profile  
 
  Re: navigation bar issues with css
PostPosted: July 9th, 2009, 12:55 am 
User avatar

Posts: 137
try this
<table><tr>
<a href="index.html"><td class="links">home</td></a>
<a href="dir/1.html"><td class="links">The Complete Works</td></a>
<a href="dir/2/1.html"><td class="links">The Essays</td></a>
<a href="dir/2/2.html"><td class="links">Poetry</td></a>
<a href="file.html"><td class="links">FAQuestions</td></a>
</tr></table>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron