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 10-31-2007, 09:38 AM   PM User | #1
msg2ajay
New to the CF scene

 
Join Date: Jun 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
msg2ajay is an unknown quantity at this point
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
msg2ajay is offline   Reply With Quote
Old 10-31-2007, 10:17 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,689
Thanks: 158
Thanked 2,184 Times in 2,171 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Have a try with
Code:
<img  src="/images/header.png" width="100%" height="50" style="display:block;">
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft 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 10:30 AM.


Advertisement
Log in to turn off these ads.