Forums

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

Home Forums CSS Floats

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #155917
    StevenB
    Participant

    Hi , am trying to float some items I have made div and called it header, there are three items the: the logo which is on the left its not floated, an unordered list with two list items which is floated to the right and the third item is a small logo floated to the right also but I want it to appear below the list items this is what my code looks like so far.

    this the html **

    • Facebook
    • GPS Logistics

    **

    my css _#garminlogo{ width: 80px; }

    .list { list-style: none; margin: 0; padding: 0; float: right; }

    .list li { display: inline; margin-left: 10px;

    }

    garminlogo {

    float: right;
    

    }_

    #155919
    chrisburton
    Participant

    Please make a pen here: http://codepen.io/pen

    #155930
    StevenB
    Participant

    Hi, my code starts from “#garminlogo” and its an id to an image, sorry the site is not yet hosted.

    #155932
    wolfcry911
    Participant

    add clear: right; to the second logo

    #155933
    StevenB
    Participant

    Thanks for your response, am making progress now, I cleared right but there was no effect so I also floated right and it appears to be working.

    #155939
    wolfcry911
    Participant

    you stated it was floating…

    #155942
    StevenB
    Participant

    yes the list item and small logo are floating

    #155961
    Merri
    Participant

    Due to lack of information I sincerely apologize and provide an answer without floats: http://codepen.io/Merri/pen/EqpLB

    Deal with it.

    #155963
    chrisburton
    Participant

    Out of curiosity, why would you want the logo twice in the header?

    #155996
    StevenB
    Participant
Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘CSS’ is closed to new topics and replies.