Results 1 to 5 of 5
Thread: CSS Centering div
Oct 19, 2012, 12:04 #1
- Join Date
- Oct 2012
- 0 Post(s)
- 0 Thread(s)
CSS Centering div
I want to simply center text on a page...
I started doing this by creating a div, and then setting the width to a specific number and applying auto left/right margins.
However, all it is is text. So when changing the width, the centering changes. It doesn't appear to be center anyway, just relatively center.
My other problem is I'd like to have it centered vertically as well. How would I achieve this?
This is specifically what I'm trying to center:
<div id="content"> <p>Link 1</p> <p>Link 2</p> <p>Link 3</p> </div>