Help with Alignment

A

Anonymous

Guest
Yes I too having similar kind of problem in my site. So for that I fixed it with the table <tr><td> tags. But I want to do it without using it. Help us out with it.
 
Hi!

You can add padding in your #Container. The padding will clear an area around your #Container. You can specify the padding of your top, bottom, left and right sides individually:

Code:
padding-top: 100px;
padding-bottom: 100px;
padding-right: 50px;
padding-left: 50px;

Or:

Code:
padding: 100px 50px 100px 50px;
which specifies the padding of top, right, bottom, and left respectively.

You can also search other ways on how to specify your padding.
I hope this helps. Thank you.
 
Hi,

Try this:
<div style="text-align:center;">
<div style="border:1px solid #000; display:inline-block;">Div 1</div>
<div style="border:1px solid red; display:inline-block;">Div 2</div>
</div>
 
Back
Top