Jump to content

IE adding a top margin to Divs and Images


coldkill

Recommended Posts

AARRRRGGG :(

 

Ok, I'm developing a new site for my company. I'm trying to use just CSS although it's proving difficult to get IE7 to work properly.

 

Here is the offending image:

http://www.fragswitch.com/images/iebug.jpg

 

There are two gaps in between the header image and the images which have been blacked out.

 

Here is what it should look like:

http://www.fragswitch.com/images/normal.jpg

 

The images don't have CSS code applied to them directly, the background has this CSS:

 

#content
{
background: url(images/content_background.png) repeat-y;
padding: 20px 20px 10px 20px;
margin: 0px;
}

 

Any ideas? Thanks in advance,

Cold

Yes. All default browser styles have been reset.

 

The HTML is this:

<div id="container">
<img src="style/images/header.png" alt="FragSwitch" title="One of our Dell SC1435 Rack Servers"/>

<div id="content">

	<!-- Left Content -->
	<div id="left">

		<div class="left_header">Client Login</div>
		<div class="left_box">

			<form method="post" action="http://www.fragswitch.com/client/dologin.php?goto=clientarea"> 
				Email Address: <input type="text" name="username" style="width: 110px;">
				Password: <input type="password" name="password" style="width: 110px;">
				<input type="submit" value="Login" class="button"> 
			</form>
		</div>

		<div class="left_header">Powered By</div>
		<div class="left_box">
			<img src="images/providers/amd.jpg" alt="AMD" title="AMD Opteron Processors" class="provider"/>
			<img src="images/providers/cpanel.jpg" alt="cPanel" title="cPanel Control Panel Software" class="provider" />
			<img src="images/providers/dell.jpg" alt="Dell" title="Dell Rack Servers" class="provider" />
			<img src="images/providers/intel.jpg" alt="Intel" title="Intel Xeon Processors" class="provider" />	
		</div>
	</div>
	<!-- /Left Content -->

	<!-- Main Content -->
  	<div id="main">
		<!-- Left Padding for content -->
		<div class="content_push">
			<img src="images/packs.png" alt="FragSwitch Packs" />
			<img src="images/easy.png" alt="FragSwitch Packs" /><img src="images/medium.png" alt="FragSwitch Packs" /><img src="images/hard.png" alt="FragSwitch Packs" /><img src="images/extreme.png" alt="FragSwitch Packs" /></div>
	</div>
	<!-- /Main Content -->

</div><!-- /Content -->


</div><!-- /container -->

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.