Code, cssMarch 5, 2007 8:51 pm
Have Firefox use width for span
Use the following style in order to be able to use the width attribute in Firefox:
<style type="text/css">
span {display:-moz-inline-box; /* Gecko proprietary */
display:inline-block; /* supported by Opera and ? */
width:25%;height:1em; /* width and height required */
vertical-align:top; /* Gecko needs this */
} /* IE, Opera & Gecko slight diff */
</style>
From http://www.thescripts.com/forum/thread161350.html
The URI to TrackBack this entry is: http://jdev.blogsome.com/2007/03/05/have-firefox-use-width-for-span/trackback/
No comments yet.
RSS feed for comments on this post.
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>