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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2010
    Posts
    153
    Thanks
    53
    Thanked 0 Times in 0 Posts

    Sun in corner of page problem

    Hello. I'm working on a page with the sun on the top right of the page. But I'm not getting it to be exactly aligned with the sides of the page - there is a gap between the image and the sides. http://a.imagehost.org/0869/page.jpg

    Here is the code:

    Code:
    <table width='100%' border='0'>
    <tr>
    <td width="100px">
    <img src="images/logo.png" width="100px"/>
    </td>
    <td align='right' valign='top'>
    <img src='images/sun.gif'/>
    </td>
    </tr>
    </table>
    How can I fix this?

    Thanks for your time!

  • #2
    New Coder
    Join Date
    Aug 2010
    Location
    Hamilton, New Zealand
    Posts
    88
    Thanks
    5
    Thanked 4 Times in 4 Posts
    can you post a link to your actual page?

  • #3
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Tables should not be used to position images.
    Use CSS as here.



    Frank
    Last edited by effpeetee; 08-28-2010 at 01:56 PM.
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Posting Permissions

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