iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-2006, 10:04 PM
jannmirch's Avatar
WebProWorld Pro
 
Join Date: Sep 2005
Location: Yorktown Heights, NY
Posts: 112
jannmirch RepRank 1
Default CSS DIV height fix for IE6

I need some sort of workaround for a DIV height in IE6. The page renders fine in Firefox, Netscape and Opera.

I'm ready to resort to a table!!

Here's the page: www.katestreasure.com

Here's my CSS:

#item {
float: left;
clear: inherit;
width: 120px;
text-align: left;
padding: 5px;
margin: 2px 2px 2px 2px;
height: 220px;
border: 1px solid #CCCCCC;
vertical-align: top;
}
#item p {
padding: 0px 0px 5px 0px;
font-size: .9em;
line-height: 1.1em;
}
#item .Price {
margin: 0px;
font-style: italic;
}
__________________
Graphic & Web Design
www.jannmirch.com
Reply With Quote
  #2 (permalink)  
Old 10-09-2006, 10:33 PM
jannmirch's Avatar
WebProWorld Pro
 
Join Date: Sep 2005
Location: Yorktown Heights, NY
Posts: 112
jannmirch RepRank 1
Default

Nevermind. I increased the height some more and that seems to work.
__________________
Graphic & Web Design
www.jannmirch.com
Reply With Quote
  #3 (permalink)  
Old 10-09-2006, 10:38 PM
bj's Avatar
bj bj is offline
WebProWorld 1,000+ Club
 
Join Date: Apr 2005
Location: Delaware Valley, PA
Posts: 1,172
bj RepRank 3bj RepRank 3
Default

First of all I can't see any difference in IE. Secondly you have another significant problem. Not everyone uses the default font size. Increase the font size and see what happens. If you MUST set heights on those boxes, do it in EMS so they expand with the text. Personally I'd remove the height and let it flow OR set it in a table since it actually is tabular data of a sort. Regardless of how you do it, that needs attention. If you don't fix that your layout is too brittle and doesn't hold up well, especially at narrower window widths. The stuff from the first row overlaps the second row and it's a real mess.

Which would be a shame since the design as it's intended is very attractive.
Reply With Quote
  #4 (permalink)  
Old 10-09-2006, 10:52 PM
jannmirch's Avatar
WebProWorld Pro
 
Join Date: Sep 2005
Location: Yorktown Heights, NY
Posts: 112
jannmirch RepRank 1
Default

Thanks for pointing that out. Sometimes we can't see the obvious things!
__________________
Graphic & Web Design
www.jannmirch.com
Reply With Quote
  #5 (permalink)  
Old 10-09-2006, 10:54 PM
jannmirch's Avatar
WebProWorld Pro
 
Join Date: Sep 2005
Location: Yorktown Heights, NY
Posts: 112
jannmirch RepRank 1
Default

The problem with the flow is if the box in the middle of the "row" is longer than the text to the right of it, the box below gets "stuck" on the longer box and can't align all the way to the left.

I hope I'm explaining it correctly.
__________________
Graphic & Web Design
www.jannmirch.com
Reply With Quote
  #6 (permalink)  
Old 10-09-2006, 11:02 PM
jannmirch's Avatar
WebProWorld Pro
 
Join Date: Sep 2005
Location: Yorktown Heights, NY
Posts: 112
jannmirch RepRank 1
Default

As an aside, one nice advantage of setting up a "faux" table with DIVs is I can delete one product and put in another where ever I want it to appear without having to move around cells the way you do with real tables.

Thanks again, BJ. As ever, your eagle eye sees it all!
__________________
Graphic & Web Design
www.jannmirch.com
Reply With Quote
  #7 (permalink)  
Old 10-10-2006, 12:23 AM
bj's Avatar
bj bj is offline
WebProWorld 1,000+ Club
 
Join Date: Apr 2005
Location: Delaware Valley, PA
Posts: 1,172
bj RepRank 3bj RepRank 3
Default

Did you try the display: table properties?

dizque.lacalabaza.net/temp/full-width-navigation-bar-with-css.html

This is written up to apply to a horizontal menu, but it might fit for your situation.
Reply With Quote
  #8 (permalink)  
Old 10-10-2006, 10:06 PM
jannmirch's Avatar
WebProWorld Pro
 
Join Date: Sep 2005
Location: Yorktown Heights, NY
Posts: 112
jannmirch RepRank 1
Default

I had tried it. It was one of my first attempts actually. But for some reason, I couldn't get it to work. I don't remember what the issue was now.
__________________
Graphic & Web Design
www.jannmirch.com
Reply With Quote
  #9 (permalink)  
Old 10-10-2006, 11:08 PM
bj's Avatar
bj bj is offline
WebProWorld 1,000+ Club
 
Join Date: Apr 2005
Location: Delaware Valley, PA
Posts: 1,172
bj RepRank 3bj RepRank 3
Default

Well, I hate to say this since I try to not use them, but since this is tabular data, a table for that part of the design really is suitable. It'll avoid the font resizing problem, since all row cells will height-expand together with the text. I'd try doing it without specifying heights.

Good luck!
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:36 PM.



Search Engine Optimization by vBSEO 3.3.0