Jump to content

Height Problem IE7


glenelkins

Recommended Posts

Hi

 

Im having some wierd issue in IE with a height of an element i set in CSS. Its the .navigation_top class, in IE its not setting the height to 18px. In FF its fine, but IE7 it seems like its adding a little extra and its really annoying me. The #navigation_container  sets the height properly so why doesnt the other class? I even tried setting .navigation_top to 1px in height and it didnt get any smaller in IE7

 

/* GLOBAL RESET */
html,body,p, div, h1,h2,h3,h4,ul,li,img {

margin: 0px;
padding: 0px;

font-family: "Trebuchet MS", Verdana, Arial, serif;
font-size: 1em;

}

body {

background: #CECBC2; /* actual page background colour */

}

/* Main Container - To fill background */
#main_container {

width: 100%;
height: 1228px;

background: url('../images/mainbg.gif') repeat-x;

text-align: center; /* for ie to centre the site */

}

/**********************/
/* SITE CONTENT AREAS */
/**********************/

/* Reset All content to left align */
*{ 

text-align:left 

}

/* Header Container */
#header_container {

margin: auto;

width: 949px;
height: 137px;

 background: red; /* DEBUG */

}

/* Logo */
.logo {

	padding-top: 14px;
	margin-left: 114px;

}

/* Navigation Container */
#navigation_container {

margin: auto;

width: 949px;
height: 57px;

background: url('../images/navbg.gif');

	background: green; /* DEBUG */
}

.navigation_top {

	width: 949px;
	height: 18px;

		background: blue; /* DEBUG */

}

.navigation_bottom {

	width: 949px;
	height: 39px;

		background: orange; /* DEBUG */

}

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.