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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aligning images...

Status
Not open for further replies.

801119

Programmer
Apr 10, 2000
311
SE
As you can se on the sample tree view here ( all files are aligned perfectly and there is no "space" between the images below..

However, on my own experimental tree view there's a small "space" between the upper and lower image :s

My acctual question is.. how do you put 2 images on top of eachother witout a small blank between them?

My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
Well to me it looks like there is a white space inbetween the images but in order to have no white spaces here is what ya do(assuming you have a white space that you wanna get rid of...which you shouldnt).You can do 1 of two things. the first is create a table with your images in them. Then in the table tag (<table>) put the cell padding to 0 the border to 0 and the cell spacing to 0. if that doesnt work but it probably will you can use css. Which might be a little harder to graps since you've only learned HTML but here ya go...
put this in your <head> tags...it will do this to all img tags. to only do it to certain ones post back here an ill tell ya.
<style>
img{padding:0px;
border-spacing: 0;}
</style>
I think that will work please post back here if it doesnt
Jammer1221
 
You will need to tell us how you did it in your example. There are many ways to do that but we need to know which approach you are using.
 
Yeah, aparantly they were using tables. However, it had no effect what so ever. I franticly searched through the sample code of page in previous post for a clue. Until I found align='absbottom' added to the images .. which did the trick. I didn't even know you could add something like that to images..

My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top