Center alignment?

Discussion in 'HTML & Website Design' started by elezend, Apr 18, 2008.

  1. #1
    Is it possible to make center alignment for this? I need to make it center so my blog will be neat >.<

    <!-- Begin Project Wonderful ad code: -->
    <!-- IMPORTANT: All lines, including these comments, must be included. -->
    <!-- Removal or unauthorized alteration may result in your ads being automatically suspended! -->
    <!-- Ad box ID: 16993 -->
    <script language='JavaScript' type='text/javascript'>
    // <![CDATA[
    //On the next two lines, you can set custom colours for your
    //ad box, which will override anything you've set on
    //Project Wonderful. This is useful when you have the
    //same ad box appearing on pages with different colour
    //schemes. Use only hexadecimal colour codes here. If you
    //don't understand what this means, don't worry! You can leave
    //the code unaltered and your ads will still display properly.
    foregroundColor='';
    backgroundColor='';

    r = new String (Math.random()*1000);
    r = r.substr(0, 5);
    s = new String (String.fromCharCode(60));
    s += "script language='JavaScript' type='text/javascript'";
    s += "src = http://www.projectwonderful.com/gen.php";
    s += "?id=16993&amp;type=4";
    s += "&amp;r=" + r;
    if (document.referrer){
    s += "&amp;referer=" + escape(document.referrer);
    }
    s += "><\/scr";
    s += "ipt>";
    document.write(s);
    // ]]>
    </script>
    <noscript><map name="admap16993" id="admap16993"><area href="http://www.projectwonderful.com/out_nojs.php?r=0&amp;c=0&amp;id=16993&amp;type=4" shape="rect" coords="0,0,125,125" title="" alt="" target="_blank" /><area href="http://www.projectwonderful.com/out_nojs.php?r=1&amp;c=0&amp;id=16993&amp;type=4" shape="rect" coords="0,125,125,250" title="" alt="" target="_blank" /></map>
    <table cellpadding="0" border="0" cellspacing="0" width="125" bgcolor="#ffffff"><tr><td><img src="http://www.projectwonderful.com/nojs.php?id=16993&amp;type=4" width="125" height="250" usemap="#admap16993" border="0" alt="" /></td></tr><tr><td bgcolor="#ffffff" colspan="1"><center><a style="font-size:10px;color:#0000ff;text-decoration:none;line-height:1.2;font-weight:bold;font-family:Tahoma, verdana,arial,helvetica,sans-serif;text-transform: none;letter-spacing:normal;text-shadow:none;white-space:normal;word-spacing:normal;" href="http://www.projectwonderful.com/advertisehere.php?id=16993&amp;type=4" target="_blank">Project Wonderful - Your ad here, right now, for as low as $0.00</a></center></td></tr><tr><td colspan=1 valign="top" width=125 bgcolor="#000000" style="height:3px;font-size:1px;padding:0px;max-height:3px;"></td></tr></table>
    </noscript>
    <!-- End Project Wonderful ad code. -->
     
    elezend, Apr 18, 2008 IP
  2. homemadejam

    homemadejam Well-Known Member

    Messages:
    143
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    145
    #2
    can you just use the center tags before and after all that code?

    Jam
     
    homemadejam, Apr 18, 2008 IP
  3. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #3
    Not probably, as OP is using javascript.write() .
     
    it career, Apr 18, 2008 IP
  4. elezend

    elezend Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I tried and it does not work
     
    elezend, Apr 18, 2008 IP
  5. Bagi Zoltán

    Bagi Zoltán Well-Known Member

    Messages:
    364
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #5
    If the center tag doesn't work (i doupt that it wouldn't if it is used properly) you may set text-align:center style property.
     
    Bagi Zoltán, Apr 18, 2008 IP
  6. elezend

    elezend Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It works! I did not use it properly, lol.

    <center> </center>
     
    elezend, Apr 18, 2008 IP
  7. Providence

    Providence Peon

    Messages:
    568
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yeah funny what the simplest things can answer ;)
     
    Providence, Apr 18, 2008 IP