Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-27-2010, 09:17 PM   PM User | #1
wincode
Regular Coder

 
Join Date: Jan 2010
Posts: 153
Thanks: 53
Thanked 0 Times in 0 Posts
wincode is an unknown quantity at this point
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!
wincode is offline   Reply With Quote
Old 08-27-2010, 11:16 PM   PM User | #2
dpDesignz
New Coder

 
Join Date: Aug 2010
Location: Hamilton, New Zealand
Posts: 88
Thanks: 5
Thanked 4 Times in 4 Posts
dpDesignz is an unknown quantity at this point
can you post a link to your actual page?
__________________
dpDesignz is offline   Reply With Quote
Old 08-28-2010, 12:52 PM   PM User | #3
effpeetee
Senior Coder

 
effpeetee's Avatar
 
Join Date: Feb 2007
Location: Clapham Junction - London SW
Posts: 4,884
Thanks: 228
Thanked 204 Times in 203 Posts
effpeetee is an unknown quantity at this point
Tables should not be used to position images.
Use CSS as here.



Frank
__________________
* Sources (updated: 21.11.2012.
Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

Last edited by effpeetee; 08-28-2010 at 12:56 PM..
effpeetee is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:59 AM.


Advertisement
Log in to turn off these ads.