Even the contents change when scrolled on. While this must not be a problem whatsoever, in this specific article, I’d like to share one particular method of creating tabs which written in few lines of CSS. Using CSS3 animations, the content box appears in an almost realistic motion when clicked on any of the tabs.
. Step 1: Adding HTML. I guess the rigidity with which they try to enforce the separation of style and content rule (HTML was designed to do both from the beginning - there is nothing wrong with occasionally defining style of an unique element using appropriate tags without having to spend a lot more time on creating CSS style sheets and there is absolutely nothing unreadable about it when it's used in moderation. It seems to be responsive as well, which means the design automatically adjusts to all the device frames with ease. In order to develop a lightweight multitab, I decided to use jQuery and CSS to facilitate it. Blog . Unfortunately I need to create the tab set on the fly and send the complete html, which from everything I’ve read, can’t be done, even using jquery tabs or jquery tab plugins. EDIT: As of 2020 this technique still works and allows tabs to be linked to, but if you are looking for multiple tabsets on one page, see @chulian's answer which uses input[type=radio] instead of :target. The use of tabbed area is very frequent now a days. . It seems ajax and tabs just won’t play together, the best you can do is to use ajax to fill an existing tab. However, unlike the previous option, this has it’s roots on the JS implementation alongside the CSS and HTML. There is a button on the bottom left that allows for the next of the tab to show. The selected tab is also highlighted with the colro transition to a lighter shade. The selection is highlighted when clicked on and displays a color transition including the icon and the text.