Results 1 to 3 of 3

Thread: getting problem in layout

  1. #1
    Join Date
    Sep 2009
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default getting problem in layout

    Code:
    div.mainbox
    {
    position:fixed;
    background-color:#ffffff;
    border-style:solid;
    border-width:1px;
    width:60%;
    left:20%;
    top:20%;
    }
    
    div.one
    {
    background-color:#baecab;
    width:75.4%;
    float:left;
    }
    div.headingone
    
    {
    
    width:75.4%;
    float:left;
    background-color:bababa;
    
    }
    
    div.headingtwo
    {
    
    
    
    float:right;
    background-color:#bababa;
    widhth:24%;
    }
    
    div.second
    {
    background-color:#baecab;
    position:relative;
    float:right;
    right:10%;
    
    }
    
    
    
    
    
    
    </style>
    
    
    
    
    
    <div class="mainbox">
    <div class="headingone"> <h1>category</h1></div>
    
    <div class="headingtwo"><h1>total tutorials</h1></div>
    
    
    
    
    
    
    
    <div class="one"><a href=#>hfhfvhfvhefvjefvh ghghgfhghnb hdf   kdofh  dhfi  ioye y    uidqwdwdy  d iod ddfh f    hfif hf f ffhfkhfio  sf  e sifhf  wwifhufh gufg  guff   fufh   </a></div>
    
    <div class="second">mgkgtuuuunyu</div>
    
    
    
    
    </div>
    in the above code i have problem that the second column is not uniform with first column.means the second cloumn height is not following the first column height and therfore color in the second column is not fillin exactly the height it filled in first column...how to acheieve this..infact running this code you automatically understand whrere this table like div is not uniform..how to make the second column follow the height of first column so that background color in second column fill exactly the same height it filled in first column

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Not sure what you mean but maybe the headings not lining up?

    Code:
    .headingtwo {
    background-color:#BABABA;
    float:left;
    width:24.6%;
    }

  3. #3
    Join Date
    Sep 2009
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i mean that second column background color doesnt extend to the same height as it coverd the first coloumn div..leave the heading..the one with green color

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
  •