CS/resolution problems

A

Annemie

Hi,

CSS script with 3 kolumns and total width of 960px. De 3 kolums are
exact 960px
See how it looks at http://www.naturistart.eu/test/test-1-1-1.html

Computer 1: IE7.0 en resolution 1152x864 (1,33)
gives a right view see the image at http://www.naturistart.eu/test/ie7.html
(breedte=width, I'm Dutch)

Computer 2: IE6.0 en resolution 1288x800 (1,6)
gives a wrong view. The 3e kolumn is now under the first one.
See the image at http://www.naturistart.eu/test/ie6-1.html

After I have given the 3e kolumn a width of 4px less than before. And
now it looks right.
See the image at http://www.naturistart.eu/test/ie6-2.html

Who knows about? What will be the solution?

HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<div class=centered>

<div id=fullcontainer>
<img class=mainimage src="960x30.jpg" width=960 height=30>
</div>

<div id=column1>
<a class=test HREF=""><img class=mainimage src="259x30.jpg" width=259
height=30></a>
</div>

<div id=column2>
<a class=test HREF=""><img class=mainimage src="358x30.jpg" width=358
height=30></a>
</div>

<div id=column3>
<a class=test HREF=""><img class=mainimage src="331x30.jpg" width=331
height=30></a>
</div>

</div>

CSS:

html, body {
margin : 0;
padding : 0;
width : 100%;
min-width : 960px;
font-family : Arial,sans-serif;
font-size : 100%;
background-color : #FFFFFF;
}

#fullcontainer { /* breedte 960 */
background: red;
height: 60px;
padding: 0 0;
margin: 5px 0 0 0;
}

#column1 { /* breedte 263 */
height: 60px;
background: yellow;
float: left;
padding: 0 0;
margin: 5px 0 0 0;
}

#column2 { /* breedte 362 */
height: 60px;
background: green;
float: left;
padding: 0 0;
margin: 5px 0 0 0;
}

#column3 { /* breedte 335 */
height: 60px;
background: orange;
float: left;
padding: 0 0;
margin: 5px 0 0 0;
}

..mainimage {
display: block;
margin: 0;
border: 0;
border-width: 0 0 0 0;
}

/**********/

a.test:link img { border: 2px solid #FFFFFF; }
a.test:visited img { border: 2px solid #FFFFFF; }
a.test:hover img { border: 2px solid #F04704; }
a.test:hover {background-position: 0 0;}
a.test:active img { border: 2px solid #FFFFFF; }

/*********/

..centered {
margin: 0 auto;
width: 960px;
}

Regards
Loek












Greetings
Loek
 
D

dorayme

Annemie said:
Hi,

CSS script with 3 kolumns and total width of 960px. De 3 kolums are
exact 960px
See how it looks at http://www.naturistart.eu/test/test-1-1-1.html

Computer 1: IE7.0 en resolution 1152x864 (1,33)
gives a right view see the image at http://www.naturistart.eu/test/ie7.html
(breedte=width, I'm Dutch)

Computer 2: IE6.0 en resolution 1288x800 (1,6)
gives a wrong view. The 3e kolumn is now under the first one.
See the image at http://www.naturistart.eu/test/ie6-1.html

After I have given the 3e kolumn a width of 4px less than before. And
now it looks right.
See the image at http://www.naturistart.eu/test/ie6-2.html

Who knows about? What will be the solution?

IE6 is known to add 3px next to floats in many circumstances.
Perhaps this is the cause of your puzzle, when you add give the
browser less pixels to accout for in the columns, the floats then
have more room and so do not wrap (as is in the nature that God
gave floats).

I will now leave you to others who might go into the evils of

(1) Attempting fixed layouts

(2) Attempting such massively wide fixed layouts

(3) Thinking that resolution has the slightest thing to do with
web authoring

(4) Worrying about pixel perfection (it has been known to send
earthlings completely crazy. No, that is *not* what happened to
me.)
 
A

Annemie

IE6 is known to add 3px next to floats in many circumstances.
Perhaps this is the cause of your puzzle, when you add give the
browser less pixels to accout for in the columns, the floats then
have more room and so do not wrap (as is in the nature that God
gave floats).

I will now leave you to others who might go into the evils of

(1) Attempting fixed layouts

(2) Attempting such massively wide fixed layouts

(3) Thinking that resolution has the slightest thing to do with
web authoring

(4) Worrying about pixel perfection (it has been known to send
earthlings completely crazy. No, that is *not* what happened to
me.)

TXT dorayme. I will start with "positions" or do not have troubles
with px. In my case 4px less and there is no problem anymore.

Regards
Annemie
 
R

Rob Waaijenberg

Annemie schreef:
<[email protected]>, [snipped]

I will now leave you to others who might go into the evils of

(1) Attempting fixed layouts

(2) Attempting such massively wide fixed layouts

(3) Thinking that resolution has the slightest thing to do with
web authoring

(4) Worrying about pixel perfection (it has been known to send
earthlings completely crazy. No, that is *not* what happened to
me.)

TXT dorayme. I will start with "positions" or do not have troubles
with px. In my case 4px less and there is no problem anymore.

Regards
Annemie

Evil #5: Not reading any books about CSS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top