467,915 Members | 1,150 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

side by side divs without a break...

Mel
i need to have as many as 5 divs side by side on the same line without a
break. if browser displays a horizontal scrollbar, its ok with my users and
they can resize it.

something like the following:

X X X X X

where each 'X' is a div with my stuff inside them and i dont want it to look
like

X X X
X

or something like that

thanks for your help
Jul 21 '05 #1
  • viewed: 38500
Share:
6 Replies
Els
Mel wrote:
i need to have as many as 5 divs side by side on the same line without a
break. if browser displays a horizontal scrollbar, its ok with my users and
they can resize it.

something like the following:

X X X X X

where each 'X' is a div with my stuff inside them and i dont want it to look
like

X X X
X

or something like that


Wrap them in a div with a fixed width that holds all 5 inner divs.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Now playing: Squeeze - Dr. Jazz
Jul 21 '05 #2
Mel
no you would do it like:

<div style=float:left;clear:right>
.....
</div>

you can place as many as you like to fill your ONE row
"Els" <el*********@tiscali.nl> wrote in message
news:16***************************@40tude.net...
Mel wrote:
i need to have as many as 5 divs side by side on the same line without a
break. if browser displays a horizontal scrollbar, its ok with my users and they can resize it.

something like the following:

X X X X X

where each 'X' is a div with my stuff inside them and i dont want it to look like

X X X
X

or something like that


Wrap them in a div with a fixed width that holds all 5 inner divs.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Now playing: Squeeze - Dr. Jazz

Jul 21 '05 #3
Els
Mel wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:16***************************@40tude.net...
Mel wrote:
i need to have as many as 5 divs side by side on the same line without a
break. if browser displays a horizontal scrollbar, its ok with my users
and they can resize it.

something like the following:

X X X X X

where each 'X' is a div with my stuff inside them and i dont want it to
look like

X X X
X

or something like that


Wrap them in a div with a fixed width that holds all 5 inner divs.

no you would do it like:

<div style=float:left;clear:right>
....
</div>

you can place as many as you like to fill your ONE row


Hang on - you are asking how to put 5 divs in a row without wrapping
to a next line, I give you a solution, and then you tell me it's not
correct? Why did you ask, and have you tried your own solution?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Jul 21 '05 #4
Mel
sorry, i did not know then, but out of desparation i tried many things and
one that i mentioned worked.

no offence, i truley appreciate your help. it did take me a while and many
tries.
"Els" <el*********@tiscali.nl> wrote in message
news:1i******************************@40tude.net.. .
Mel wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:16***************************@40tude.net...
Mel wrote:

i need to have as many as 5 divs side by side on the same line without a break. if browser displays a horizontal scrollbar, its ok with my users and they can resize it.

something like the following:

X X X X X

where each 'X' is a div with my stuff inside them and i dont want it to look like

X X X
X

or something like that

Wrap them in a div with a fixed width that holds all 5 inner divs.

no you would do it like:

<div style=float:left;clear:right>
....
</div>

you can place as many as you like to fill your ONE row


Hang on - you are asking how to put 5 divs in a row without wrapping
to a next line, I give you a solution, and then you tell me it's not
correct? Why did you ask, and have you tried your own solution?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 21 '05 #5
in comp.infosystems.www.authoring.stylesheets, Mel wrote:
sorry, i did not know then, but out of desparation i tried many things and
one that i mentioned worked.
But obviously you didn't think that there is other possibilities to do
same thing. And it is interesting, as your "solution" don't do what you
asked, and Els' solution does.
no offence, i truley appreciate your help. it did take me a while and many
tries.


I don't appreciate your top posting, lack of capitals and snipping, so
you never get any help from me.
http://oakroadsystems.com/genl/unice.htm

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.
Support me, buy Opera:
https://secure.bmtmicro.com/opera/bu...tml?AID=882173
Jul 21 '05 #6
Els
Mel wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:1i******************************@40tude.net.. .
Mel wrote:
"Els" <el*********@tiscali.nl> wrote in message
news:16***************************@40tude.net...
Mel wrote:

> i need to have as many as 5 divs side by side on the same line
> without a break. if browser displays a horizontal scrollbar,
> its ok with my users and they can resize it.

Wrap them in a div with a fixed width that holds all 5 inner divs.

no you would do it like:

<div style=float:left;clear:right>
....
</div>

you can place as many as you like to fill your ONE row
sorry, i did not know then, but out of desparation i tried many things and
one that i mentioned worked.
Then I guess you didn't explain yourself enough. Weren't you asking
for divs in a row that should not wrap to the next line? If you now
make your window narrower, you're saying the row doesn't wrap the divs
and a horizontal scrollbar appears? I doubt that.
no offence, i truley appreciate your help. it did take me a while and many
tries.


No problem.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Jul 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Aaron | last post: by
5 posts views Thread by squidco | last post: by
39 posts views Thread by WindAndWaves | last post: by
4 posts views Thread by Rick Brandt | last post: by
2 posts views Thread by Wes Groleau | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.