View Full Version : Need help customizing this CSS menu, please help
player 1
04-26-2008, 06:03 PM
Hi all.
I need help customizing this CSS menu: http://www.dynamicdrive.com/style/csslibrary/item/animated_horizontal_tabs/
I want it to have five red tabs, each 125 px width, 30 px height (rollover 35 px) and no margins between them. I want it to look like this: http://img117.imageshack.us/img117/9285/headerbyy9.jpg
By player_1 (http://profile.imageshack.us/user/player_1) at 2008-04-26
Medyman
04-26-2008, 07:28 PM
Color
Change the color of the background images included with the CSS. There are no code changes required for that
Width & Margins
Remove the red text, insert the green text. You'll probably also want to add the text-align:center property to center the text within the tab.
.animatedtabs a{
float: left;
position: relative;
top: 5px; /* 1) Number of pixels to protrude up for selected tab. Should equal (3) MINUS (2) below */
background: url(media/tab-blue-left.gif) no-repeat left top;
margin: 0;
margin-right: 3px; /*Spacing between each tab*/
padding: 0 0 0 9px;
text-decoration: none;
width:125px;
text-align:center;
}
Height
Play around with the following rules:
top:5px; /* 1) Number of pixels to protrude up for selected tab. Should equal (3) MINUS (2) below */
padding: 5px 14px 3px 5px; /* 2) Padding within each tab. The 3rd value, or 3px, should equal (1) MINUS (3) */
And adjust these values accordingly.
padding-bottom: 8px; /* 3) Bottom padding of selected tab. Should equal (1) PLUS (2) above */
padding-bottom: 8px; /* 3) Bottom padding of selected tab. Should equal (1) PLUS (2) above */
player 1
04-27-2008, 09:23 AM
Thanks a lot!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.