Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to Resize Navbar Items?
Anyone know how to get the navbar items a particular width? I have set a background image, and now I'm trying to make it show the whole image. This comes out of vanilla.css....
#Header ul li a {
padding:1px 10px;
margin:0px;
font-size:11px;
text-decoration:none;
color:#fff;
width:139px;
height:35px;
background: transparent url(nav_up.png);
}
Please reply, this is making me go crazy!
peace
0
This discussion has been closed.
Comments
Then they invented inline-block, which behaves like an inline element but can have the size changed. Everybody was happy, until they realized that it doesn't work at all in any Mozilla browsers. Why? Who the heck knows. It's one of the oldest unresolved bugs, so the most common theory is "they're lazy and don't give a crap".
<li class='TabOn'><a href='http://lussumo.com/community/discussions/'>Discussions</a></li>
So you need to put one image on the LI, and one on the A:
li.TabOn { margin: 0; padding: 0; background: transparent url(left.png) left top no-repeat; } li.TabOn a { padding: 0 24px; background: transparent url(right.png) right top no-repeat; }
Change the padding as needed, a first guess would be 5-6 pixels more than the width of the left and right images.
This is what I'm trying to do here...
Hey, I'm not great with css but with the "behaviour" tag couldn't I just draw the whole image using js or something?