Programming Breaks
Wednesday, July 10, 2013
Set the width of a span element in a web page
The following style won't work for a <span> element:
<span style="width:33.3%">Some content</span>
To set the width of the <span> element, use the following style instead
<span style="float:left;width:33.3%>Some content</span>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment