2 replies [Last post]
garinungkadol
Offline
newbie
Last seen: 16 years 34 weeks ago
Joined: 2003-03-31
Posts: 3
Points: 0

Is it a bad thing to use absolute positioning all the time?

I use it often in my designs and was wondering if it's an okay thing to do.

Sven
Sven's picture
Offline
Enthusiast
Brisbane, Australia
Last seen: 12 years 24 weeks ago
Brisbane, Australia
Timezone: GMT+10
Joined: 2003-03-12
Posts: 166
Points: 0

Absolute vs Relative positioning

Using absolute positioning isn't the worst thing you can do, but it does have some potential disadvantages.

When positioning elements absolutely, it's easy to make assumptions about things like resolution, page size, font size, and the like, that can lead to the layout hampering readability.

If you can lay out a page by defining logical relationships between elements, you probably have a better chance of the page doing what you want it to in unexpected situations. This is particularly important for those platforms you aren't able to test (old/new browsers, other operating systems, new devices).

For example, defining B as being to the left of A is more meaningful than putting A at point x and B at point y.

That said, though, absolute positioning does have its place, and can solve problems that are difficult to achieve through other means.

How about posting a link to one of your sites in the Site Check area?

garinungkadol
Offline
newbie
Last seen: 16 years 34 weeks ago
Joined: 2003-03-31
Posts: 3
Points: 0

Absolute vs Relative positioning

Thanks! I will do that.