Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 03-13-2008, 02:24 AM IE6 "Height" bug
RadGH's Avatar
Skilled Talker

Posts: 76
Name: Radley
Trades: 0
Edit: I found a workaround, read bottom

I'm trying to get this sidebar pieces together with four sections, there will be two main areas for contents and a 13px separator along with a 13px ending image. The separator is exactly 13pixels high, but even if I change the height of the style it won't shrink. I can make it larger, but its like IE tries to force the height to the size of the background image. But, its too large, so apparently thats not right either.

There is no added padding anywhere, other than the body which is set to 0. Theres not much code that can be wrong... it works in Firefox but thats not saying much (because everything does ). Is this just a bug in IE?

I tried changing the line-height just in case but that didn't help. I'm out of ideas.

Here's what it looks like with a 2px border around the seperators:

ignore the border on the left, thats one solid image in a seperate div (I'm going to change that when I fix this problem though)




Code:

PHP Code:
<div class="container" id="leftnav"> <!-- LeftTopLeftSeperatorLeftBottomLeftEnd -->
    <
div id="lefttop"> </div>
    <
div id="leftseperator"> </div>
    <
div id="leftbottom"> </div>
    <
div id="leftend"> </div>
</
div>

<
style type="text/css">
    
/* Left Bar */
    #leftnav  { 
        
width100pxheight425px; }
    
#lefttop { 
        
width100pxheight276px
        
backgroundurl(images/sidebar_left_top.gifrepeat-y top; }
    
#leftseperator { 
        
width100pxheight13px
        
backgroundurl(images/sidebar_left_seperator.gifno-repeat; }
    
#leftbottom { 
        
width100pxheight112px
        
backgroundurl(images/sidebar_left_bottom.gifrepeat-y top; }
    
#leftend { 
        
width100pxheight13px
        
backgroundurl(images/sidebar_left_end.gifno-repeat; }
</
style


Edit: I found a workaround, its an IE6.0 hack and wouldn't fix it for anything else that might have the same problem. I'm using it now, but when I test the site across browsers I may have to throw it away and use something else. Until that happens, heres what I'm adding to the separators:

PHP Code:
/* IE 6.0 */ margin-bottomexpressiondocument.body.contentEditable=='inherit' '-7px' null ); 

Last edited by RadGH; 03-13-2008 at 03:10 AM..
RadGH is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-13-2008, 09:42 AM Re: IE6 "Height" bug
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
using conditional comments is preferable to expressions, as other versions of IE may handle the positioning differently.

Seeing a page would give us more of a clue what is happening. Screenshots are fine for showing what something should look like but of no use at all for debugging. And snippets of code cannot be tested in isolation because we do not know what else you have in your code.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-13-2008, 03:24 PM Re: IE6 "Height" bug
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Expressions have a NASTY way of chewing up a visitors memory, so it is definitely NOT a good way to go at all.

If you want to learn how to beat IE 6's many bugs, start reading here:
http://www.positioniseverything.net
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-14-2008, 03:07 AM Re: IE6 "Height" bug
RadGH's Avatar
Skilled Talker

Posts: 76
Name: Radley
Trades: 0
Quote:
Originally Posted by LadynRed View Post
Expressions have a NASTY way of chewing up a visitors memory, so it is definitely NOT a good way to go at all.
Didn't know that ... I did away with this style and just stuck with fixed heights, I don't know if that will work out in the end though.

And yeah, I read a bunch of stuff on that site yesterday I saw the link in another one of your posts, very interesting
RadGH is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE6 "Height" bug
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.55398 seconds with 12 queries