Well, turns out that venting here and completely giving up was exactly what I needed. For some reason, it hadn't occurred to me to, oh, say, USE the ids I set up.
(is there a *smacks head* smilie here?
)
If anyone cares, here's my code. Hope it helps someone else out!
HTML:
Code:
<body>
<div id="tabs">
<ul>
<li><a href="index.html" class="home"></a></li>
<li><a href="about.html" class="about"></a></li>
<li><a href="musings.html" class="musings"></a></li>
<li><a href="excerpts.html" class="excerpts"></a></li>
<li><a href="gallery" class="gallery"></a></li>
<li><a href="contacts.html" class="contacts"></a></li>
</ul>
</div>
</body>
CSS:
Code:
#tabs {
background-color: none;
border-bottom: none /* Sets the bottom border properties for an element using shorthand notation */
height: 101px;
padding: 0px 0px 0px 0px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
}
#tabs {
width: 520px;
height: 101px;
}
#tabs ul {
padding: 0px;
position:absolute;
}
#tabs li {
float:left;
}
#tabs li a.home {
background: url(tabs/home_icon.png) no-repeat 0 0 transparent;
height: 101px;
width: 100px;
padding: 0px;
border: 0px;
margin: 0px;
position:absolute;
left: 0px;
top: auto;
tag: div;
}
#tabs li a.about {
background: url(tabs/about_icon.png) no-repeat 0 0 transparent;
height: 101px;
width: 100px;
padding: 0px;
border: 0px;
margin: 0px;
left: 102px;
position:absolute;
top: auto;
tag: div;
}
#tabs li a.musings {
background: url(tabs/musings_icon.png) no-repeat 0 0 transparent;
height: 101px;
width: 122px;
padding: 0px;
border: 0px;
margin: 0px;
left: 204px;
position:absolute;
top: auto;
tag: div;
}
#tabs li a.excerpts {
background: url(tabs/excerpts_icon.png) no-repeat 0 0 transparent;
height: 101px;
width: 129px;
padding: 0px;
border: 0px;
margin: 0px;
left: 306px;
position:absolute;
top: auto;
tag: div;
}
#tabs li a.gallery {
background: url(tabs/gallery_icon.png) no-repeat 0 0 transparent;
height: 101px;
width: 165px;
padding: 0px;
border: 0px;
margin: 0px;
left: 408px;
position:absolute;
top: auto;
tag: div;
}
#tabs li a.contacts {
background: url(tabs/contacts_icon.png) no-repeat 0 0 transparent;
height: 101px;
width: 136px;
padding: 0px;
border: 0px;
margin: 0px;
left: 510px;
position:absolute;
top: auto;
tag: div;
}
#tabs a.home:hover {
background-position: 0 -100px;
}
#tabs a.about:hover {
background-position: 0 -100px;
}
#tabs a.musings:hover {
background-position: 0 -100px;
}
#tabs a.excerpts:hover {
background-position: 0 -100px;
}
#tabs a.gallery:hover {
background-position: 0 -100px;
}
#tabs a.contacts:hover {
background-position: 0 -100px;
}
#tabs a.home:active {
background-position: 0 -200px;
}
#tabs a.about:active {
background-position: 0 -200px;
}
#tabs a.musings:active {
background-position: 0 -200px;
}
#tabs a.excerpts:active {
background-position: 0 -200px;
}
#tabs a.gallery:active {
background-position: 0 -200px;
}
#tabs a.contacts:active {
background-position: 0 -200px;
}
Now, I have all my fingers crossed that it plays nicely with the rest of my site!
Bookmarks