background preloader

Web

Facebook Twitter

Tool

Web2.0. Ie6. CSS layouts: liquid, fluid, elastic, flexible... One clean HTML markup, many layouts... xhtml.ru has a copy of this article in Russian It is this thread (title: "one template to rule them all") on the CSS-Discuss List that initiated this article. The original post included a link to a document that contained a set of images representing different layouts, the question was:"Is it possible to have one HTML file, and style these pages this way only with CSS?

". So here we go... The (X)HTML markup: Let's start with the strict minimum: <div id="header">header</div> <div id="menu">menu</div> <div id="content">content</div> <div id="sub-section">sub-section</div> <div id="footer">footer</div> With some background colors, they look like this: The Layouts: Half of the thumbnails below match the layouts published on geocities, I just came up with a few others.

While browsing these pages, keep in mind that these documents do not contain any: wrapper. element for clearing.Conditional Comment.CSS filter.position declaration. overflow:hidden The Gallery: CSS Tabbed Navigation. This page demonstrates a pure CSS method to generate a 'Tab' style interface (see here for more). It first uses the trick of an inline list to generate the tabs. To get the tabs to really look the part - the 'active' tab needs to blend into the 'content' area. This is achieved by giving the active tab a different class, and changing its properties (border-bottom and background) accordingly. Additionally, it allows one to change the active tab's :hover by not highlighting the active tab in the same way as the inactive tabs.

Because the purpose of the tab interface is to 'guide' the user as to their present location, these small features do actually improve the 'usability' of the tab structure. The code is very simple, the CSS is embedded to let you see 'under the hood'. Note that for IE5/5.5 you probably need to add hacks to the CSS to overcome their bugs, I would have done it but I'm tired of box-model hacks... ExpressionEngine - Publish Your Universe!

ViewLikeUs - Check Sites in Various Resolutions! Meyer CSS reset. The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on. The general reasoning behind this was discussed in a May 2007 post, if you're interested. Reset styles quite often appear in CSS frameworks, and the original "meyerweb reset" found its way into Blueprint, among others. The reset styles given here are intentionally very generic. There isn't any default color or background set for the body element, for example. I don't particularly recommend that you just use this in its unaltered state in your own projects. In other words, this is a starting point, not a self-contained black box of no-touchiness.

If you want to use my reset styles, then feel free! Previous Versions v1.0 (200802) Acknowledgments Thanks to Paul Chaplin for the blockquote / q rules. 30 CSS Best Practices for Beginners. Page Speed - test the speed of your web page. Faux Columns. Simple 2 column CSS layout. This is a tutorial on how to use CSS to create a simple two column layout. If you want to create a three column layout, read on as this tutorial explains a basic concept that can be used to create as many columns as you need. When you’re done, take a look at How to create a 3-column layout with CSS. The layout consists of a header, a horizontal navigation bar, a main content column, a sidebar, and a footer. It is also horizontally centered in the browser window.

A pretty basic layout, and not at all difficult to create with CSS once you know how to deal with the inevitable Internet Explorer bugs. To see the full CSS used for each step, view source on the example documents. 1. First of all, we create the basic HTML structure: After that, we put some content in the different sections: <div id="wrap"> <div id="header"><h1>Document Heading</h1></div> <div id="nav"> <ul> <li><a href="#">Option 1</a></li> <li><a href="#">Option 2</a></li> ...

View step 1. 2. View step 2. 3. View step 3. 4. 5. 6. 7. Use CSS floats to create a three-column page layout - Builder UK.