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

CSS, 3 Col stretchy layouts

Hi Everyone...
Ian not sure if this is possible but.. I have created a 3 col layout
with a stretchy center using pure CSS got it to work in everything..
sorted..

But the site Iam working on is aimed at multiple resolutions so it is
going to scale down to 800x600 and scale up to 1024x768...

the problem is HOW DO I STOP IT GOING PAST 1024?

Ideally I would like the container to stop at 1024 in the center of the
page with a repeating horizontal background going the full page?

I know I could use javascript get the resolution of the monitor and
display a correct template but in volves resizing the browser wind
which I do not like

Please somebody help

Oct 5 '06 #1
4 1345
On 2006-10-05, Silkster <da****@shopcreator.comwrote:
Hi Everyone...
Ian not sure if this is possible but.. I have created a 3 col layout
with a stretchy center using pure CSS got it to work in everything..
sorted..

But the site Iam working on is aimed at multiple resolutions so it is
going to scale down to 800x600 and scale up to 1024x768...

the problem is HOW DO I STOP IT GOING PAST 1024?

Ideally I would like the container to stop at 1024 in the center of the
page with a repeating horizontal background going the full page?
Sounds like you need to set the max-width property on the container. You
can set width to a percentage (I'm guessing this is what you mean by
"stretchy") and max-width to 1024px. Then you'll get the percentage, but
not if it means going bigger than 1024px.

The background-image can be on something behind the container, and you
can set the container to background: transparent.

If this makes no sense then perhaps I've not understood your problem, in
which case you could post a link to an example.
Oct 5 '06 #2
"Ben C" <sp******@spam.eggswrote in message
news:sl*********************@bowser.marioworld...
On 2006-10-05, Silkster <da****@shopcreator.comwrote:
>the problem is HOW DO I STOP IT GOING PAST 1024?

Ideally I would like the container to stop at 1024 in the center of the
page with a repeating horizontal background going the full page?

Sounds like you need to set the max-width property on the container. You
can set width to a percentage (I'm guessing this is what you mean by
"stretchy") and max-width to 1024px. Then you'll get the percentage, but
not if it means going bigger than 1024px.
You should bear in mind that this will not work in Antiquated browsers, such
as IE6 or below. In these the max-width will be ignored, and the centre
column will continue to get larger in larger windows. It should work in
modern browsers though (and I think that this may even include IE7).

Martin
Oct 5 '06 #3

Martin Eyles wrote:
You should bear in mind that this will not work in Antiquated browsers, such
as IE6 or below. In these the max-width will be ignored,
Although by taking a generous interpretation of "work", this isn't a
problem.

You might ideally constrain the maximum width by setting max-width on
the outermost suitable container <div>, but if IE chooses to ignore
that, then it's hardly a major failure.

Oct 5 '06 #4
"Andy Dingley" <di*****@codesmiths.comwrote in message
news:11*********************@c28g2000cwb.googlegro ups.com...
>
Martin Eyles wrote:
>You should bear in mind that this will not work in Antiquated browsers,
such
as IE6 or below. In these the max-width will be ignored,

Although by taking a generous interpretation of "work", this isn't a
problem.

You might ideally constrain the maximum width by setting max-width on
the outermost suitable container <div>, but if IE chooses to ignore
that, then it's hardly a major failure.
Agreed. It's still accesible in IE6 so it isn't a problem, and it is still
the elegant solution.
Oct 5 '06 #5

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

Similar topics

1
by: Dario de Judicibus | last post by:
I wish to create two simple layouts by using only HTML, CSS and the minimum JavaScript as possible. Layouts should be "elastic" (no fixed widths and heights) and cross-browser enabled. The first...
6
by: Tristan Miller | last post by:
Greetings. Can someone point me to a good source of nice, simple stylesheets, similar to the W3C Core Styles provided at http://www.w3.org/StyleSheets/Core/? I don't need anything fancy like...
0
by: John Bradley | last post by:
I've read and understood the w3 specs on css1 and css2. I've done some positioned layouts on my own system that worked as expected. But - I'm concerned about letting anything on to the live system...
5
by: Alex Bell | last post by:
I have a fluid header/two column layout at http://www.members.iinet.net.au/~abell1/test/demo10.htm which works with windows MSIE 5.5 and 6, Mozilla, Netscape, and Opera; and Safari but which...
7
by: Alan J. Flavell | last post by:
A colleague recently breezed in with a new web page design. He didn't tell me where he got the ideas from, but ... Looking at his stylesheets, I noticed they identified themselves as...
2
by: Mario T. Lanza | last post by:
Greetings, I have been developing websites in CSS for a couple years; I claim to be no expert, but certain things could definitely be easier. Consider the box model and it's different...
16
by: Michael Rozdoba | last post by:
I'm far from a CSS expert, but what I see of it I really like & I love keeping content & style separate. I also hate the way table layout produces convoluted bulky code. However when asked why...
6
by: glakk | last post by:
I got on the tableless layout bandwagon early on, and thought it was a really cool way to lay out a page. I don't know why I thought it was so cool, except I guess I fell for the "oh, cool" talk. ...
4
by: james00 | last post by:
Switching Page Layouts!!! Does anyone have any idea how to create a script for Switching Page Layouts. I know how to create one for Style Sheet Switcher ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...

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.