This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2006 > CSS position - absolute, relative or static?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
CSS position - absolute, relative or static?
|
|
| johncreak 2006-02-16, 6:46 pm |
| Hi!
I want to position a container div for content centrally on a page (left and right margins set to auto). Should the div's position be absolute, relative or static?
Many thanks
| |
| Murray *TMM* 2006-02-16, 6:46 pm |
| It would depend entirely on what will be IN that container.
If there will be no absolutely positioned elements within the container,
then it needs no position style (i.e., by default, position:static).
If there WILL be absolutely positioned elements within the container, then
it needs a position:relative style.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"johncreak" <webforumsuser@macromedia.com> wrote in message
news:dssrns$rin$1@forums.macromedia.com...
> Hi!
>
> I want to position a container div for content centrally on a page (left
> and right margins set to auto). Should the div's position be absolute,
> relative or static?
>
> Many thanks
| |
| Thierry | www.TJKDesign.com 2006-02-16, 6:47 pm |
| johncreak wrote:
> Hi!
>
> I want to position a container div for content centrally on a page
> (left and right margins set to auto). Should the div's position be
> absolute, relative or static?
You're already "positioning" this element using margin, isn't enough?
Keep It Simple! ;-)
--
Thierry | http://www.TJKDesign.com | CSS-P Templates + Articles:
CSS Popups, CSS 3 Column Layout, CSS Tabs, CSS Dropdown Menu,
TIP Method, Sliced Images, Clean Popup Windows, Easy Maintenance.....
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|