Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > IE6 css help

IE6 css help
Thread Tools
Mac Enthusiast
Join Date: Jan 2007
Status: Offline
Reply With Quote
May 15, 2008, 09:21 AM
 
Hi, I've created a layout for a view and it renders fine in safari and firefox, but we need to support IE6 (not my choice) and it doesn't render correctly.

It appears that nesting a single div within another works fine; the problem arises when there are two inside a div: e.g. div.group.

This is as close as I could get it:

[codex]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" debug="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
div {
padding: 1% 1% 1% 1%;
margin: 1% 1% 1% 1%;
border: 1px solid gray;
background: red;
overflow:hidden;
}
div.group {
background: palegreen;
}
div.group_by {
width: 10%;
float: left;
background: khaki;
}
div.group_items {
float: left;
width: 80%;
background: azure;
}
div.group_item {
width: auto;
background: #33FF99;
}
div.right {
float: right;
background: papayawhip;
}
</style>
</head>

<body>

<div class="all">

<div class="group">
<div class="group_by">
<h2>Grouping</h2>
</div>

<div class="group_items">
<div class="group_item">
<div class="right">
<p>Hmm...</p>
</div>
<h3>Item</h3>
</div>
<div class="group_item">
<h3>Item</h3>
</div>
<div class="group_item">
<h3>Item</h3>
</div>
</div>
</div>

<div class="group">
<div class="group_by">
<h2>Grouping</h2>
</div>

<div class="group_items">
<div class="group_item">
<h3>Item</h3>
</div>
<div class="group_item">
<h3>Item</h3>
</div>
<div class="group_item">
<h3>Item</h3>
</div>
</div>
</div>

</div>

</body>
</html>
[/codex]
(Last edited by Chuckit; May 15, 2008 at 09:49 AM. (Reason:Fixed busted code tag so people can read the snippet))
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
May 15, 2008, 09:51 AM
 
I don't have a Windows machine here to muck with, but you might try ie7.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Mac Enthusiast
Join Date: Jan 2007
Status: Offline
Reply With Quote
May 15, 2008, 03:54 PM
 
Originally Posted by Chuckit View Post
I don't have a Windows machine here to muck with, but you might try ie7.
thanks for that, i'll see if it works for what i need.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:41 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2