473,372 Members | 1,027 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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 1499
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

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

Similar topics

7
by: Robert Nicholson | last post by:
So I've got one page where I have an image inside a DIV with text-align: center and the image is correctly centered in that block. Making me think that text-align will center the contents of a...
6
by: Greg Schmidt | last post by:
I'm wrestling with how to align images with text. The particular effect I'm trying to achieve at the moment is to place a heading to the right of an image, such that the image and text are...
4
by: pieter blomme | last post by:
I'm making a site about Java(programming language). The problem is that I worked with layers(div). I wanted to make a title in 1 of these layers and ceter this vertically. But this doesn't look...
5
by: Paul Tomlinson | last post by:
Tabpages and Imagelists - I want to align the image to the left so I can display some text... All, I have a number of tabpages and on each tab page I currently have an image and some text, now...
2
by: Eric Lindsay | last post by:
If I want to have the middle of an image vertically aligned with the middle of a heading (or several lines of heading), is there some particular way people would recommend? vertical-align: center...
19
roula
by: roula | last post by:
I HATE DIVS AND DIFFERENT BROWSERS!!! i spent the whole day and night searching for a way to center align stupid divs, the problem is that the code is so sensitive, i lost my mind trying to make them...
2
by: vinit_mahajan99 | last post by:
Hello all, I want to align the images and controls at the bottom of a master page or at the right side. I tried to do it with the table but I was not successful. The image should be seen at...
2
by: yangtono | last post by:
Hi, I am creating a table to list some data. The table is using a sorting and highlight function that I found from the net. I can't attach image here, basically html will wrap the heading,...
40
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.