Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Alan Coleman www.alancoleman.co.uk

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

Giving form labels a width

For some reason this has always bugged me in the past. When using a label they don't comply with width unless accompanied by a float. I've used em to define the width so that is conforms with browser text settings. Dead simple

label {
	margin-right:10px;
	width:10em;
	float:left;
}

CSS include

Import the contents of an existing CSS file into your current CSS

@import "general.css";
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS