Anyways... I actually don't need this answered anymore... I figured out what was going on and how to fix it to fit my needs. When I set the <a> tag to being 100% it was taking 100% of the parent element (the width of the list was 125px, so it would be 125px) and it added the padding and borders of the <a>. The padding was 5px and the border was 1px...
Code:
/* menu links style */
.suckerdiv ul li a{
display: block;
color: black;
text-decoration: none;
background: #fff;
padding: 1px 5px;
border: 1px solid #ccc;
border-bottom: 0;
}
and since they go on both sides I gave my <a> tag a value of 113 (125px total - 10px total padding - 2px total border = 113px).
Now it looks like:
Code:
/* menu links style */
.suckerdiv ul li a{
display: block;
color: black;
text-decoration: none;
background: #fff;
padding: 1px 5px;
border: 1px solid #ccc;
border-bottom: 0;
width: 113px;
}
The only real important part of this post was that .suckerdiv ul li a needs a width value that is:
width = ul width - (padding-left + padding right + border-left + border-right)
to work properly so that things don't get oversized. I don't know if that helps anyone at all. At least that worked for me =)
Bookmarks