960 Grid suffix and prefix property in IE6

hello

i am trying to revamp the UI of a web application for a client and i am using to 960 grid to have a rapidly protype something.

But i have a problem in IE6, the client’s default/standard Internet Browser.

The homepage of the application has a box containing the login form that is centered in the midle of the page.

I used suffix and preifx of equal value to center that box, i get the desired effect of a grid_4 box centered by prefix_4 and suffix_4. But in IE6 although the box is centered, it looks wider than the desired effect i was looking for.

I am using the 960 fluid version and my doctype is xml 1.0 strict with no xml declaration in the html tag.

Thanks in advance for your help

Hi,

Is it a nested grid?

If so you will need the alpha and omega classes added to it if it’s a single element.


<div class="grid_4 prefix_4 suffix_4 alpha omega">


Yes it is nested grid

Hello here is the entire code

It wroks perfectly on firefox but on the IE6 if you take time to have a look you will notice that the central box is way too bigger

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html>
<head>
<meta http-equiv=“content-type” content=“text/html; charset=utf-8” />
<title>Homepage</title>
<link rel=“stylesheet” type=“text/css” media=“all” href=“css/reset.css” />
<link rel=“stylesheet” type=“text/css” media=“all” href=“css/text.css” />
<link rel=“stylesheet” type=“text/css” media=“all” href=“css/grid.css” />
<link rel=“stylesheet” type=“text/css” media=“all” href=“css/style.css” />
<!–[if IE 6]><link rel=“stylesheet” type=“text/css” href=“css/ie6.css” media=“screen” /><![endif]–>
<!–[if IE 7]><link rel=“stylesheet” type=“text/css” href=“css/ie.css” media=“screen” /><![endif]–>
</head>
<body>

	&lt;!-- main container --&gt;
	&lt;div class="container_12" id="main"&gt;
		
		&lt;!-- header: logos & branding --&gt;
		&lt;div class="grid_12" id="header"&gt;
			&lt;img id="header_logo" src="img/header_logo.gif" border="0" alt=""/&gt;
			&lt;img id="header_logo_cee" src="img/cee_header_logo.jpg" border="0" alt=""/&gt; 
		&lt;/div&gt;
		&lt;div class="clear"&gt;&lt;/div&gt;
		
		&lt;!-- main navigation menu --&gt;
		&lt;div class="grid_12" id="navigation"&gt;
			&lt;div class="navitem_s"&gt;HDC Home Page&lt;/div&gt;
			&lt;div class="navitem"&gt;&lt;a href="browsing.html"&gt;Browsing Area&lt;/a&gt;&lt;/div&gt;
			&lt;div class="navitem"&gt;&lt;a href="project.html"&gt;Project Area&lt;/a&gt;&lt;/div&gt;
			
			&lt;!-- &lt;div class="rnavitem"&gt;&lt;a href="#"&gt;Logout&lt;/a&gt;&lt;/div&gt; --&gt;
			&lt;div class="rnavitem"&gt;&lt;a href="#"&gt;User Guide&lt;/a&gt;&lt;/div&gt;
			&lt;div style="clear: both;"&gt;&lt;/div&gt;
		&lt;/div&gt;
		&lt;div class="clear"&gt;&lt;/div&gt;
		
		&lt;!-- main content --&gt;
		&lt;div class="grid_12" id="main-content"&gt; 
			&lt;div class="grid_4 prefix_4 suffix_4 alpha omega" id="central-box"&gt;
				&lt;h1  id="hdc-title"&gt;
					The Hardware Design Checker
				&lt;/h1&gt;
				&lt;!-- Image Map representing the CEE Know-How 
				&lt;img src="img/HDC_moteur_aminee_344x260.gif" id="know-how-logo"/&gt; --&gt;
				
				
				&lt;!-- login, pwd recovery & registration box --&gt;
				&lt;div class="box"&gt;
					&lt;h2&gt;
						Identification
					&lt;/h2&gt;
					
					&lt;!-- Login, Registration & Password recovery --&gt;
					&lt;div class="block" id="login-forms"&gt;
						
						&lt;!-- Login --&gt;
						&lt;form action=""&gt;
							&lt;fieldset class="login"&gt;
								&lt;legend&gt;Login&lt;/legend&gt;
								&lt;p class="notice"&gt;Login to Access the Project Area&lt;/p&gt;
								&lt;p&gt;
									&lt;label&gt;Username: &lt;/label&gt;
									&lt;input type="text" name="username" /&gt;
								&lt;/p&gt;
								&lt;p&gt;
									&lt;label&gt;Password: &lt;/label&gt;
									&lt;input type="password" name="password" /&gt;
								&lt;/p&gt;
								&lt;input class="login button" type="submit" value="Login" /&gt;
							&lt;/fieldset&gt;
						&lt;/form&gt;
						
						&lt;!-- Registration/Password recovery --&gt;
						&lt;form action=""&gt;
							&lt;fieldset&gt;
								&lt;legend&gt;Registration/Password Recovery&lt;/legend&gt;
								&lt;p&gt;If you do not already have an account or have lost your password, access the password/account request form!&lt;/p&gt;
								&lt;input type="submit" value="Request Pwd/Account" class="button"/&gt;
							&lt;/fieldset&gt;
						&lt;/form&gt;
					&lt;/div&gt;
				&lt;/div&gt;
				
			&lt;/div&gt;
			
		&lt;/div&gt;
		&lt;div class="clear"&gt;&lt;/div&gt;
		
		&lt;!-- footer: contacts & help --&gt;
		&lt;div class="grid_12" id="footer"&gt;
			&lt;ul class="grid_12" id="footer-links"&gt;
				&lt;li class="grid_4"&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
				&lt;li class="grid_4"&gt;&lt;a href="#"&gt;User Guide&lt;/a&gt;&lt;/li&gt;
				&lt;li class="grid_4"&gt;&lt;a href="#"&gt;HDC Google Site&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/div&gt;
		&lt;div class="clear"&gt;&lt;/div&gt;
	&lt;/div&gt;

Tried this solution and no luck!

By the way do you happen to know where i can get a good documentation on this framework i really started with it and come to apreciate it, but for an advanced use, a good reference document could be great… the basic tutorial are good but good doc is way better… blueprint has that…

Have you got it online somewhere ?

As far as I can tell I’m getting exactly the same results in IE6 and Firefox. Which element exactly do you see bigger? I have overlaid Firefox and IE6 and at the same window widths they appear to be the exact same width. However I only coloured the middle element to check so you may be talking about something else.

Have you linked to the IE css files correctly?

The fluid version isn’t very good in IE6 anyway because they haven’t allowed enough room for the rounding errors and the horizontal scrollbar keeps flicking in and out which can be seen on their own demo page.

No i don’t have it online because the application i am workin on will be available only within the company’s network…

But i can put it for comparison with the rendering you 're getting…

in the Ie6 rendering that i get the box that contain both the title of the application+the login form is bigger than what it looks like in ff…

By the way is there a way to imitate margin-auto to center an element in a document with 960grid… do you happen to know where there is a documentation that explains all the functionalities of this framework cause if compare with blueprint, when it comes to documentation 960grid is really poor!

what i get is the blue box, the green box and the grey one surronding the form are bigger in IE6 than FF

Do you know if blueprint has a fluid version that works better in ie6?

Ok - I looked at the live site Via PM and it seems to be a haslayout issue for others that are watching this thread and not a grid problem as such.


.box,.box h2,h1{zoom:1.0}


thank you for your help, it is solved!