CSS Library: Horizontal CSS Menus: Here
CSS Thick Tabs
Author: Dynamic Drive
These CSS menu tabs come with thick top/bottom padding to achieve that attractive cushioned look. Setup is very easy- each menu link simply carries a gradient background image that is changed to a darker version of the original when the mouse rolls over each menu item.
Demo:
The two images used (resized horizontally):

The CSS:
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 1 of 7 pages 1 2 3 > Last »
Its nice, but what would be the easiest way to align this in the center without using tables?
There are no tables anyway???
But line-height is a really good way to align text in the center, not for div's etc though... I imagine you could possibly use that here rather than using padding (set the height of the li through css and then set the line-height to that)...
But line-height is a really good way to align text in the center, not for div's etc though... I imagine you could possibly use that here rather than using padding (set the height of the li through css and then set the line-height to that)...
Since the tabs are floated (to the left), centering them on the page is more tricky. You may want to do a search on Google to see what some of the techniques are for this.
Centering menu horizontally on page? How about . . .
#thicktabs{
margin: 0 auto;
width: 400px; /* or whatever */
padding: 0;
font: bold 13px Tahoma;
}
I really like it. Web 2.0.
How do I have a button with two text lines? Ie. in the example, how would I make "Webmaster Tools" display on two text lines ("Webmaster" with "Tools" underneath)?
effective but how can i make this with table coz i mostly use table to design my site.
Hello rockoyster, I try you code and still doesn't work, it work only on 400px, I try to make it 700px and the menu not center anymore.
Also I need little question, how to make it width totally on page? thanks
Also I need little question, how to make it width totally on page? thanks
I thought when floating an element, a width needs to be given. Is that not so?
Where is the border of the individual tabs specified?
-- Stephan
Where is the border of the individual tabs specified?
-- Stephan
to matt and jauhari, you could easily center it by putting the whole list into another div (ex: <div id="tab">) and put
#tab{
margin-right:auto;
margin-left:auto;
}
this will surely center it :D
Commenting is not available in this weblog entry.
#tab{
margin-right:auto;
margin-left:auto;
}
this will surely center it :D

