![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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: |
|
Firefox ignores the 'width' attribute. |
#3
| |||
| |||
|
|
Frank Rizzo <none (AT) none (DOT) com> wrote: 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 It's very poor code. It's actually completely wrong. Besides, your question is about CSS, not about HTML tags. In IE, it displays just like I intended: IE misbehaves as usual. Firefox ignores the 'width' attribute. That's correct. Try googling for "CSS FAQ". Try posting to the right group if problems remain, and don't forget to include a URL and to explain what you are really trying to achieve. |
#4
| |||
| |||
|
|
hey, are you a sadist or what? Sometimes, posters do make a genuine mistake and post to the wrong list. But so what. Can't you just kindly accept that? No need for agressive response. You might even know the answer to the prob that is reported.. Ed |
#5
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |