atari400 atari400 - 4 months ago 9
HTML Question

unable to allign script at center of page despite several attempts

I am unable to place my ads at the center of my site

www.ios7.me


this is the script:

<script type="text/javascript">
ch_client = "verronica";
ch_width = 250;
ch_height = 250;
ch_type = "mpu";
ch_sid = "Chitika Default";
ch_color_site_link = "0000CC";
ch_color_title = "0000CC";
ch_color_border = "FFFFFF";
ch_color_text = "000000";
ch_color_bg = "FFFFFF";
</script>
<script src="http://scripts.chitika.net/eminimalls/amm.js" type="text/javascript">
</script>


I have tried various attempts like:

<div align="center">
script
</div>

<center>
script
</center>

<td allign="center">
script
</td>


but all did not go so well Its all just alligned to left.
I have run out of all clues as I am very poor in css

Answer

Its simple, just assign some hard code WIDTH and apply MARGIN to AUTO to your DIV (which is wrapping your ADs). For Example:

<div style="width:1024px; margin:auto;">
    <!-- Your Ad related code here -->
</div>

or simply if you want to get width dynamicaly as soon as your page loads, then do let me know in your comment, i will surely get that done for you :)

All the Best !