can a div width 'submit' to a minimum width of a div inside itself?

Posted on 2006-11-30
Last Modified: 2006-11-30

On this page:

The page container div is set to adjust with browser window width, but is there a way to stop it from shrinking beyond a certain point? The banner image would be a nice minimum, but currently the page container will shrink behind the banner image and it looks clunky.

Any suggestions?


Question by:billium99
LVL 30

Accepted Solution

Steggs earned 500 total points
ID: 18045871
Greetings billium99,

You could add min-width:800px; to the containers css.

This will work for all browsers except ie6 :/


Author Comment

ID: 18046687
Thanks Steggs


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jQuery Canlendar click function 5 42
Adjust the position 3 50
Table changes size when I click edit 7 24
Centering Vertically 3 28
Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now