473,385 Members | 2,028 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,385 software developers and data experts.

Div problems

4
Hello all,

I'm having a problem with my Div's.

On my own laptop (17 inch, 1440x900) my site looks fine, but I checked my site on another laptop (15 inch, 1024x768) and there the div is placed under the other div. How can this happen?

The divs are, div.navigatie and div.inhoud. They are floated.


div.sitecontainer {
postion: relative;
border: 6px solid #ffffff;
width: 800px;
margin: 0 auto;
text-align: left;
}

div.top {
height: 115px;
width: 794px;
}

div.navigatie {
float: left;
width: 190px;
height: 600px;
background-color: #ffffff;
}

div.inhoud {
float: right;
width: 604px;
height: 570px;
background-color: #ffffff;
padding: 15px;
}

I also got another problem: the banner in div.top looks great in IE, but in Mozilla it looks like the banner get another border, so the border of the sitecontainer is not straight anymore. Anyone formilar with this problem? The banner image is 800x115, I decreased this already but that didn't solved the problem.

Please help!!
May 21 '07 #1
7 1640
drhowarddrfine
7,435 Expert 4TB
The width of the container is 800px and the total width of the two inside divs is 809px, plus any default margin involved. The browser is making room by dropping one div down.

The banner problem, it's impossible to tell without a link or the complete code.
May 21 '07 #2
Rik
4
The width of the container is 800px and the total width of the two inside divs is 809px, plus any default margin involved. The browser is making room by dropping one div down.

The banner problem, it's impossible to tell without a link or the complete code.
Thank you for your quick reply. But can you explain what I have to change?
I just started with designing, soo I'm pretty a rookie. In my opinion the 2 inside divs are in total 794 px. Or do I forget something?

div.navigatie {
width: 190px;
}

div.inhoud {
width: 604px;
}

This is the link to the site, in Mozilla the banner (top) is different than in IE.

Link
May 21 '07 #3
drhowarddrfine
7,435 Expert 4TB
You are forgetting the 15px of padding which brings the total over 800.
May 21 '07 #4
Rik
4
I tried everything, but can't solve it...

The strange thing (for me) is that on my 17 inch laptop everything looks great in IE (Mozilla still has the banner problem). But on the 15 inch screen the lay-out is messed up.

What do I have to change? Can you be more specific please..

Thanks already!
May 21 '07 #5
drhowarddrfine
7,435 Expert 4TB
You have a <link> in the body of page. That must be moved up into the head where the other one is.

A little complicated to explain. In sitecontainer, you have a 6px border which is what you want. But the divs below .top are floated, which removes them from the normal flow, so that border is replaced by the body background image. This is what is supposed to happen, the way it's coded, and FF is performing correctly while IE is not.

Removing the 6px border fixes it in FF but you don't have the white border anymore.

I'm going to need you to fix that link before I can go on.
May 21 '07 #6
Rik
4
You have a <link> in the body of page. That must be moved up into the head where the other one is.

A little complicated to explain. In sitecontainer, you have a 6px border which is what you want. But the divs below .top are floated, which removes them from the normal flow, so that border is replaced by the body background image. This is what is supposed to happen, the way it's coded, and FF is performing correctly while IE is not.

Removing the 6px border fixes it in FF but you don't have the white border anymore.

I'm going to need you to fix that link before I can go on.
I hope you mean the <link rel="stylesheet".................."zijnavigatie.cs s"/>. I have moved this link to the head.

I understand your explanation about the border and float..why did they made more browsers, it's soo complicated sometimes :-) I removed the border, and will make a border around the image itself. Much more easier I think.

So I did the things you asked me to do. What's the next step?

Thanks!
May 21 '07 #7
drhowarddrfine
7,435 Expert 4TB
For your <link>'s, you are using Xhtml end tags but have specified this is a html document. I'm talking about the />. Remove the slashes on both links.

To use international character sets, you need to specify that by adding this to your head:
<meta http-equiv="content-type" content="text/html;charset=utf-8">

Also, the accented 'e' needs that charset id which I can't think of right now.

Change <style> to <style type="text/css">

Move the background image in <body> to css like this:
body{
background-image:url("image.jpg");
}

In sitecontainer, you have position misspelled.

Please see the article for this board, at the top, about validating.
May 22 '07 #8

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

Similar topics

0
by: Jerome Lefebvre | last post by:
Hello, Hope this will interest a few. I been working with a friend on the problems given out during the "International Collegiate Programming Contest" (ICPC) http://icpc.baylor.edu/icpc/ ....
14
by: Jim Hubbard | last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework? Not if you are unaware of the 1,596 issues listed at KBAlertz (http://www.kbalertz.com/technology_3.aspx). If you are...
1
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
5
by: Corky | last post by:
This works: db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID = PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) -...
2
by: Ellen Graves | last post by:
I am having a lot of problems with DB2 8.3.1 on RH Linux AS2.1. Installing and running stored procedures is problematic. Stored procedures I have used for years on V7 on WinNT are now failing...
19
by: Jim | last post by:
I have spent the past few weeks designing a database for my company. The problem is I have started running into what I believe are stack overflow problems. There are two tab controls on the form...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
0
by: Sergistm | last post by:
Hello World, :D I have a problem that it is making me crazy, I hope you can help me. I'm trying to execute a .exe file with the Procces.Start, and there is no problem when the file is on my...
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:
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.