Forums

Div not floating next to, instead goes underneath (6 posts)

  1. LEVI44
    Member
    Posted 1 year ago #

    Hi there

    I have set up div which are supposed to contain one tshirt and the cart for each one. However the float doesnt seem to work, they hang in a line. Anyone know where i am going wrong?

    http://hairyhand.co.uk/wp/shop/t-shirts/

  2. vtxyzzy
    Member
    Posted 1 year ago #

    In your style.css, add 'float: left;' to .leftproduct, and add a similar definition for .rightproduct.

    .leftproduct {
       float: left;
    }
    .rightproduct {
       float: left;
    }
  3. alchymyth
    The Sweeper
    Posted 1 year ago #

    as far as i can see, there is no float:left; or float:right; on the styles for .leftproduct or .rightproduct

    http://www.w3schools.com/css/css_positioning.asp

  4. riversatile
    Member
    Posted 1 year ago #

    You should redo everything from 0 and think about organizing your CSS class/id.

  5. LEVI44
    Member
    Posted 1 year ago #

    Thanks so much vtxyzzy, it worked! really appreciate everyones help :))

  6. vtxyzzy
    Member
    Posted 1 year ago #

    Glad it worked. Now, please use the dropdown at top right to mark this topic 'Resolved'.

Topic Closed

This topic has been closed to new replies.

About this Topic