|
Tailslide -> RE: Divs in Site... just wanting to be sure that am doing the right thing (8/31/2005 10:41:52)
|
Hi Well your HTML and CSS both validate and you have a DOCTYPE which means you're most of the way there. There are a couple of points I'd raise that you might want to look into. You use a lot of position:absolute with your design - it's understandable because you want it to look a certain way. The problem with the web is that the reader of the page can change a lot of things that are beyond your control - plus there is stuff that they should really be able to change like text size if they need to. If you use Position:absolute for big stuff on your page then it can make it quite fragile and easy to break when the reader fiddles with it. It's not that absolute positioning is wrong - it isn't - it's just (IMO) better to "go with the flow" - let the <div>s sit in the document flow. What I do is to put all the <div>s inside a container div. Then I can position that container div wherever I want on the page. The <div>s within it just flow one after the other (with occasional floating <divs>) they don't need to have their position fixed. I do sometimes us position:absolute - but only for small things, like positioning sub menus etc - never for whole <divs>. Also - you've used a fixed font-size which means that your text can't be re-sized in IE (it can be in FF, Opera and all standard-compliant browsers). This may be for a similar reason to using the position:absolute - to get a certain finished look. I think that that philosophy belongs more with print media rather than on the web. Stuff on the web should be able to move/resize (otherwise life gets waaay too easy for us!). There are a couple of slight differences in Firefox but nothing disasterous (always always code for Firefox, check in Opera and fix for IE - don't try this the other way round if you value your sanity!).
|
|
|
|