Results 1 to 5 of 5

Thread: Banner help...

  1. #1
    Join Date
    Jul 2004
    Posts
    2,395
    Tokens
    0

    Latest Awards:

    Default Banner help...

    How can I get my website so that there is no space between the top of my page and my banner?

    Rep added if your solution works


    Give back our edit button!

    My 1337th post.


  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Ummm that depends how your websites done, could be the removal or a <br> or setting padding to 0 on tables?

    What your site, and i can proably make a better suggestion?

  3. #3
    Join Date
    Jul 2004
    Posts
    2,395
    Tokens
    0

    Latest Awards:

    Default

    I haven't actually got it on the internet yet, but this is the code I've used so far:

    <html>
    <body bgcolor="#B3AD94"><div align="center">
    <img valign="top" src="jadedempathy.jpg">
    <table bgcolor="#3B5443" cellpadding="0" cellspacing="0" width="766" valign="top">
    <tr height="500">
    </html>

    The banner jadedempathy.jpg just wont touch the top of the browser window, and I've tried using valign but it hasn't worked


    Give back our edit button!

    My 1337th post.


  4. #4
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Ok after playing around with the css a bit this should both center and put the image at the abosulte top.
    HTML Code:
    
    <html>
    
    <style>
    .top {
    	top: 0px;
    	position: absolute;
    	 margin-left: auto; 
    	 margin-right: auto;
    	width: 100%;
    	
    }
    </style>
    
    <body bgcolor="#B3AD94"><div align="center">
    
    
    <div class="top" ><img valign="top" src="jadedempathy.jpg"></div>
    
    
    <table bgcolor="#3B5443" cellpadding="0" cellspacing="0" width="766" valign="top">
    <tr height="500">
    </html>

  5. #5
    Join Date
    Jul 2004
    Posts
    2,395
    Tokens
    0

    Latest Awards:

    Default

    Aieeeeeeeeeeeeeee.... Thank you

    +Rep


    Give back our edit button!

    My 1337th post.


Posting Permissions

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