[WSG] Contextual selectors or class attribute in tag

2006-08-06 Thread James Thomson
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

RE: [WSG] More than one style in one class atribute ?

2006-08-26 Thread James Thomson
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

RE: [WSG] float clearing problem, is there a cleaner way?

2006-10-07 Thread James Thomson
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

Re: [WSG] float clearing problem, is there a cleaner way?

2006-10-07 Thread James Thomson
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

RE: [WSG] ie7 does not render page properly

2006-11-19 Thread James Thomson
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

RE: [WSG] IE7 and the * html hack

2007-01-29 Thread James Thomson
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