/    Sign up×
Community /Pin to ProfileBookmark

CSS positioning problem with IE 6

Ok, forgive my ignorance but I’m building my first website using purely CSS and need some help getting it to look as expected in IE 6. Here’s a link to the basic template page:

[url]http://www.olivia-temple.com/test/home.html[/url]

And here’s the CSS for the positioning divs:

[CODE]#left_column {
float: left;
width: 340px;
z-index:2;
}

#right_column {
position: relative;
margin-left: 340px;
z-index:1;
}

#content {
position:absolute;
width: 100%;
overflow: auto;
}

#navbar {
position:absolute;
top:228px;
left:50px;
width: 200px;
}

#heading_div {
height: 130px;
width: 100%;
border-bottom-width: 2px;
border-bottom-style: solid;
border-bottom-color: #563400;
}

#header_text {
position:absolute;
top: 55px;
right: 75px;
text-align: left;
width: 130px;
}

#header_logo {
position:absolute;
top: 0px;
right: 0px;
}

#main_content {
max-width: 600px;
width: expression(this.width > 600? “600px”: “auto” );
padding: 20px;
}[/CODE]

Now is my CSS bad or is it just that IE 6 has trouble interpreting column layouts, and if so is there a hack I can use? Please help, this is driving me mad!

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelJan 29.2007 — Looks like an uncleared float? Content (in IE6) is 'off the screen' to far, far right... This seems to work... might need some tweaking:....<li><a href="family.html">Family</a></li>

<li><a href="nostalgia.html">Nostalgia</a></li>

<li><a href="diary.html">Diary</a> </li>

</ul>

</div>

</div>

[B]<div style="clear:left;"><!-- cleared --></div>[/B]

<div id="right_column">

<div id="header_logo">

<img src="http://www.olivia-temple.com/test/images/OT_logo.gif" alt="" width="85" height="75" hspace="10" vspace="10" align="right"></div>

<div id="header_text" class="header_copy">&copy; 2007 Olivia Temple<br>

<a href="mailto: [email][email protected]">[email protected][/email]</a></div>

<div id="heading_div" class="heading">....[/QUOTE]

I might reconsider using "postion:absolute;" for the content for if the screen in minimized, the 'overflow' property takes the overflow-content off the screen and because 'absolute' of out of the document flow, -you do not get any scrollbars... you content becomes 'lost' and inaccessible to the reader...

Your content is short enough that it should fit in the space allowed though, but what I am seeing is a few sentences 'lost' below my horizon and without any scrollbar, -I can no longer see the last few sentences... ?

I am seeing the same thing now in Firefox as in IE (both show content hidden below horizon of viewscreen)

Nice page, btw. I like it alot. ?
Copy linkTweet thisAlerts:
@djvernauthorJan 30.2007 — Hey, thanks for your reply!

I was having a lot of trouble with IE 6 so in the end I reworked the layout divs so that the left column is floated left, with the right-hand column filling the remaining space, and less absolutely positioned layers. Have a look here if you're interested:

http://www.olivia-temple.com/test2/

As you spotted I was hiding the main window scrollbars so that just the content div scrolled, but again this wasn't working properly in IE so I've removed it. Ho hum, I think the compromise looks ok, and at last it seems to be working in all the browsers I've tested in on!
Copy linkTweet thisAlerts:
@WebJoelJan 30.2007 — I'll have a look at it again later. -Looked like a very interesting site and I only had a few minutes to quickly scan-over it last night. ?
×

Success!

Help @djvern spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...