473,408 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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
6 38792
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 vão. 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 vão. 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 vão. 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 vão. 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 vão. O resto é imperfeito.
- Renato Russo -
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Aaron | last post by:
I have the following divs: <div style="background-image: url(images/house_01.jpg); width: 249px; height: 346px;"></div> <div style="background-image: url(images/house_02.jpg); width: 251px;...
5
by: squidco | last post by:
I've been trying to wean myself off of tables. I've been reading about the float property, and have implemented a couple of sites using divs instead of tables, and generally I'm happy with the...
17
by: middletree | last post by:
I have a very tough issue I'm looking for help on re: javascript/css. I see that MS has groups with HDTML in the title, but there are quite a few of them, and they don't seem to get updated very...
39
by: WindAndWaves | last post by:
Hi Gurus I have a page, which looks a bit like this: .... <body> <div ID=id1>................</DIV> <div ID=gsd>................</DIV> <div ID=ewd>................</DIV> <div...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
4
by: Rick Brandt | last post by:
Sorry, I don't have a sample web page, but hopefully the crude illustration below will suffice. Given that the space within the dashed upper and lower lines is a div across the entire width of...
2
by: Wes Groleau | last post by:
I have a huge pile of open-source PHP, far too big for me to wrestle it into submission. It generates nested tables MANY layers deep. What I am trying to do is extract several small pieces...
5
by: Mike P | last post by:
How would I show or hide a div that is using client side Javascript based upon a server side variable? Here are my divs : <div id="idButton5" class="otherLeftBarLink" onmouseover="javascript:...
2
by: jeddiki | last post by:
How do I get these 2 divs to be side by side ? I have been trying to apply the float logic to a couple of divs on the same screen, but without success. There is a main div that holds two...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.