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

Link to comment
Share on other sites

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 -->

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.