Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Fixed width at certain resolution
Old 08-28-2008, 04:54 PM Fixed width at certain resolution
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
I've noticed on some sites, that when you resize the browser window, the divs resize with it (percentage widths). But at a certain point, the divs no longer resize and are fixed and a horizontal scroll bar appears.

How is this achieved?

At the moment, I try using percentages, but can resize the browser without a scoll bar appearing for an unlimited time (about 20px width).
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-28-2008, 04:59 PM Re: Fixed width at certain resolution
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Have one element that is an absolute fixed width (px)
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-28-2008, 05:00 PM Re: Fixed width at certain resolution
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
They are probably using the "max-width" property along with the plain "width" property. The problem with using "max-width" is that IE6 doesn't get it.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 08-28-2008, 06:51 PM Re: Fixed width at certain resolution
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
here is an example page
http://www.digg.com

Is that what they're doing?
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 08-28-2008, 07:00 PM Re: Fixed width at certain resolution
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
html {
min-width: 945px;
} /*IE7*/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-28-2008, 07:56 PM Re: Fixed width at certain resolution
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
Thanks, now for IE6. Digg seems to have a min-width in IE6 as well, yet min-width doesn't work in IE6??
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 08-28-2008, 08:13 PM Re: Fixed width at certain resolution
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
IE6 doesn't support min or max width or height. It treats all fixed widths as 'min-width' - which is incorrect.

The only way to get a min/max width effect in IE6 is javascript.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 08-28-2008, 08:46 PM Re: Fixed width at certain resolution
Gilligan's Avatar
Website Designer

Posts: 1,670
Name: Stefan
Location: London, UK
Trades: 0
I used this:

Code:
body { 
border-right:900px solid #fff; 
} 

div#header { 
margin-right: -900px; 
} 

div#content { 
float:left; 
position:relative; 
margin-right:-900px; 
}
Bad way to go about things, but its IE6, fight fire with fire.. Unless there's an easier solution.
__________________

Please login or register to view this content. Registration is FREE
Gilligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Fixed width at certain resolution
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40679 seconds with 12 queries