Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need advice on positioning divs 2

Status
Not open for further replies.

RhythmAce

Technical User
May 22, 2001
2,869
FR
I am very new to using css and divs. Up 'til now I've made heavy use of tables for my layout but since I've started playing with divs, I'm hooked. Here's my question. I can test my pages using ie and ff but I have an old monitor. The new ones have wider screens so I'm sure things get pretty homely looking. I use position: absolute for poitioning. I have a different color backgound in the parent div and set margins between the blocks so it looks like a divider. The problem with doing it this way is I don't know what happens on the wider screens. Is there a better way of positioning so that the page will adjust to the display? Here is the address of the web page using divs: You can click on any of the links to the other pages to see the table version.
 
Yes, there is. It's called normal document flow. As in, you put things in the way they would normally flow in a document. Usually this requires no positioning (you would not use position attribute) and most elements are placed via their natural position in the document, floats, margins and paddings.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
The only real problems for me with your layout are that if you shrink the font size down a few sizes, you get a dark bar at the bottom of the page, and if you grow it a few sizes, the header cuts off. These could both be avoided by not using absolute positioning.

However, on my obscenely-wide monitor, the site looks just fine. I wouldn't really expect all sites to stretch to fit... in fact, yours is a pretty good width (I wouldn't make it any wider personally) for the average size resolution.

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top