My CSS element is set to a fixed width of 1000 pixels. Here's the current CSS code:
#content
{
margin:auto;
background-color:#DDDDDD;
position:absolute;
top:110px;
width:1000px;
}
The CSS code works well in terms of setting the width, location, and color, but it remains aligned to the left. I want the entire block of text to be centered. I attempted using HTML for alignment:
<div id="content" align="center">
Some test content
</div>
However, this only centers the text inside the element, not the entire element itself. Here is how it currently appears:
http://gyazo.com/b44a28edfecb9cbfc3a5afe93fa08d8a
I would greatly appreciate any assistance in aligning it to the center. Thank you in advance!