i've been searching and i know that float:left or float whatever does that, but what if I don't want to use float? Is there another way to make a div tag wrap around its contents? if i do
border: thin solid black;
it will show that by default the div tag is 100%.
Thank you
Edit: I have a div tag wrapped around a form
<div class='subHolder'>
<form action="" method="get">
<input type='text' class='subscribe' name='subscription'/>
<a class='buttonSubscribe orange'>Subscribe</a>
</form>
</div>
This is the style sheet
div.subHolder {
padding:30px;
margin:0 auto;
border:thin solid black;
display:inline-block;
}
How do I set it so it will float in the middle of the page?
Thank you
maybe you want
display:inline;
check out w3schools http://www.w3schools.com/css/pr_class_display.asp`