html - Css list align problems -
hei guys, have following problem:
as can see arrows not aligned text, i've tried alot of things didn't find solution, mabe can me, here code:
.domains-wrapper .sidebar{ width: 203px; } /* background */ .domains-wrapper .links .the-top{ background: url(/images/top-sidebar-domains.png) no-repeat; width: 202px; height: 7px; } /* background */ .domains-wrapper .links .repeat{ background: url(/images/repeat-sidebar-domains.png) repeat-y; width: 202px; } /*---here starts code list items---*/ .domains-wrapper .links .repeat ul{ padding-top: 14px; padding-bottom: 14px; padding-left:8px; padding-right: 8px; } .domains-wrapper .links .repeat ul li{ font-size: 12px; font-weight: bold; padding-left: 5px; height: 47px; border-bottom: 1px solid #f1f1f1; } .domains-wrapper .links .repeat ul li.hover{ background-color: #71ab32; } .domains-wrapper .links .repeat ul li.active a{ background: url(/images/sidebar-domains-arrows.png) no-repeat 0px 0px; } .domains-wrapper .links .repeat ul li a{ display: inline-block; background: url(/images/sidebar-domains-arrows.png) no-repeat 0px -96px; padding-left: 29px; color: #000; height: 25px; line-height: 47px; } .domains-wrapper .links .repeat ul li.hover a{ background: url(/images/sidebar-domains-arrows.png) no-repeat 0px -46px; color: #fff; } /*---here ends code list items---*/ /* background */ .domains-wrapper .links .bottom{ background: url(/images/bottom-sidebar-domains.png) no-repeat; width: 202px; height: 7px; }
and html
<div class="links"> <div class="the-top"></div> <div class="repeat"> <ul> <li class="active"><a href="#">link 1</a></li> <li><a href="#">link 1</a></li> <li><a href="#">link 1</a></li> <li><a href="#">link 1</a></li> </ul> </div> <div class="bottom"></div> </div><!-- end /.links -->
what i'm doing wrong?
it seems you're using css-sprite. adjust numbers (-46 , -96) until right , rid of inconsistencies height
smaller line-height
.
edit: way, might want switch block
instead of inline-block
links ie6.
Comments
Post a Comment