Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Keeping Layout same regardless of window size

Keeping Layout same regardless of window size
Thread Tools
Forum Regular
Join Date: Feb 2002
Location: Fort Lauderdale, Florida
Status: Offline
Reply With Quote
Nov 6, 2003, 11:05 AM
 
So I am making my first site and I noticed some behavior I wanted to change. Specifically, If I make a browser window of my site, www.mdcarter.net smaller and smaller -- things such as the main blog entry on the page will move down to the bottom of the page. I guess what I would like to know is how do I make the site static and not change depending on browser window size? Everything formatted using CSS by the way.
     
Forum Regular
Join Date: Nov 1999
Location: Tampa, Florida
Status: Offline
Reply With Quote
Nov 6, 2003, 11:11 AM
 
Here's one solution: Make a table that is a fixed width, perhaps 600px wide. Then, dump the entire contents of the page inside that table. Don't forget to close the table at the end. This way the browser will display that table at the specific width and the browser size shouldn't have any effect on the way the page is rendered.

-Finrock
     
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Nov 6, 2003, 01:17 PM
 
i suspect the problem is with your floats... get rid of the floats in both #menu and #content and change #menu to use
Code:
position: absolute; left: 0;
and increase the left margin of #content
Code:
margin-left: 200px;
that should help to keep everything in place...
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Nov 6, 2003, 04:09 PM
 
You could always just let the user resize his window without interference from you.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Forum Regular
Join Date: Feb 2002
Location: Fort Lauderdale, Florida
Status: Offline
Reply With Quote
Nov 6, 2003, 06:09 PM
 
Originally posted by Millennium:
You could always just let the user resize his window without interference from you.
No thats not what I mean. I dont want to control the users window size. I want to control what happens to how my site is displayed if the users browser window width is less than the width of my homepage. When their window width dips below that width, the browser draws parts of my site in different locations. Sorry If i wasnt clear about that.
I'm going to try the above suggestion and see if that works.
     
Forum Regular
Join Date: Feb 2002
Location: Fort Lauderdale, Florida
Status: Offline
Reply With Quote
Nov 7, 2003, 11:47 AM
 
Originally posted by mzllr:
i suspect the problem is with your floats... get rid of the floats in both #menu and #content and change #menu to use
Code:
position: absolute; left: 0;
and increase the left margin of #content
Code:
margin-left: 200px;
that should help to keep everything in place...
Well what you suggested does in fact work for Safari and IE for Mac. But Windows IE draws the page totally farked up now. Hmmmm...
     
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Nov 7, 2003, 12:43 PM
 
you have to specify a unit of measurement...

Code:
left: 20px;
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2