473,411 Members | 1,968 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,411 software developers and data experts.

Div Left/Right Align No Wrap Challenge

I have a situation where I need, on the same line, a left aligned div
and a right aligned div. When the window is resized and the div's
eventually touch, I need them NOT to wrap, but instead, enable the
horizonlat scrolling.

No table solutions please.

_______ __________________
|_______| space between div's |__________________|

Oct 19 '06 #1
4 12428
On 2006-10-19, Verticon:: <mi***@miben.netwrote:
I have a situation where I need, on the same line, a left aligned div
and a right aligned div. When the window is resized and the div's
eventually touch, I need them NOT to wrap, but instead, enable the
horizonlat scrolling.

No table solutions please.

_______ __________________
|_______| space between div's |__________________|
Just use the min-width property. Although I think I heard recently that
might not work on IE.
Oct 19 '06 #2
I havent tried it but would a containing div with "overflow:scroll" do
the trick?

I never used overflow: scroll really so not sure if it would work for
you.

HTH

Rick
www.e-connected.com
Ben C wrote:
On 2006-10-19, Verticon:: <mi***@miben.netwrote:
I have a situation where I need, on the same line, a left aligned div
and a right aligned div. When the window is resized and the div's
eventually touch, I need them NOT to wrap, but instead, enable the
horizonlat scrolling.

No table solutions please.

_______ __________________
|_______| space between div's |__________________|

Just use the min-width property. Although I think I heard recently that
might not work on IE.
Oct 19 '06 #3
On 2006-10-19, thehuby <th*****@gmail.comwrote:
I havent tried it but would a containing div with "overflow:scroll" do
the trick?
No. Overflow happens under certain circumstances when things don't fit
in the available width. The overflow property describes how to handle
this (clip, allow it or provide scrollbars). It doesn't alter what the
available width is, or whether overflow will occur or not-- just what to
do if it does*

So if the aligned divs in this example were floats (which they are
likely to be), the UA should start putting them underneath each other if
the available width is too small, regardless of the overflow property.

* with some exceptions in Firefox which I won't go into.
I never used overflow: scroll really so not sure if it would work for
you.

HTH

Rick
www.e-connected.com
Ben C wrote:
>On 2006-10-19, Verticon:: <mi***@miben.netwrote:
I have a situation where I need, on the same line, a left aligned div
and a right aligned div. When the window is resized and the div's
eventually touch, I need them NOT to wrap, but instead, enable the
horizonlat scrolling.

No table solutions please.

_______ __________________
|_______| space between div's |__________________|

Just use the min-width property. Although I think I heard recently that
might not work on IE.
Oct 19 '06 #4
On 2006-10-19, Verticon:: wrote:
I have a situation where I need, on the same line, a left aligned div
and a right aligned div. When the window is resized and the div's
eventually touch, I need them NOT to wrap, but instead, enable the
horizonlat scrolling.

No table solutions please.

_______ __________________
|_______| space between div's |__________________|

overflow: auto;
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Oct 20 '06 #5

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

Similar topics

6
by: TJ | last post by:
I've got a calendar that is based on the concept of lots of blocks that are spans with float:left. I would like to be able to have a detail section on the right side of the screen, so that when...
1
by: Chris Pudney | last post by:
G'day, I am using CSS to construct bar charts from nested DIVs. In general this works fine. However, in certain circumstances I need to display multiple charts inline. To get consistent results...
4
by: erikd | last post by:
I'm trying to set up a standard "footer" on my pages. I just discovered by reading this newsgroup that straight html is no good and I need to learn how to do it using css. So I while I'm learning...
8
by: | last post by:
How do you center, like I am trying to do, below the group of images? Why does it not work? Example: <div><h2>The Title</h2><img src="images/BigPicture.jpg" height="150px" width="250px"></div>...
3
by: Sjef Janssen | last post by:
Is it possible to have a box (div) which sets a background-color and which contains (on the same line) text which is left aligned and text which is right aligned. (as in a table: two td's left one...
0
by: Verticon:: | last post by:
I have a situation where I need, on the same line, a left aligned div and a right aligned div. When the window is resized and the div's eventually touch, I need them NOT to wrap, but instead,...
5
by: john_aspinall | last post by:
http://www.ainewmedia.co.uk/test.htm Im learning CSS based layout and Im pulling my hair out as to why wont my banner DIV float to the right of my login box? It works fine in IE. Any help...
5
by: OtisUsenet | last post by:
Hi, I'm killing myself trying to get a "horizontal nav bar" where some text is left aligned, and some is aligned to the right, kind of like this: LEFT ...
15
dlite922
by: dlite922 | last post by:
I'm back again, Intro: I've got a floating div (outerDIV) with fixed width that contains an image (IMG) and a div that contains a short text (innerDIV) Problem: In FF, the innerDIV is...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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...

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.