Grow your CSS skills. Land your dream job.

Wont float.. and i thought I had this ;(

  • # March 4, 2013 at 1:55 pm

    I thought I had floating down, it one day hit me and thought oh great and right now I’m doing something that was supposed to take 10 minutes to finish and the simplest thing is not working…

    http://codepen.io/anon/pen/taGcB

    i need 1sthalf and 2ndhalf to be side by side within the slider div…

    any thoughts, what am i missing?

    # March 4, 2013 at 2:02 pm

    You have to float both sides…

    Oh and you can’t start classes with a number (AFAIK).

    http://codepen.io/Paulie-D/pen/vjIKd

    # March 4, 2013 at 2:04 pm

    ugh redonkulous!

    Thank you Paulie was not aware of the no number thingy, i tried floating both didnt work, but that must be where the Numbering came in.

    Thanks again!

    # March 4, 2013 at 2:07 pm

    I did have to re-input the width of the wraping div as it didn’t seem to take effect.

    Perhaps there was a typo?

    Yeah…there it is…”**with:960px”**.

    # March 4, 2013 at 2:41 pm

    you don’t _need_ to float the second, but if you don’t you can’t restrict it’s width to that of the first (unless you give it a left margin) and expect it to be next to the float.

    # March 4, 2013 at 3:24 pm

    >you don’t need to float the second

    True…it’s just automatic with me.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".