I need assistance center aligning #container
with the following code:
<div id="container">
<p>new</p>
</div>
The CSS provided is as follows-
#container {
position:relative;
width:100%;
background:red;
padding:10px;
float:left;
margin-left:30%;/*for centering*/
}
p {
text-align: center;
}
However, I am facing issues with proper center alignment with respect to content. Requesting guidance on this matter.