Click here to Skip to main content
14,269,316 members
Rate this:
Please Sign up or sign in to vote.
See more:
hi..

I am trying to add two images to my div tag.i want to align one image to top and one to bottom.while adding image image not at left top corner.there is space from left in div.my code is

.aspx
<img src="images/asc.gif" alt="" /><img src="images/desc.gif" alt="" />


css

.myDiv
{
    height:100px;
    width:10px;
    border:1px solid black;
    margin: 0px 0px 0px 0px;
padding: 0px 0px 0px 0px;
}
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You need to use the position attribute. See here how it works: http://www.barelyfitz.com/screencast/html-training/css/positioning/[^]
   
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100