Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Tags > span tag with w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 381 of 439
Post > Topic >>

span tag with width style attribute doesn't work in Firefox

by Frank Rizzo <none@[EMAIL PROTECTED] > Dec 10, 2005 at 09:49 PM

I have the following code.
<span style="width:100px;background-color:Red;">text</span>
<span style="width:100px;background-color:Green;">test</span>
<span style="width:100px;background-color:Blue;">test</span>

In IE, it displays just like I intended:  100 pixels of red color, 
followed by 100 pixels of green color, followed by 100 pixels of blue 
color all on the same line.

Firefox ignores the 'width' attribute.  It only displays the red color 
enough to display the word 'test'.  I can't use the DIV tag because it 
forces a line break.  I need all this stuff to be on the same line.

What can I do to replicate the behaviour above in Firefox?

Thanks.




 5 Posts in Topic:
span tag with width style attribute doesn't work in Firefox
Frank Rizzo <none@[EMA  2005-12-10 21:49:01 
Re: span tag with width style attribute doesn't work in Firefox
"Jukka K. Korpela&qu  2005-12-10 23:06:39 
Re: span tag with width style attribute doesn't work in Firefox
Ed <ex@[EMAIL PROTECTE  2005-12-11 23:08:19 
Re: [OT] span tag with width style attribute doesn't work in
Kurt Kroon <kroon@[EMA  2005-12-15 21:23:41 
Re: span tag with width style attribute doesn't work in Firefox
"Jim Michaels"   2006-02-02 23:47:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 12:39:51 CDT 2008.