Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: Div styling problem

date posted 2nd February 2008 23:39


On 3 Feb 2008, at 00:38, Alex Libby wrote:

>
> Hi Andy,
>
> D'oh! I knew it had to be something simple! I assume that taking off
> the
> fixed height will at least allow it to grow. But - could you please
> satisfy
> my curiosity? What hack did you have in mind? (sorry - I am still a
> little
> new to CSS; I can do the basic stuff, but hacks is something I have
> yet to
> fully explore...)


I'd use a conditional comment[1] and give IE6 and below a different
style sheet with height in it.

or you could use this recent hack...

http://www.dustindiaz.com/min-height-fast-hack/

or:

use a child selector (which IE6 and below don't understand) like this:

div#wrapper{
height: 500px;
min-height: 500px;
}

html>body div#wrapper{
height: auto;
}


so IE6 sees height 500px

all other good browsers see it, and the min-height and have the fixed
height over-ridden by the height:auto.


I prefer CC's but you have a choice...

;o)




[1]

http://www.puidokas.com/efficient-conditional-comments/

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/ccomment_ovw.asp

http://www.456bereastreet.com/archive/200511/valid_downlevelrevealed_conditional_comments/



Messages by Day
February 29th 2008
February 28th 2008
February 27th 2008
February 26th 2008
February 25th 2008
February 24th 2008
February 23rd 2008
February 22nd 2008
February 21st 2008
February 20th 2008
February 19th 2008
February 18th 2008
February 17th 2008
February 16th 2008
February 15th 2008
February 14th 2008
February 13th 2008
February 12th 2008
February 11th 2008
February 10th 2008
February 9th 2008
February 8th 2008
February 7th 2008
February 6th 2008
February 5th 2008
February 4th 2008
February 3rd 2008
February 2nd 2008
February 1st 2008


Messages by Month
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000