USING CSS TO STYLE A CENTERED DIV

The above is placed in a div that has css applied to it.

CSS : #holder { margin: auto auto; text-align:center; width: 780px;}

 

Back to tutorials

 

CENTERING IN A TABLE

Graphic placed in a 780px wide table and alignment set to center.

Insert a 780px wide table on your page. Insert your graphic into this table.

In the Property inspector, select the Horz. dropdown and choose center.

 

HTML Code will look like this:

<table width="780px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><img name="" src="tutorial_pics/ladyfixed.jpg" width="349" height="244" alt="">
<p>Graphic placed in a 100% wide table and alignment set to center. </p></td>
</tr>
</table>

Back to tutorials