Question : Help with  Position :Absolute and Relative?

Hi
I have two images buttons and I need for both of them to have position:relative inside of an area that contain a position:absolute, but it is not working. It works for the firs button but not for the second one
Would you mind to ckeck my code?
Thanks

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
<div class="TopTabs">
                           <div style=" position:absolute;">
                              <div style=" position:relative; top:9px; ">                                  
                                      <img src="images/FirstButton.png" />                                  
                              </div>   
                              <div style=" position:relative; top:9px; left:120px; ">                                  
                                      <img src="images/SecondButton.png" />                                  
                              </div>                          
                           </div>
                      </div>

Css:
.TopTabs
{
	width:780px;	
	height:39px;
	background :url(images/BackgroundTabs.png) no-repeat 0 0;	
	color:White;
	font-family:Arial;
	font-size:16px;
	font-weight:bold;	
}

Answer : Help with  Position :Absolute and Relative?

Change your code to:

<div class="TopTabs">
   <div style=" position:relative;">
      <div style=" position:absolute; top:9px; ">                                  
              <img src="images/FirstButton.png" />                                  
      </div>  
      <div style=" position:absolute; top:9px; left:120px; ">                                  
              <img src="images/SecondButton.png" />                                  
      </div>                          
   </div>
</div>
Random Solutions  
 
programming4us programming4us