| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe and Support WebmasterWorld|
|anchor border and container div width- IE issue|
| 11:08 am on Feb 20, 2012 (gmt 0)|
|below is the extracted code to show an issue in IE only.|
I am expecting border for <a> but top border is not visible in IE if container div got width sepcified.
Kept css inline for easy replication.
<ul style='border-bottom:1px solid #778;'>
<a href="#" style='border:1px solid green;text-decoration:none'>Item one</a>
| 5:27 pm on Feb 20, 2012 (gmt 0)|
Welcome aboard poonkave, but you may have to change the display of the anchor to block or inline-block. Right now it's default, inline, so it really has no "height" so won't have a border-top.
This presents another problem. A block element inside an inline element (the LI's) is bound to create more issues, moving forward you may have to change the layout of the LI's.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved