Centering text and other elements can easily be done with the CSS text-align property. It can be applied to a division, the p tag – pretty much any block-level element.
Archive for June, 2010
Centering Text with CSS
Tuesday, June 29th, 2010The CSS Overflow Property
Saturday, June 26th, 2010By default, elements in a website will expand to make room for whatever they contain. An empty division, for example, won’t show at all, but you can add 1 or 12 (whatever) paragraphs, and the division will be as big as it needs to be so everything inside is displayed.
Styling a Horizontal Rule with CSS
Sunday, June 20th, 2010A quick and easy way to insert a dividing line into a website is with a horizontal rule, the hr tag.
Using the CSS z-index
Saturday, June 19th, 2010By default, the elements of a website line themselves up next to or under each other automatically. However, at times, the design requires them to overlap. When that happens, the stacking order becomes important, and the natural stacking order will need to be manipulated.
Styling iframes with CSS
Saturday, June 5th, 2010If you still haven’t heard, hear it now: FRAMES ARE DEAD – well, technically, they are more like the undead – the zombies of webdesign. They should be gone and forgotten but refuse to stay buried. It’s much better not to use them. However, there may be a situation, where inserting a separate html document into your page makes sense.


