navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Divs in Site... just wanting to be sure that am doing the right thing

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Divs in Site... just wanting to be sure that am doing the right thing
Page: [1]
 
scooper

 

Posts: 1
Joined: 8/29/2005
Status: offline

 
Divs in Site... just wanting to be sure that am doing t... - 8/31/2005 10:09:31   
Hi there,

I'm building a site with div's for the first time... i came here to check lot's of stuff... but still not sure if i'm doing it right.

It's not totally with div's it has some tables, because i don't know if i'm building it right...

So if anyone can help, i would gladly appreciate.

URL (test one):
http://mcr.clix.pt/mix/index.asp

CSS is:
http://mcr.clix.pt/mix/mix.css

Thanks
Tailslide

 

Posts: 6270
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: online

 
RE: Divs in Site... just wanting to be sure that am doi... - 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!).



_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to scooper)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Divs in Site... just wanting to be sure that am doing the right thing
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts