SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Dec 1999
    Location
    Port Jervis, NY, US
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Banners occasionally misalign

    Hi everyone,

    I'm having a problem in that my banners occasionally misalign to the left instead of being centered. I first noticed this today after moving to Tribal Fusion, and possibly also using wrong settings in phpadsnew when I added the account, though I'm not sure what I might have done wrong. There doesn't seem to be a set pattern as to which banners go to the left...I've seen the same banners either center or align left.

    Potluck as to whether or not this will be visible, so here is an image:

    http://www.seriouswheels.com/banner-problem.jpg


    Here is placement code and surrounding:
    Code:
     <title>Bugatti EB 16/4 Veyron Study--Blue--Front--1280x960</title>
    </head>
    <body bgcolor="#FCF8E8" link="#FF0000" vlink="#FF9966" alink="#FF9966" text="#404040"><p align="center">
    <script language='JavaScript' type='text/javascript'>
    <!--
    if (!document.phpAds_used) document.phpAds_used = ',';
    document.write ("<" + "script language='JavaScript' 
    type='text/javascript' src="" );<BR> document.write ("<A 
    href="http://www.seriouswheelsads.com/ads/adjs.php?</DIV><DIV>n=aff3e6f2">
    http://www.seriouswheelsads.com/ads/adjs.php?
    n=aff3e6f2</A>" );<BR> document.write 
    ("&amp;what=zone:7&amp;target=_blank" );<BR> document.write 
    ("&amp;exclude=" + document.phpAds_used);<BR> if
    (document.referer)<BR> document.write ("&amp;referer=" + escape
    (document.referer));<BR> document.write (""><" + "/script>" );
    //-->
    </script><noscript>
    
    <a href="http://www.seriouswheelsads.com/ads/adclick.php?n=aff3e6f2" target='_blank'>
    <img src="http://www.seriouswheelsads.com/ads/adview.php?what=zone:7&amp;n=aff3e6f2" border='0' alt=''>
    </a></noscript>
    
    <p align="center">
    <img border="0" src="images/Bugatti-EB-16-4-Veyron-blue-front-1280x960.jpg" width="1280" height="960"></p>
    Anyone have any idea what I'm doing wrong? Thanks! [img]images/smilies/smile.gif[/img]
    Last edited by jfiliss; Oct 17, 2003 at 01:34.

  2. #2
    SitePoint Addict
    Join Date
    Oct 2003
    Location
    United States
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just surround it with <center> </center> tags.

  3. #3
    SitePoint Zealot
    Join Date
    Dec 1999
    Location
    Port Jervis, NY, US
    Posts
    163
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hehe, that shows how little I know, I never even heard of <center> tags in HTML. Someone suggested that I use <div align="center"> instead of <p align="center"> and that looks like it will do the trick.

    Thank you very much for your suggestion.

  4. #4
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Location
    Mechanicsburg, PA
    Posts
    7,294
    Mentioned
    123 Post(s)
    Tagged
    1 Thread(s)
    use the div align tag. the <center> tag has been depreciated in the newer versions of HTML. Div is the more standard now.
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style
    Learn how to be ready for The Forums' Move to Discourse


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •