Forum Moderators: not2easy
I heard that we're not supposed to post code here, so I wont, but does anybody have any idea what I am doing wrong?
Cheers again. :)
Right... Now I'm having a problem with the left distance of the div in terms of cross browser compatibility. At the moment the value is left:10px; and IE is fine with this. Opera, however, is not. I can change it so that it looks right in Opera (left:6px;) but then it looks 4px off in IE...
This is driving me crazy... ;)
Edit- that first ;) wasn't supposed to be a ;)- just valid mark up! :)
I just tried a test of this and it's working fine IE6 and Opera both
along with all the other info above the only other thing I can suggest is to make sure that positioned div code is not nested within any other divs (so inheriting any additional padding)
i.e. I put mine all at the bottom of my page just above the </body> tag
Suzy
body {
margin:10px 10px 0px 10px;
padding:0px;
}
#left {
margin:0px;
position: absolute;
left:10px;
top:78px;
width:200px;
background:#fff;
border:1px solid #000;
}
#center {
margin:0px;
background:#fff;
border:1px solid #000;
/*
IE5x fix
*/
voice-family: "\"}\"";
voice-family: inherit;
margin-left: 201px;
margin-right:201px;
}
html>body #center {
margin-left: 201px;
margin-right:201px;
}
#right {
margin:0px;
position: absolute;
right:10px;
top:78px;
width:200px;
background:#ccccff;
border:1px solid #000;
}
#top {
margin:0px;
background:#000066;
height:60px;
border-top:1px solid #000;
border-right:1px solid #000;
border-left:1px solid #000;
voice-family: "\"}\"";
height:39px;
}
html>body #banner {
height:60px;
}
p,h1,pre {
margin:0px 10px 10px 10px;
}
Any ideas?
Edit- thanks to all though, where else could I go and get feedback like this! :)