Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    positioning an image at the VERY top of the page

    Hello All,

    I'm new here, and quite new to coding, so please bare with me.

    I've had a site developed for me, and I'm tryiong to make modifications on my own. I've got a bit of a handle on things, but I'm unable to get my top image to line up flush with the top of the screen.

    Any suggestions would be greatly appreciated.

    Applicable code is as follows;

    Code:
    body, html{
        background: url(../images/background.gif) repeat;
    	border-spacing:0;
    	vertical-align: top;
    	margin: 0;
    	padding-top: 0;
        border: 0;
        outline: 0;
        vertical-align: top;
    	position: relative;
    	top: 0;
    	
    }

    Code:
    </script>
    </head>
    <body onload="MM_preloadImages('images/bttn_hover.gif','images/bttn-hover.jpg')" style="vertical-align:top" topmargin="0px"   >
    
    <form action="https://www.fooshenergytrial.com/orderpage.php" method="post" name="frmSignUp" id="frmSignUp">
    
    
    <table align="center" style="vertical-align:top" cellpadding="0" cellspacing="0" background="#ffffff"><td><table  align="center" style="vertical-align:top" width="972" cellspacing="0" cellpadding="0">
    
      <tr>
    
        <td scope="row" valign="top"><img src="images/topBanner.gif" /></td>
    
      </tr>
      
      <tr>
      
      <td scope="row"><img src="images/header.gif" /></td>
      
      </tr>
    </table>

    page can be seen at www.fooshenergytrial.com/test6

    Thanks,

    Andrew

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello adweaver,
    You have a break inserted at the top of your code. Remove this bit highlighted in red -
    Code:
    <form action="https://www.fooshenergytrial.com/orderpage.php" method="post" name="frmSignUp" id="frmSignUp">
    
    
    <br> <table style="vertical-align: top;" align="center" background="#ffffff" cellpadding="0" cellspacing="0"><tbody><tr><td><table style="vertical-align: top;" width="972" align="center" cellpadding="0" cellspacing="0">
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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