Hi,
I'm putting together a site at the moment and I'm trying to work out the
best way of applying styles to various content. The site is split by divs in
typical fashion: #header, #nav, #content etc. Each of these sections use
lists in various ways, the #header has one list laid out horizontally
We can use more than one style in class attribute.
Like:
div class='style1 style2'/div
This works in any browser, i try.
And w3c Validator is silent.
But IS this practice good?
Some times it can be pretty net.
Any catch in this method ?
One of my favourite uses is when floating blocks
If you position it absolutely things should work out ok. I've tested it in
Firefox and it's fine but IE may need adjusting. This method tends to be
used when you're using a liquid layout, given that you're fixing your widths
I'd tend to approach the whole layout using floats but this'll get it
Oh, forgot to say you'll need to set #wrap { position: relative; }
-Original Message-
From: listdad@webstandardsgroup.org
[mailto:[EMAIL PROTECTED] On Behalf Of ~davidLaakso
Sent: 07 October 2006 16:13
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] float clearing problem, is
I haven't got IE7 on this machine but I'm guessing it's because .clearfix
isn't having any effect. Try adding a conditional stylesheet for IE7 with
the content:
.clearfix
{
zoom: 1;
}
James.
_
From: listdad@webstandardsgroup.org [mailto:[EMAIL PROTECTED]
On Behalf Of Dwain
If you have a valid doctype with nothing (or whitespace) on the preceding
lines then there's no reason why it should be rendering in quirks mode, I've
never experienced this in IE7 anyway.
Do you have a link?
-Original Message-
From: listdad@webstandardsgroup.org
[mailto:[EMAIL