![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, my problem is very simple. I have: div id="enclosing" div id="d1" span id="s1">S1</span span id="s2">S2</span span id="s3">S3</span /div /div I'd like these three SPAN elements to always stay in one row, instead of wrapping to the next line if the "enclosing" DIV is too small. It's OK to force scrollbars, since the arrangement is more important than visibility in this particular case. I can artifically achieve this by setting the "d1" width to 1000% but that's ugly and I'm sure I'm missing something obvious. I could also use a table but want a CSS solution if possible. |
#3
| |||
| |||
|
|
Ted Zlatanov wrote: Hello, my problem is very simple. I have: div id="enclosing" div id="d1" span id="s1">S1</span span id="s2">S2</span span id="s3">S3</span /div /div I'd like these three SPAN elements to always stay in one row, instead of wrapping to the next line if the "enclosing" DIV is too small. It's OK to force scrollbars, since the arrangement is more important than visibility in this particular case. I can artifically achieve this by setting the "d1" width to 1000% but that's ugly and I'm sure I'm missing something obvious. I could also use a table but want a CSS solution if possible. |
|
#d1 { white-space: nowrap; } |
#4
| |||
| |||
|
|
In article <d4ba7$471cc258$40cba7c2$18606 (AT) NAXS (DOT) COM>, "Jonathan N. Little" <lws4art (AT) centralva (DOT) net> wrote: Ted Zlatanov wrote: Hello, my problem is very simple. I have: div id="enclosing" div id="d1" span id="s1">S1</span span id="s2">S2</span span id="s3">S3</span /div /div I'd like these three SPAN elements to always stay in one row, instead of wrapping to the next line if the "enclosing" DIV is too small. It's OK to force scrollbars, since the arrangement is more important than visibility in this particular case. I can artifically achieve this by setting the "d1" width to 1000% but that's ugly and I'm sure I'm missing something obvious. I could also use a table but want a CSS solution if possible. How would a table help this problem? |
|
#d1 { white-space: nowrap; } |
#5
| |||
| |||
|
|
I can artifically achieve this by setting the "d1" width to 1000% but that's ugly and I'm sure I'm missing something obvious. I could also use a table but want a CSS solution if possible. How would a table help this problem? Simple, it wouldn't. #d1 { white-space: nowrap; } This will however. |
#6
| |||
| |||
|
|
(In fact, JL, you convince me so much about so many things that I reckon you could wangle money out of me with any lowdown scheme. This is the basis of a lot of con tricks. You gain the trust of the victim and then pow... like in "Tin Men" where the aluminium cladding salesman would drop a $5 on the carpet of his victim's house and then pretend to find it and "Oh, look, you must have dropped this" says he to show what an honest fellow he is... the sale is practically his then... <g>) |
#7
| |||
| |||
|
|
Hey, I saw that one! It was good. Many of yours with Bud-man or whatever I have not watched. |
#8
| |||
| |||
|
|
In article <4736b$471d61cf$40cba7c2$5520 (AT) NAXS (DOT) COM>, "Jonathan N. Little" <lws4art (AT) centralva (DOT) net> wrote: Hey, I saw that one! It was good. Many of yours with Bud-man or whatever I have not watched. Officer Bud White? Ah, there are only very few films that are any good with him in them. La Confidential Master and Commander (a rollicking good tale) Gladiator The Sum of Us Proof |
#9
| |||
| |||
|
|
dorayme wrote: In article <4736b$471d61cf$40cba7c2$5520 (AT) NAXS (DOT) COM>, "Jonathan N. Little" <lws4art (AT) centralva (DOT) net> wrote: Hey, I saw that one! It was good. Many of yours with Bud-man or whatever I have not watched. Officer Bud White? Ah, there are only very few films that are any good with him in them. La Confidential Master and Commander (a rollicking good tale) Gladiator The Sum of Us Proof Not seen any of those. Is this Crowe? I saw him in A Beautiful Mind...okay but I was underwhelmed. |
#10
| |||
| |||
|
|
On Mon, 22 Oct 2007 22:11:30 -0400 "Jonathan N. Little" <lws4art (AT) centralva (DOT) net> wrote: JNL> dorayme wrote: How would a table help this problem? JNL> Simple, it wouldn't. I'm sorry to have confused the issue. Inside the spans I need images, not just text. With tables I can force a row of N images side by side, which is what I was alluding to: |
![]() |
| Thread Tools | |
| Display Modes | |
| |