Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Width problem in Chrome


Paul_o_b - 7:06 pm on Dec 2, 2011 (gmt 0)


Ok, I can see an issue in webkit and it certainly looks like a bug as the width should not expand if the element has zero width.

If you are trying to hide the element then display:none or position absolute and position offscreen will make the elements behave as normal.

Otherwise if you must have that width:0 for some reason then you could offset the width with a negative margin.

e.g.

.tab-content{width:0;margin-right:-400px;}


That should make chrome behave but check it doesn't have adverse effects.


Thread source:: http://www.webmasterworld.com/css/4393141.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com