This is a discussion on "positioning - relative or absolute?" within the Web Page Design section. This forum, and the thread "positioning - relative or absolute? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
positioning - relative or absolute?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
positioning - relative or absolute?
hi all, im relatively new to web design, only got in to css last week and still learning a lot.
i made my first proper functional site, using fully w3 compliant html and css yesterday, but have been told that my method for positioning divs etc i bad. the way i do it at the moment, the only way i know how, is using absolute positioning. so my stylesheet is sort of as follows:
|
|
|
|
||||
|
Re: positioning - relative or absolute?
You can see this link :
http://www.w3schools.com/css/pr_class_position.asp it has examples of how they work
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|||
|
Re: positioning - relative or absolute?
You should not use positioning at all yet. Learn how to use floats first. Most page layouts can easily be achieved using floats.
Absolute and relative positioning are highly specialised tools. Don't use them indiscriminately, or you'll create a horrible mess! |
|
|||
|
Re: positioning - relative or absolute?
Quote:
sorry, but i dont understand any of that lol |
|
||||
|
Re: positioning - relative or absolute?
which part dont u understand ?
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|||
|
Re: positioning - relative or absolute?
I never understand W3Schools either...
It's like reading an encyclopedia. Try this tutorial. It will show you how to create a simple 2 column layout without using any positions. Just floats. Once you learn this... you will be so happy! Positions should not be used for most elements because they will cause headaches. On occasion you will need them but rarely. |
|
|||
|
Re: positioning - relative or absolute?
Quote:
This technique is superb for decorating pages in an elastic layout. If you scale the layout, the image will remain anchored in whatever way you desire. Last edited by MikeHopley; Oct 30th, 2007 at 15:50. |
|
||||
|
Re: positioning - relative or absolute?
I don't deny that they have their uses but for someone who is just learning CSS, it's best, like you said, to stay away from them
|
|
||||
|
Re: positioning - relative or absolute?
I only use absolute for banners in the top left/right.
It's quite useful for that
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: positioning - relative or absolute?
Hi Google,
If you want to get a better understanding (while you are doing/looking at Linda's tutorial) have a look at this site before hand: http://css.maxdesign.com.au/floatutorial/. I found it very interesting and helpful when i started out. |
|
|||
|
Re: positioning - relative or absolute?
Position absolute used by spamers to create their pop up irritating advertisement window!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: positioning - relative or absolute?
There's many valid uses for positioning especially when your source code is ordered in a different way to the design. I'd recommend reading Andy Clarke's Transcending CSS for examples - an excellent book anyway.
James. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Absolute Div, wrapped in Relative Div (IE6 - AARRRGGHH) | tenderfoot | Web Page Design | 3 | Feb 7th, 2008 18:43 |
| When is it ok to use Absolute Positioning ?? | slimboyfatz32 | Web Page Design | 31 | Feb 6th, 2008 17:25 |
| absolute positioning | micker | Flash & Multimedia Forum | 1 | May 21st, 2007 19:17 |
| CSS Challenge... absolute AND relative positionning | Trollivier | Web Page Design | 5 | Feb 9th, 2007 16:41 |
| loadMovie function (and absolute/relative URL's) | DocBoy52 | Flash & Multimedia Forum | 1 | Aug 26th, 2006 05:16 |