Forum Moderators: not2easy
i tried a lot of variations...now i'm pretty worried if this actually works somehow.
so here's what's inside:
------------------------
#header {
background:#269 url("http://left.com/right.gif") no-repeat left bottom;
padding:0 0 0 160px;
margin:0 0 10px;
color:#fff;
width:100%;
width/* */:/**/auto;
width:auto;
}
-------------------------
thank you for any hint!
snoop
Although it will usually work, browsers being forgiving and all, you really shouldn't put a link on a block element; your page won't validate because technically, links should only be on inline elements.
One solution is to give your link display:block and then give it the background you desire.
<html>
<style type="text/css" media="all">
ul {
margin: 0; padding: 0; border: none;
}
li {
border-bottom: .1em solid #000;
margin: 0; padding: 0; list-style: none; text-align: center;
background-color: #faebd7;
}
li a {
display: block; padding: .3em .5em;
text-decoration: none;
border-left: .5em double #900;
border-right: .5em double #900;
}
li a:hover {
border-left: .5em solid #000;
border-right: .5em solid #000;
color: #900;
}
</style>
<body>
<ul>
<li>
<a href="">
</a>
</li>
</ul>
</body>
</html>