471,605 Members | 1,382 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

how to align an image in the header of the page

hello friends,
I am trying to put an image in the HEADER of the page. But i am getting slight empty space(white space) around the image nearly a letter gap in left,top. Is there any way to align the image to left and top most corner of the page. my code is ...

Expand|Select|Wrap|Line Numbers
  1. <body leftmargin="0" topmargin="0">
  2. <table cellspacing="0" cellpadding="0" marginwidth="0" marginheight="0" border="0" width="100%" >
  3. <tr>
  4.     <td width="100%" height="50" valign="middle" background=""> 
  5.     <img  src="/images/header.png" width="100%" height="50">
  6.     </td>
  7. </tr>
  8. </table>
  9. </body>
  10.  
Oct 31 '07 #1
1 1418
eWish
971 Expert 512MB
You can set your image for the header to be the background image. Then use an "Inline Style" to place the image in the left top corner.
Expand|Select|Wrap|Line Numbers
  1. <td width="100%" background="some_image.jpg" style="background-position: left top; background-repeat: no-repeat;"></td>
Nov 1 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Robert Nicholson | last post: by
6 posts views Thread by Greg Schmidt | last post: by
4 posts views Thread by pieter blomme | last post: by
2 posts views Thread by Eric Lindsay | last post: by
roula
19 posts views Thread by roula | last post: by
2 posts views Thread by vinit_mahajan99 | last post: by
2 posts views Thread by yangtono | last post: by
40 posts views Thread by maya | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.