"Applebrown" <applebrown@gamebanshee.takethis.andthisout.com> wrote in
message news:oU5vc.643847$Ig.21454@pd7tw2no...[color=blue]
> "Steve Pugh" <steve@pugh.net> wrote in message
> news:jjopb0pt43n42blmb9qbpbfk74t31h4nhm@4ax.com...[color=green]
> > "Applebrown" <applebrown@gamebanshee.takethis.andthisout.com> wrote:
> >[color=darkred]
> > >I'm attempting to make a simple horizontal navbar with three image[/color][/color][/color]
links,[color=blue][color=green][color=darkred]
> > >and with those images replaced on hover and active...[/color]
> >
> > and on focus as well?[/color]
>
> er... hmm? Yes, I have lots to learn.
>[color=green][color=darkred]
> > >and I'm not sure of
> > >the proper CSS to do this, though I've tried unsuccessfully.[/color]
> >
> > CSS (as supported by current browsers and especially IE) can only set
> > background images.
> >[color=darkred]
> > >This is the site:
www.sunbadgeco.com/sunmetal/index.htm[/color]
> >
> > Oh dear:
> >[/color]
>[/color]
http://validator.w3.org/check?uri=ht...nmetal/index.h[color=blue]
> tm[color=green]
> >[color=darkred]
> > >Here's my simple centered navbar with extraneous (alt) coding removed:[/color][/color]
>
> It's my first attempt at completely XHTML and the site's not live yet. Not
> to mention it's my first attempt at a completely CSS driven site. It will[/color]
be[color=blue]
> fixed :)[/color]
All fixed.
[color=blue][color=green][color=darkred]
> > > <div id="navmain">
> > ><a href="artists.htm"><img src="images/artists_inactive.jpg" border="0"
> > >width="148" height="35"></a>
> > ><img src="images/spacergraphic.gif" width="55" height="35">
> > ><a href="contact.htm"><img src="images/contact_inactive.jpg" border="0"
> > >width="163" height="35"></a>
> > ><img src="images/spacergraphic.gif" width="55" height="35">
> > ><a href="about.htm"><img src="images/about_inactive.jpg" border="0"
> > >width="90" height="35"></a>
> > > </div>
> > >
> > >I'd like each link image named "_inactive.jpg" to be swapped with the[/color][/color]
> same[color=green][color=darkred]
> > >size "_active.jpg" when hovered over. The lights behind the text are
> > >supposed to go from dim to bright using this method. Any help would be
> > >greatly appreciated.
> > >
> > >My navmain CSS follows:
> > >#navmain {
> > > display: block;
> > > margin-left: auto;
> > > margin-right: auto;
> > > padding: 0;
> > > text-align: center;
> > >}[/color]
> >
> > Either make the images background images and change them via CSS, or
> > change the foreground images with JavaScript.[/color]
>
> Sounds like good advice. Can you give a brief example using only CSS?
>
>
>[/color]