What Should I Do??

Status
Not open for further replies.

mohamed

New Member
Messages
140
Reaction score
0
Points
0
Hi

I am having a corporat free hosting with you and it's really great.

My problem is I want to allign the banner ad to the center but i can't do it.

By the way this is the ad code I am using:

Code:
<script language='JavaScript' type='text/javascript' src='http://x10hosting.com/advert/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("[URL="http://x10hosting.com/advert/adjs.php?n"]http://x10hosting.com/advert/adjs.php?n[/URL]=" + phpAds_random);
document.write ("&amp;what=zone:1&amp;target=_blank");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&amp;referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d' border='0' alt=''></a></noscript>

So if anyone can help me and tell me how to align the banner ad to a different side(right,left,center) I'd be really grateful.
 

Torch

New Member
Messages
634
Reaction score
0
Points
0
If you want to align it to center of some element, the easiest way is just to add <center> to start of the script and </center> to the end. Alternatively, you could use <div align="left"> or <div align="right"> (both of which end by </div> of course), but div tags might interfere with your layout if not placed correctly. You can also put the code into table or set it into <span> and give it class so you control it by CSS, but do that only if you have some knowledge of HTML and CSS.
 
Last edited:

Cynical

Active Member
Messages
3,492
Reaction score
0
Points
36
<center>(ad code here)</center> is probably the easiest to manage.
 

mohamed

New Member
Messages
140
Reaction score
0
Points
0
Torch said:
If you want to align it to center of some element, the easiest way is just to add <center> to start of the script and </center> to the end. Alternatively, you could use <div align="left"> or <div align="right"> (both of which end by </div> of course), but div tags might interfere with your layout if not placed correctly. You can also put the code into table or set it into <span> and give it class so you control it by CSS, but do that only if you have some knowledge of HTML and CSS.

Thanks Torch very much

You really helped me
 
Status
Not open for further replies.
Top