Gunlaug Sørtun wrote: > David Agnew wrote: >> CSS is clearly elegant and powerful, and I have little difficulty >> using it to style elements. And using divs for layout - which I'm new >> at - works pretty well designing for ONE browser. But trying to make >> the layout look right for 'all' browsers is driving me nuts (and I >> suspect I have company). > > I think this article says it well... > <http://www.wait-till-i.com/index.php?p=172> > >> Are there any agreed-upon (or widely accepted) fundamentals >> (conditional comments vs. hacks; the 'best' box-model hack; best >> source for reliable hacks; top 3 issues to address, when and how to >> position divs, etc)? > > The basic is found on <http://www.w3.org/>, although it can be hard to > find all bits and pieces in that maze of a site. > This page should lead to some useful resources: > <http://www.w3.org/Style/CSS/learning>
1. What I found difficult about the W3C recommendations, is that sometimes the only way to get the info is to dig in the DTD. For instance which elements are block level and which are inline? I could not finf it until someone on another list gave me the answer look in the DTD! So what I 'am asking myuself since then: - what things to find in the DTD - what things to find in the other part of the recommendation - what to find else where Is there some kind of guideline or something like that somewhere? 2. About the "agraad-upon". In another thread this was stated: > I'd strongly advise against using XHTML (which has a large number of > gotchas) and Transitional (which includes large numbers of elements > and attributes that should not be used, and only a couple which might > be useful ... and then only very rarely). > > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > > ... is almost certainly a better bet. > > -- > David Dorward Is this a general "agreed-upon" ? 3. Avoiding hacks. Is there a central resource (or a couple of places) that starts form the viewpoint: building standards compliant websites ( (x)html and css ) while avoiding hacks as much as possible. >From this point of view I guess the starting point of design should be: - not to get realized whats in my head - but rather the possibilities (without hacks) should be the starting point (off course with a certain design in mind) Maybe there are even places that list browser bugs and explain the work arounds (while avoiding hacks off course). Thanks, Erik ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/