Skip to content
CSS Head
CSS links, tutorials, code and demos for web designers and developers
    About Archives Contact Privacy and Cookies Policy Submit a Link Submit Community News
CSS Head
CSS links, tutorials, code and demos for web designers and developers
Home Submit a Link Contact About

Tag: horizontal

Create a vertically centred horizontal navigation

January 31, 2011

Centring block level elements is easy, just define a width and set margin:0 auto;, but what if you don’t know that fixed width? You could use text-align:center;, but that won’t work on 100%-width block-level elements either… that’ll only work on text-level elements.

csshead comment 0 Comments

Horizontal and Vertical Centering Using CSS: A Beginner’s Guide

September 2, 2009

There comes a time in every web designer’s life, when you’re trying to center an HTML element and it’s failing miserably. You’re ready to pull the plug on CSS, revert back to tables, and use deprecated tags and attributes like: center, align, and valign. In this tutorial we’re going to shed some light on the […]

csshead comment 0 Comments