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

Home Forums CSS float problem

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #180389

    No matter what I do I can only get my objects in the right hand side of page, nothing floats to the right……….please someone tell me what I am doing wrong, after 3 weeks of trying different tutorials on line, I am still having this problem and I am unable to figure it out…..


    First, we’d need to see a codepen or other demo of your actual problem in order to give any useful input.

    Second, floats might not be what you need. Floats are for “floating” layout —i.e., where one item literally floats in other content, which wraps around it. Most use of floats in css are for grid layout: it’s not the intended use, and that’s why it’s so difficult to get it to work as desired. inline-block is often a better solution and you might be interested in checking it out.


    this is just a mock up……….I want the <aside> to go to the right side of page………..

            thank you.........

    You left off the colon after the word float. Should go

    float: right;

    There are other problems, but that will get you started.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.