![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
There's a testcase here, in which the border of the tabs is red for clarity: http://www.jackpot.uk.net/jackpot/testlayout.html That's a good one. |
#3
| |||
| |||
|
|
Jack wrote: There's a testcase here, in which the border of the tabs is red for clarity: http://www.jackpot.uk.net/jackpot/testlayout.html That's a good one. It is related somehow to line-height in ".tabsul li". There is space around the <li> that defies all attempts to remove it, and is a function of line-height. |
#4
| |||
| |||
|
|
There's a testcase here, in which the border of the tabs is red for clarity: http://www.jackpot.uk.net/jackpot/testlayout.html That's a good one. It is related somehow to line-height in ".tabsul li". There is space around the <li> that defies all attempts to remove it, and is a function of line-height. I have a solution: |
#5
| |||
| |||
|
|
Unfortunately not many browsers support z-index. Neither IE6 nor Opera7 does. |
#6
| ||||
| ||||
|
|
Jim Moe wrote: There's a testcase here, in which the border of the tabs is red for clarity: http://www.jackpot.uk.net/jackpot/testlayout.html That's a good one. It is related somehow to line-height in ".tabsul li". There is space around the <li> that defies all attempts to remove it, and is a function of line-height. I have a solution: - add "line-height: 100%;" to "div.tabs" - remove "margin-bottom: -1px" |
|
It solves the positioning of the bottom of the <li>s. The z-index is needed to have the tab list stack above navmain. Unfortunately not many browsers support z-index. Neither IE6 nor Opera7 does. |
|
Based on your test case there is no need for all that positioning, either relative or absolute. It can as easily be done with margins or padding. In general it is best to avoid positioning where possible since IE does not do it very well. |
|
Your code looks like a modified version of http://css.maxdesign.com.au/listamatic/horizontal05.htm>. I suggest staying true to that code before introducing other factors. |
#7
| |||
| |||
|
|
Unfortunately not many browsers support z-index. Neither IE6 nor Opera7 does. Unfortunately not many people understand absolute positioning and stack levels, including you apparently. If you don't understand something, please refrain from giving "advice". My comment was based on observation of how it z-index operated with |
#8
| |||
| |||
|
|
My comment was based on observation of how it z-index operated with those browsers rather than actual knowledge of how it is supposed to work. |
|
Could you offer a reference that clearly explains this? |
![]() |
| Thread Tools | |
| Display Modes | |
| |