![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Having been a light reader of this ng for a few months now (after several years absence), I have noticed that absolute positioning seems to be considered a Very Bad Thing around here. Generally, when someone posts a question about a design that uses it, they are told not to. Now, in my ignorance, I don't see what's wrong with it, when used sensibly. |
|
Let me say straight off that I am *not* talking about trying to produce pixel-perfect designs, that's not what the web is for (AFAIK). |
|
As an example of what I mean, suppose you wanted a three-column layout, with the left and right columns fixed width (in em or %), and the middle column fluid. It looks like you could do this really easily with absolute positioning. You could fix the position of the left and right columns, and give the middle one margins to suit. Seems very robust and simple to me. |
#3
| |||
| |||
|
|
As an example of what I mean, suppose you wanted a three-column layout, with the left and right columns fixed width (in em or %), and the middle column fluid. It looks like you could do this really easily with absolute positioning. You could fix the position of the left and right columns, and give the middle one margins to suit. Seems very robust and simple to me. Yes that's fine in principle, although 3 columns is a lot (typically won't scale well to narrower viewports). |
#4
| |||
| |||
|
|
I have noticed that absolute positioning seems to be considered a Very Bad Thing around here. |
![]() |
| Thread Tools | |
| Display Modes | |
| |