1
raghost
question about headerbar
  • 2005/4/10 12:59

  • raghost

  • Just popping in

  • Posts: 21

  • Since: 2005/4/9 2


Hi:

I putted some code in headerbar, so i can have the link to form, news etc. see below:
<table>
<tr>
<td id="headerbar" colspan="2" align=center>
<!-- hset the top bar in middle -->
<!-- navibar set -->
<a style="color:#ffffff" href="<{$xoops_url}>/">Home</a>
&nbsp;•&nbsp;
<a style="color:#ffffff" href="<{$xoops_url}>/modules/news/">News</a>
&nbsp;•&nbsp;
<a style="color:#ffffff" href="<{$xoops_url}>/modules/newbb/">Form</a>
&nbsp;•&nbsp;
<!--make a dot between each click-->
<a style="color:#ffffff" href="<{$xoops_url}>/search.php">Search</a>
</td>
</tr>
</table>

how can i set to like when mouse over the link the color change to black? i tried in style.css, but when i change the link color, all other link not in header bar changes too.. it massed up.

thank you

2
Herko
Re: question about headerbar
  • 2005/4/10 13:30

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


As you can see the table column has id="headerbar", we can use that to distingiush between normal links and the links in your header bar.

In you styles.css add this:
#headerbar a {
color: #FFFFFF;
}
#headerbar a:hover {
color: #000000'
}

That will make the links in your header bar white by default, and black when you hover over them.

Herko

3
raghost
Re: question about headerbar
  • 2005/4/10 15:14

  • raghost

  • Just popping in

  • Posts: 21

  • Since: 2005/4/9 2


icicici..

thank you very much!!!!