Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 20th, 2007, 11:39 AM   #1
gj15987
Programmer
 
Join Date: Feb 2005
Posts: 45
Rep Power: 0 gj15987 is on a distinguished road
Floating div make parent grow?

Hi. I have this website: http://www.foxcalluk.co.uk/Redesign/page.html and I would like the div for the menu on the left to always be the same height as its parents div.

Using "normal" html and css, setting the menu to height:100% works fine. However, I'm using an XHTML 1.1 doctype and it wont work.

Any ideas?
gj15987 is offline   Reply With Quote
Old Jun 21st, 2007, 9:53 AM   #2
Tsar_of_Cows
Newbie
 
Join Date: Jun 2007
Posts: 15
Rep Power: 0 Tsar_of_Cows is on a distinguished road
Just a wild stab in the dark, but have you tried setting it to 90 -> 99% instead? it may well be some sort of new restriction on these things. (I've not used XHTML 1.1 yet )
Tsar_of_Cows is offline   Reply With Quote
Old Jun 21st, 2007, 11:04 AM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You don't mention a browser, which is an important piece of information. For instance, using an unrecognized doctype will generally throw a browser into a default, or "quirks" mode. IE does not support XHTML. In quirks mode it will not treat a box model according to the definitions of the W3C. Google "box model" and you will find many descriptions of the problem and hacks for working around it.

Bear in mind that default values for margins, spacing, etc., are not always the same from browser to browser. One wants to be specific.

Feel free to be wary of responses that indulge in voodoo, also known as SWAG (sophisticated wild-ass guess) or SHIT (shot in the dark).
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:36 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC