tslice
12-08-2008, 05:50 PM
Here is my basic code snippet:
/* TOP ================================================== */
#top {
display: block;
width: 960px;
margin: 5px auto 0 auto;
}
#top .links {
list-style: none;
margin-left: 7.5px;
font-size: 15px;
}
#top .links li {
float: left;
margin: 0 2.5px;
height: 32px;
line-height: 32px;
}
#top .links a {
display: block;
text-decoration: none;
border: solid 1px #000000;
border-bottom: none;
background-color: #F0F0F0;
padding: 0 5px;
}
#top .links a:hover {
background-color: #FFFFFF;
}
#top .links img {
border: none;
padding-right: 3px;
position: relative;
top: 2px;
}
#top .search {
float: right;
margin-right: 10px;
border: solid 1px #000000;
border-bottom: none;
height: 32px;
line-height: 32px;
padding: 0 5px;
background: #F0F0F0;
}
<div id="top">
<ul class="links">
<li><a href="http://localhost:8888/" title="ArtesiaNews.com Homepage">Home</a></li>
<li><a href="http://localhost:8888/feed/" title="Subscribe to ArtesiaNews.com">News</a></li>
<li><a href="http://localhost:8888/feed/" title="Subscribe to ArtesiaNews.com"><img src="http://localhost:8888/wp-content/themes/adp/images/feed-icon16x16.png" alt="RSS"/></a></li>
<li><a href="http://localhost:8888/feed/" title="Subscribe to ArtesiaNews.com"><img src="http://localhost:8888/wp-content/themes/adp/images/feed-icon16x16.png" alt="RSS"/> News</a></li>
<li><a href="http://localhost:8888/comments/feed/" title="Subscribe to Comments"><img src="http://localhost:8888/wp-content/themes/adp/images/feed-icon16x16.png" alt="RSS"/> Comments</a></li>
</ul>
<form class="search" method="get" action="http://localhost:8888">
<input class="text" name="s" type="text" value="Search" maxlength="150" onfocus="this.value=(this.value=='Search' ) ? '' : this.value;" onblur="this.value=(this.value=='' ) ? 'Search' : this.value;" />
<input type="submit" class="button" value="Go" />
</form>
</div>
Working example can be found at artesianews.freshgreenmedia.com
I'm trying to get the RSS icons to work alongside the text in the very top tabs. Super easy to do in any other browser, but IE 6 has got me stumped.
Any ideas?
/* TOP ================================================== */
#top {
display: block;
width: 960px;
margin: 5px auto 0 auto;
}
#top .links {
list-style: none;
margin-left: 7.5px;
font-size: 15px;
}
#top .links li {
float: left;
margin: 0 2.5px;
height: 32px;
line-height: 32px;
}
#top .links a {
display: block;
text-decoration: none;
border: solid 1px #000000;
border-bottom: none;
background-color: #F0F0F0;
padding: 0 5px;
}
#top .links a:hover {
background-color: #FFFFFF;
}
#top .links img {
border: none;
padding-right: 3px;
position: relative;
top: 2px;
}
#top .search {
float: right;
margin-right: 10px;
border: solid 1px #000000;
border-bottom: none;
height: 32px;
line-height: 32px;
padding: 0 5px;
background: #F0F0F0;
}
<div id="top">
<ul class="links">
<li><a href="http://localhost:8888/" title="ArtesiaNews.com Homepage">Home</a></li>
<li><a href="http://localhost:8888/feed/" title="Subscribe to ArtesiaNews.com">News</a></li>
<li><a href="http://localhost:8888/feed/" title="Subscribe to ArtesiaNews.com"><img src="http://localhost:8888/wp-content/themes/adp/images/feed-icon16x16.png" alt="RSS"/></a></li>
<li><a href="http://localhost:8888/feed/" title="Subscribe to ArtesiaNews.com"><img src="http://localhost:8888/wp-content/themes/adp/images/feed-icon16x16.png" alt="RSS"/> News</a></li>
<li><a href="http://localhost:8888/comments/feed/" title="Subscribe to Comments"><img src="http://localhost:8888/wp-content/themes/adp/images/feed-icon16x16.png" alt="RSS"/> Comments</a></li>
</ul>
<form class="search" method="get" action="http://localhost:8888">
<input class="text" name="s" type="text" value="Search" maxlength="150" onfocus="this.value=(this.value=='Search' ) ? '' : this.value;" onblur="this.value=(this.value=='' ) ? 'Search' : this.value;" />
<input type="submit" class="button" value="Go" />
</form>
</div>
Working example can be found at artesianews.freshgreenmedia.com
I'm trying to get the RSS icons to work alongside the text in the very top tabs. Super easy to do in any other browser, but IE 6 has got me stumped.
Any ideas?