News for hackers. Stuff that matters.
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by ph0rque on Thursday April 09, 2009 @09:42PM (#555532)
I'm more impressed by the diagrams explaining what's going on with each html tag and its CSS attributes.
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by feverishaaron on Friday April 10, 2009 @10:19AM (#556067)
Agreed. I think this type of patient explanation is what people need to learn CSS well. Too often, sites that get linked up offer specific "css recipes" without any guide as to what is happening. It works sometimes to just copy and paste, but does that really "teach you how to fish"?
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by mshafrir on Thursday April 09, 2009 @09:44PM (#555535)
<nitpicking>It can be argued that the wrapper div is not semantically relevant.</nitpicking>
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by gord on Friday April 10, 2009 @08:03AM (#555941)
interesting point actually...

Given the same textual semantic content 'information', a badly laid out and a well laid out site can be orders of magnitude easier/harder to read. One might draw from this that _layout_ has some semantic content.

Think of a google result list being randomized - the layout clearly has semantic content [best ranked first in layout]

Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by mshafrir on Thursday April 23, 2009 @05:24PM (#576506)
In this case Google could use an ordered list element to give context to the search results.
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by gord on Thursday April 09, 2009 @11:29PM (#555646)
I think its quite a good site for css layout examples...

I remember discovering how position:absolute was in fact _relative_ to the enclosing div/element, ayaaay!

another css layout approach given here - http://www.digital-web.com/articles/everything_you_know_abou... [ although ie6 seems to be broken wrt tabular divs, eek ]

Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by blasdel on Friday April 10, 2009 @12:00AM (#555671)
position:absolute only behaves that way relative to a positioned parent -- if the parent doesn't have the position attribute set, it keeps looking up the hierarchy until it finds one that is (or is the root).
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by pmjordan on Friday April 10, 2009 @04:28AM (#555851)
While we're nit-picking: if the parent doesn't have the position attribute set isn't quite accurate: the containing block must not have static positioning (which it does by default), but one of absolute, relative or fixed.
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by gord on Friday April 10, 2009 @07:59AM (#555940)
thats kind of my point - its not trivially obvious that "absolute" is not absolute.

I know ... RTFM.. but then theres what browsers actually do as a mixin.

Hence good examples of motifs that are reasonably portable are all the more valuable.

Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by runningskull on Friday April 10, 2009 @10:37AM (#556100)
Thanks for the timely submission. I was just doing this exact thing last night and was having trouble getting it to behave.
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by ja30278 on Friday April 10, 2009 @02:59PM (#556582)
I like CSS, but every time I see an article bragging about a new technique for accomplishing something that _should_ be simple, I lose the faith a little bit.

Can't we just give up and add '<tabset>' and '<tab>' tags to html and call it a day. At the very least, we could stop abusing the poor <ul> tag.

Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by horatio on Friday April 10, 2009 @02:34AM (#555803)
Doesn't work in my Chrome actually. 2.0.173.1
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by juanpablo on Friday April 10, 2009 @01:16PM (#556353)
It works for me (same Chrome version)
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by BonsaiKitt3n on Friday April 10, 2009 @04:03AM (#555844)
welcome to 2004!
Re:Beautiful Horizontally Centered Menus/Tabs/List. No CSS h... by webwright on Friday April 10, 2009 @12:00PM (#556215)
Oh, hell-- I've got some karma to spare...

I could do this with a table in about 11 seconds.