OK, I have a div that is in the centred:
<div id="spry">
<p> hello there asdsdfasd adsfasdf aasdfasfd </p>
</div>
Uses this CSS:
#spry {
background-color: red;
display: block;
margin-left: auto;
margin-right: auto;
width: 400px;
}
But I want to have the div not a fixed width. I figured I could just change width: 400px
;
to width: auto;
But if you do that it just expands to the whole width.