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

Web page Breakdown resizing browser window?

13
Hello,

I find when resizing browser window my web page breaks down. When I view and resize other work the window appears to hide the page, not causing it to break apart. What settings would help to control this? I have added some of what I think would be important code.

html {
margin: 0px;
padding: 0px;
height: 100%;
}

body {
font-family: Verdana;
font-size: 12px;
color: #666;
background-color: #fff;
margin: 0px;
padding: 0px;
}

#topShelf {
display: block;
width: 100%;
margin: 0;
padding: 0;
border-top: 2px solid #888;
border-bottom: 5px solid #100100;
background: #bbb url('d23.png') no-repeat scroll 70% 50%;
}

#wrapper {
width: 986px;
margin: 0;
padding: 0px;
}

#column1 {
float: left;
width: 20%;
margin: 0;
padding: .5em 0 0 10px;
}

#column2 {
float: left;
width: 40%;
margin: 0;
padding: .5em 0 0 10px;
}

#column3 {
float: left;
width: 30%;
margin: 0px;
padding: .5em 0 0 10px;
}

#column4 {
float: left;
width: 10%;
margin: 0px;
padding: 5px 0 0 5px;
}

#footer {
clear: both;
width: 100%;
margin: 0;
padding: 0;
text-indent: 2.14em;
border-top: 1px dotted #999;
}

#footer h6 {
text-align: right;
padding-right: 10px;
}
Mar 11 '07 #1
2 3611
drhowarddrfine
7,435 Expert 4TB
When you use ems and percent for widths, everything is relative to something else. Percent is relative to the previously positioned parent and ems are in relation to the font size. When you mix them, you may find some things don't change the way you want. In any case, it can be a balancing act as the browser is resized.
Mar 11 '07 #2
AricC
1,892 Expert 1GB
When you use ems and percent for widths, everything is relative to something else. Percent is relative to the previously positioned parent and ems are in relation to the font size. When you mix them, you may find some things don't change the way you want. In any case, it can be a balancing act as the browser is resized.
Like Doc said you are giving some elements fixed widths and some percentages. If you want everything to resize just use percentages.
Mar 12 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

179
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
25
by: Sune A | last post by:
Hi All! I'm having problems with www.suneworld.com The thing is that I'd like to lock the width of the page, so that it won't adjust dynamically. Any CSS people out there that can help me? ...
8
by: Freek te Water | last post by:
Hi, Hope no-one is offended by my probably noob question... Context: I have a web page design, which always centres in the middle of the screen (using a 100%*100% HTML-table). Now I also use...
2
by: Colin Basterfield | last post by:
Hi, Hmmm, a strange one for me, but hopefully not for others... I have a base page which has virtual protected void PageLoadEvent(object sender, System.EventArgs e){} In the Page_Load...
3
by: Shapper | last post by:
Hello, I am working on an ASP.NET/VB web site. I have several links including menu links. Considerer a want to load a page named page.aspx. I can do it using javascript. Or using this code:...
7
by: mukeshgupta.WD | last post by:
Hi, i have seen in many web sites, the size of pages are automatically resized according to screen resolution. generally we create web layout for 800x600 but if we view it in1024x768 then the...
69
by: RC | last post by:
I know how to do this in JavaScript by window.open("newFile.html", "newTarget", "scrollbars=no,resizable=0,width=200,height=200"); The browser will open a new window size 200x200, not allow...
7
by: Trammel | last post by:
Im trying to do something which I hoped would be alot easier than it seems. Im trying to design the layout of the page in CSS to avoid table, etc but having problems making the bottom "fade"...
14
by: ShutterMan | last post by:
Im needing to resize a DIV tag to the entire height of the page. To me, this doesnt seem like it should be very difficult, but alas, its beating me. The content within the div may be tables,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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...

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.