+ Reply to Thread
Results 1 to 2 of 2

Thread: positioning nested divs

  1. #1

    positioning nested divs

    I have a dynamic size div which is the main div and inside it there should be another div
    that should always be aligned to the bottom right.
    Any idea how can i do that ?

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    35
    You can do that by setting the second div`s position to absolute , to be like that :
    Code:
    .second_div{
      position:absolute; 
      bottom:0; right:0;
      background-color:red;
      height:60px; width:80px; 
     }?
    You can change sizes to whatever you want.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts