help with alignment for header banners

Discussion in 'HTML & Website Design' started by RedLightDistrict, Jun 14, 2008.

  1. #1
    i only know very basic things when comes to coding

    so i am wandering whats the correct way to get my header banner rotator thats already at the top, get it positioned on the left, and then i want to put another banner on the right of it

    you can look at my site in my signature to view it now. the banner rotator is centered right now

    here is the part i need help with

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr><br>
    <td align="center"><? echo $pagebanner648; ?><br><br><br>
    </tr>
    <tr>
    </td><td align="center"><img src='rld-test.png'></td>
    </tr>
    </table>


    i imagine i would change the "align" to left, then how do i get this code here to fit in on the right?

    <script language="javascript">
    AD_SPOT_ID = 148;
    PUBLISHER_ID = 157;
    WIDTH = 468;
    HEIGHT = 60;
    </script>
    <script src="http://www.textadmarket.com/show_ads.js" type="text/javascript">
    </script>

    thanks and rep added to anyone who could enlighten me LOL
     
    RedLightDistrict, Jun 14, 2008 IP
  2. 50plus

    50plus Guest

    Messages:
    234
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td><? echo $pagebanner648; ?></td>
    <td>
    <script language="javascript">
    AD_SPOT_ID = 148;
    PUBLISHER_ID = 157;
    WIDTH = 468;
    HEIGHT = 60;
    </script>
    <script src="http://www.textadmarket.com/show_ads.js" type="text/javascript">
    </script>
    </td>
    </tr>
    <tr>
    <td align="center" colspan="2"><img src='rld-test.png'></td>
    </tr>
    </table>

    No need to specify align=left, that's the default for a table cell.
    Also be careful that you close your tags <tr></tr> and <td></td>, you missed some ;)
     
    50plus, Jun 14, 2008 IP
  3. blktallos

    blktallos Active Member

    Messages:
    314
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #3
    and using Old tables are Not the correct way of developing
    websites anymore.You can align you're content using Divs also :)
     
    blktallos, Jun 14, 2008 IP
  4. RedLightDistrict

    RedLightDistrict Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ok thank you rep added:)
     
    RedLightDistrict, Jun 14, 2008 IP
  5. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Actually CSS should be used to align content - whether it's a DIV, P, or other element. HTML is only used to mark up the structure of a Web page, not define its appearance.
     
    Dan Schulz, Jun 14, 2008 IP
  6. RedLightDistrict

    RedLightDistrict Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ok one problem now, you got rid of the spaces i needed between the banners and my logo header and i cant find the right place to put the "<br>" to space them LOL

    thankz people
     
    RedLightDistrict, Jun 14, 2008 IP
  7. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Use CSS to add some padding to the DIV.

    
    #header {
    	margin: 0;
    	padding: 10px 0; /* ten pixels of top and bottom padding, no left or right padding applied */
    }
    
    Code (markup):
    This code can go inside your head section via the <style type="text/css"></style> tags, or linked to the Web page via an external stylesheet.
     
    Dan Schulz, Jun 14, 2008 IP
  8. RedLightDistrict

    RedLightDistrict Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8


    hmmm... i have no idea what this means LOL , but i have settled the spacing issue, now i notice that the 2 banners are not quite centered with the site

    as you will see theres a bit more space at the end of the right side banner,...so i need to equal that out

    with that code up there you mentioned did you mean go place that in the layout.css file?...
     
    RedLightDistrict, Jun 14, 2008 IP
  9. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #9
    That would work, yes. You can modify the values as needed.
     
    Dan Schulz, Jun 14, 2008 IP
    RedLightDistrict likes this.
  10. RedLightDistrict

    RedLightDistrict Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10


    thankz rep added
     
    RedLightDistrict, Jun 14, 2008 IP