Div position

Thread Solved

Join Date: Jul 2008
Posts: 2
Reputation: mohammad_molana is an unknown quantity at this point 
Solved Threads: 0
mohammad_molana mohammad_molana is offline Offline
Newbie Poster

Div position

 
0
  #1
Sep 11th, 2008
hi all.

i have a problem in div usage.
my divs position image is in attachment.

and this is my html tags:
HTML and CSS Syntax (Toggle Plain Text)
  1. <div style="width:430px; height:100%">
  2. <div style="width:100px; height:100px; float:right; border:1px solid #333333">&nbsp; </div>
  3. <div style="width:200px; float:right; border:1px solid #333333; margin-right:10px; background-color:#FF0000">&nbsp; </div>
  4. <div style="width:100px; height:100px; float:right; border:1px solid #333333;margin-right:10px;">&nbsp; </div>
  5. <br />
  6. <div style="width:100px; height:100px; float:right; border:1px solid #333333; margin-top:10px">&nbsp; </div>
  7. <div style="width:200px; float:right; border:1px solid #333333; margin-right:10px; margin-top:10px; background-color:#FFFF00">&nbsp; </div>
  8. <div style="width:100px; height:100px; float:right; border:1px solid #333333;margin-right:10px; margin-top:10px">&nbsp; </div>
  9. <br />
  10. </div>

now i want that yellow div go up and grip to red div.

how i do this????
thanks for help.
Attached Thumbnails
11.gif  
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 302
Reputation: sreein1986 is an unknown quantity at this point 
Solved Threads: 33
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz

Re: Div position

 
0
  #2
Sep 12th, 2008
Hey mohammad_molana
please check this code and check it
HTML and CSS Syntax (Toggle Plain Text)
  1. <div style="width:430px; height:100%;">
  2. <div style="width:100px; height:100px; float:right; border:1px solid #333333;">&nbsp; </div>
  3. <div style="width:200px; float:right; border:1px solid #333333; margin-right:10px; background-color:#FF0000;">&nbsp; </div>
  4. <div style="width:100px; height:100px; float:right; border:1px solid #333333;margin-right:10px;">&nbsp; </div>
  5. <br />
  6. <div style="width:100px; float:right; border:1px solid #333333; margin-right:10px; left:337px; top:128px; z-index:1; position:absolute; height: 100px;">&nbsp;</div>
  7. <div style="width:200px; float:right; border:1px solid #333333; margin-right:10px; background-color:#FFFF00; left:126px; top:40px; z-index:1; position:absolute; height: 18px;">&nbsp;</div>
  8. <div style="width:100px; float:right; border:1px solid #333333; margin-right:10px; left:12px; top:126px; z-index:1; position:absolute; height: 100px;">&nbsp; </div>
  9. <br />
  10. </div>
Thanx,
Shiriyal

http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2
Reputation: mohammad_molana is an unknown quantity at this point 
Solved Threads: 0
mohammad_molana mohammad_molana is offline Offline
Newbie Poster

Re: Div position

 
0
  #3
Sep 12th, 2008
thanks you dear sreein1986
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC