Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alignment 1

Status
Not open for further replies.

sxwk12

IS-IT--Management
Oct 11, 2002
46
US
If you take a look at this page that I am doing for my job, you will see at the top everything lines to the exact edge (topmargin=0 leftmargin=0 marginheight=0 marginwidth=0). The problem is the footer. It is moving over about 2 or 3 pixels to the right. First of all, WHY? And secondly, how do I fix it to line all the way over just like the top?

Thank you,
Sidney
 
My bet would be that your image has some white space in front of it so it is actually aligned left but looks like it's not if you were to change you background color, i think you would see this.

You can use a style to position your image closer, but might have to give left and top values negative values.

I would check into the image itself first. "did you just say Minkey?, yes that's what I said."

MrGreed
 
MrGreed,

The image was not the problem. If you go back to the URL, you will see I have changed the background top black and you can still see the gap.
 
Hummm.

That is strange.

well you can position the tag: only other way I see to solve your problem, unless any other viewer out there knows a solution.

you can:

<img align=&quot;left&quot; src=&quot; width=&quot;780&quot; style=&quot;position:absolute;left:0;top:500&quot; height=&quot;50&quot;>

* You'll have to play with the top number to get it exactly where you want it.
&quot;did you just say Minkey?, yes that's what I said.&quot;

MrGreed
 
Thanks MrGreed,

That did it. I just left out the &quot;Top&quot; parameter. Just wanted it to go left.

Looks so much better now.
 
Hi Sidney,

No there is no white space in the image, but:

1) Just delete the part align=&quot;left&quot;

this is OK:

<img no align here !! src=&quot; width=&quot;780&quot; height=&quot;50&quot;>

2)Your image-width is not 780 but it's 781 pixels !!!!

Hope this helps,
Erik <-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
 
after checking the source there doesn't seem to be a problem with the coding in the least! There may have been no problem to begin with....see, your loading an image. The image itself will be the problem here, I am pretty sure. Open up your photoshop or image editor and see how it aligns to the canvas. take out the edges and re-apply it to your web page. The last thing I could reccommend if your still having problems is to edit the picture by taking out the text..but keep the graphic. Use the Z-index to add the text over the image and use your positioning of the text using the x,y axis. Mind that's the long way. Good luck.
 
Boomerang, clever answer...sometimes the simple things are always overlooked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top