|
|
 |
RE: FN-FORUM: CSS Help
date posted 29th January 2006 16:49
In CSS, more is less. The less CSS attributes that you can get away with
using, the better. Don't' overcomplicate your CSS by adding loads of
different styles and tweaks for everything.
To handle minimum height, I've (so far) found that doing;
div {display:block; height:400px; min-height:400px;)
body > div{height:auto;)
Seems to work. The first bit sets the height and IE happily extends the
block out if it's higher than 400px. IE ignores min-height in the first
div declaration. The body > div selector only words for Moz and it
resets the height to auto so that the block will auto-expand for Moz.
Don't know how well it works for Opera and to be honest, I don't care ;)
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Tony
Crockford
Sent: 29 January 2006 16:53
To: Andy Macnaughton-Jones
Subject: Re: FN-FORUM: CSS Help
On 29 Jan 2006 16:40:22 -0000, Lee Fogarty [EMAIL REMOVED]
wrote:
>
> Thanks for the replies folks but I'm still struggling here. This is=20
> why I code & don't design :)
>
> The url is=20
> http://82.13.65.36/independent_lady/independent_4.php?e_id=3D17
start again...
simply:
forms & stuff
give body text-align: center and #container text-align: left and
margin: 0 auto; and it will centre on the page.
take away all the position absolutes and the header will push the
content down, the content will push the footer down.
TBH I'm struggling to see why you've complicated your layout so much..
;o)
--
Join me: http://wiki.workalone.co.uk/
Thank me: http://www.amazon.co.uk/gp/registry/1VK42TQL7VD2F
Engage me: http://www.boldfish.co.uk/portfolio/
--
Freelancers, contractors earn more with Prosperity4 Call 0870 870 4414
or visit www.prosperity4.com and benefit from Inland Revenue approved
expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|