Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library
 
CSS Library
Submit an original CSS code
CSS Layouts
Web Graphics
Online Tools:

Advertise Here

CSS Library: Horizontal CSS Menus: Here

Animated horizontal tabs

Author: Dynamic Drive

These sliding doors based blue tinted tabs "jump up" when selected, such as when the mouse rolls over each one. This is accomplished using a combination of relative positioning and padding on each tab. The selected tab is first stretched vertically by giving it a thick bottom padding, then plucked out thanks to the CSS "top" property value that's smaller than the normal tabs'. The result are tabs that animate without any scripting.

BTW, the amount the selected tab jump up can be easily adjusted- refer to the comments inside the CSS.

Demo:

The two images used:

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 04/12/2008

Revision History: None

Usage Terms: Click here

Your Comments (32)

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 3 of 4 pages « First  <  1 2 3 4 >

For some reason this doesnt work on my project. The tabs have simply created a space underneith them and fill that space when I roll-over/select. Any help would be appreciated as this would look very good on my page.
Posted by Duck__Boy on 07/25, 08:54 AM
Hello

Sorry but I'm French, i will try to my best to explain my problem! :p I want to do an align="center" on the horizontal menu but I don't know how to do this. I it possible?
Posted by justone22 on 08/08, 12:42 PM
Where are the images?
Posted by thedoc on 10/04, 02:34 PM
Fine post. Kudos to you for sharing this,
edi
Posted by Mark on 10/23, 03:28 AM
Exactly i am facint the same prob...Using the same graphics as you, mine are clipped off and the menu jumps up and down as I roll over.The whole interface moves up and down ...Anyone having any idea bat how to correct this issue???
Posted by jessy on 10/26, 05:56 PM
should i reach this level in css to be aprofisional ...! how?
Posted by ahmed on 10/31, 03:12 PM
Very good, but is there a way to stop things going awry if the browser window is too small. When the window width is less than the width of the row of tabs, the tabs wrap around but no longer function nicely.
Posted by DrinkDeuchars on 11/04, 08:20 AM
Nice and the same what i am looking for but i want to add submenu also.
so please provide the code with submenu
Posted by Satyendra on 11/04, 11:40 PM
This what i want.. many thanks
Posted by Joomla panel on 11/07, 02:46 PM
very interesting....
Posted by catherines plus sizes on 11/11, 02:05 PM

Comment Pages 3 of 4 pages « First  <  1 2 3 4 >

Name: (Required)

Email: (Required)

(NOT shown on page)

URL:

(Shown on page if entered)

Comments: (Required)

Supported BB codes: [b], [i], [u], [em], [strike], [strong], [pre], [code], and [blockquote].

Remember my personal information
Notify me of follow-up comments?

Submit the word you see below ("previewing" post does not require it):


Copyright 2006-2008 Dynamic Drive Read our Usage Terms before using any of the CSS codes.
Dynamic Drive DHTML and CSS Code Library