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
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 ...


    Code:
    <body leftmargin="0" topmargin="0">
    <table cellspacing="0" cellpadding="0" marginwidth="0" marginheight="0" border="0" width="100%" >
    <tr>
        <td width="100%" height="50" valign="middle" background=""> 
        <img  src="/images/header.png" width="100%" height="50">
        </td>
    </tr>
    </table>
    </body>
    thx in adv,
    Ajay

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Have a try with
    Code:
    <img  src="/images/header.png" width="100%" height="50" style="display:block;">
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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