TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Beautiful Horizontally Centered Menus/Tabs/List. No CSS hacks. Full cross-browser.

57 pointsby jollyjerryabout 16 years ago

8 comments

ph0rqueabout 16 years ago
I'm more impressed by the diagrams explaining what's going on with each html tag and its CSS attributes.
评论 #556067 未加载
mshafrirabout 16 years ago
<nitpicking>It can be argued that the wrapper div is not semantically relevant.</nitpicking>
评论 #555941 未加载
gordabout 16 years ago
I think its quite a good site for css layout examples...<p>I remember discovering how position:absolute was in fact _relative_ to the enclosing div/element, ayaaay!<p>another css layout approach given here - <a href="http://www.digital-web.com/articles/everything_you_know_about_CSS_Is_wrong/" rel="nofollow">http://www.digital-web.com/articles/everything_you_know_abou...</a> [ although ie6 seems to be broken wrt tabular divs, eek ]
评论 #555671 未加载
runningskullabout 16 years ago
Thanks for the timely submission. I was just doing this exact thing last night and was having trouble getting it to behave.
ja30278about 16 years ago
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.<p>Can't we just give up and add '&#60;tabset&#62;' and '&#60;tab&#62;' tags to html and call it a day. At the very least, we could stop abusing the poor &#60;ul&#62; tag.
horatioabout 16 years ago
Doesn't work in my Chrome actually. 2.0.173.1
评论 #556353 未加载
BonsaiKitt3nabout 16 years ago
welcome to 2004!
webwrightabout 16 years ago
Oh, hell-- I've got some karma to spare...<p>I could do this with a table in about 11 seconds.