Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Div Position Problem

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #239151
    himanshu_chawla
    Participant

    i am newbie to css and trying to make one form in which i have problems of positiong the div . Whenever i try to position the products div towards right the text boxes becomes small in size .

    i want products div and customerinput to be adjacent and opposite to each other and same as with other to two divs left.

    I have already tried position:absolute and then changing the top and right values .

    I want first two div adjacent and then next two adjacent and in last the submit button .

    Can Anyone help me out to solve the problem ? Please Also explain me how can i do in future so that it brush up my skills .

    Thanks for the help in advance and help is appreciated.

    CodePen Link- http://codepen.io/anon/pen/wGzpwx

    #239152
    Chris Coyier
    Keymaster

    Some classic floating will probably help you:

    http://codepen.io/chriscoyier/pen/vGXpGW?editors=1100

    .customerinput {
      width: 48%;
      float: left;
    }
    .products{
      width: 48%;
      float: right;
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.