![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
| http://www.blue-sky.co.uk/main.css #navbar has 'position: relative' but to what end? Does 'position: relative' have a bearing on the absolutely positioned descendents of #navbar? |
#2
| |||
| |||
|
| http://www.blue-sky.co.uk/main.css #navbar has 'position: relative' but to what end? Does 'position: relative' have a bearing on the absolutely positioned descendents of #navbar? My understanding: Block elements declared as relative or absolute, position themselves relative to the closest enclosing element that is not statically positioned. |
#3
| |||
| |||
|
|
Almost. Relatively-positioned elements (block or not) have just the same containing blocks as static ones-- i.e. just the nearest block ancestor. It's only absolutely positioned ones whose CB is the nearest absolute or fixed ancestor. |
#4
| |||
| |||
|
|
On Dec 10, 3:30 pm, Ben C <spams... (AT) spam (DOT) eggs> wrote: Almost. Relatively-positioned elements (block or not) have just the same containing blocks as static ones-- i.e. just the nearest block ancestor. It's only absolutely positioned ones whose CB is the nearest absolute or fixed ancestor. Ok. That makes more sense. I'll have to learn to keep my participation to questions only. I seem to know enough to get it almost right. Which is perhaps worse than wrong. |
#5
| |||
| |||
|
|
On 2007-12-11, salmobytes <Sandy.Pittendrigh (AT) gmail (DOT) com> wrote: On Dec 10, 3:30 pm, Ben C <spams... (AT) spam (DOT) eggs> wrote: Almost. Relatively-positioned elements (block or not) have just the same containing blocks as static ones-- i.e. just the nearest block ancestor. It's only absolutely positioned ones whose CB is the nearest absolute or fixed ancestor. Ok. That makes more sense. I'll have to learn to keep my participation to questions only. I seem to know enough to get it almost right. Which is perhaps worse than wrong. Don't worry about it. If you say something wrong then it might get corrected and then it effectively might as well have been a question. Better still perhaps one about something you didn't know you didn't know. The only difference is in the number of kickings you might receive, but they are harmless fun you should ignore anyway. |
![]() |
| Thread Tools | |
| Display Modes | |
| |