I made a site yesterday that works in Opera, firefox, chrome and IE7. It looks like how I want it however IE6 is giving me big problems. The first problem is there are line gaps apparing after the main headings and the second is the the whole footer does not display correctly at all. Can anyone hep with this.
The code is:
The header part:
<body>
<div align = "center">
<div id = "newtop">
<img src="images/top.jpg" alt="side of header" height="48" width="950">
</div>
<div id="mainheader">
<img src="images/sideheader.jpg" alt="side of header" height="165" width="124"><img src="images/spin-globe.gif" alt="spinning globe" height="165" width="165"><object type="application/x-shockwave-flash" data="images/bvp.swf" width="661" height="165">
<param name="movie" value="images/bvp.swf">
<img src="Images/noflash.gif" alt="Alternate Image">
</object>
</div>
</div>
</body>
The footer code is here:
<div id = "contentbottom">
<p>
<br>
<br>
<p class = "link"> <a href="http://www.cesare.co.za">Designed by Cesare de Villiers</a>
</p>
</div>
IE6browser not displaying a site correctly
-
- Registered User
- Posts: 10628
- Joined: 26 Mar 2007, 02:00
- Location: In the river of thoughts
- Contact:
IE6browser not displaying a site correctly
Last edited by CesarePlay on 09 Sep 2008, 13:23, edited 1 time in total.
-
- Registered User
- Posts: 10628
- Joined: 26 Mar 2007, 02:00
- Location: In the river of thoughts
- Contact:
Re: IE6browser not displaying a site correctly
The css is:
#mainheader { width: 950px;
height: 48px;
}
#bottomheader {height: 93px;
width: 950px;
}
#header {width: 950px;
}
#side { float: left;
width: 128px;
height: 172px;
}
#globe {float: left;
height: 172px;
width: 172px;
}
body {
margin: 0px;
padding: 0px;
background-color: #FFFFFF;
color: black;
font: small Arial, Helvetica, Verdana, sans-serif;
}
Can anyone help?
#mainheader { width: 950px;
height: 48px;
}
#bottomheader {height: 93px;
width: 950px;
}
#header {width: 950px;
}
#side { float: left;
width: 128px;
height: 172px;
}
#globe {float: left;
height: 172px;
width: 172px;
}
body {
margin: 0px;
padding: 0px;
background-color: #FFFFFF;
color: black;
font: small Arial, Helvetica, Verdana, sans-serif;
}
Can anyone help?
Last edited by CesarePlay on 09 Sep 2008, 13:24, edited 1 time in total.
-
- Registered User
- Posts: 10628
- Joined: 26 Mar 2007, 02:00
- Location: In the river of thoughts
- Contact:
Re: IE6browser not displaying a site correctly
I fixed most of the IE6 problems but still got gaps between images. I really need help to fix this gap that is appearing.
Re: IE6browser not displaying a site correctly
There is no such thing as float:center;
Float can only be left right and none and inherit.
http://anthonyshort.com.au/blog/comment ... everytime/
Look at that.
Float can only be left right and none and inherit.
http://anthonyshort.com.au/blog/comment ... everytime/
Look at that.
-
- Registered User
- Posts: 10628
- Joined: 26 Mar 2007, 02:00
- Location: In the river of thoughts
- Contact:
Re: IE6browser not displaying a site correctly
Hi. I sorted it out. I made a mistake with the body style.
I have corrected the float: center and totally removed these lines:
#newtop {width: 950px;
height: 48px;
float: center;
}
To solve my gap issue I had put font-size: 0px under the body {} style and bingo the site displayed like it should. I also had to set te footer image to float to the right and make minor adjstemnts to the contact page and to sort out the menu I gave width of 75% which then worked perfectly
I have corrected the float: center and totally removed these lines:
#newtop {width: 950px;
height: 48px;
float: center;
}
To solve my gap issue I had put font-size: 0px under the body {} style and bingo the site displayed like it should. I also had to set te footer image to float to the right and make minor adjstemnts to the contact page and to sort out the menu I gave width of 75% which then worked perfectly
-
- Moderator Emeritus
- Posts: 5547
- Joined: 21 Dec 2002, 02:00
- Processor: i7 3770k
- Motherboard: ASUS P8P67-Pro
- Graphics card: 2xNvidia GTX670
- Memory: 16 GB Gskill Sniper
- Location: In SQL Space inserting 'null' on purpose
- Contact:
Re: IE6browser not displaying a site correctly
No offense, but is the reason for updated browsers not better compatibility ?
rather than trying to match up the imperfect (changing your coding) to be backwards compatible - rather update to the latest there is ?
basically like trying to get a stiffy drive to work in vista - kinda pointless aint it ?
rather than trying to match up the imperfect (changing your coding) to be backwards compatible - rather update to the latest there is ?
basically like trying to get a stiffy drive to work in vista - kinda pointless aint it ?
Temporary Absence
-
- Registered User
- Posts: 10628
- Joined: 26 Mar 2007, 02:00
- Location: In the river of thoughts
- Contact:
Re: IE6browser not displaying a site correctly
Yes but many people still use IE6 so I have to make sure the site appears the same to them as well.
I have always made sure that it works in all browsers so my code can be validated. If you don't make sure it works with older browsers you will fail the validation. That is what I learnt when validating the sites I have made in the past.
I have always made sure that it works in all browsers so my code can be validated. If you don't make sure it works with older browsers you will fail the validation. That is what I learnt when validating the sites I have made in the past.