Forums

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

Home Forums CSS Need help positioning footer with floats @media queries

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #45595
    expo703
    Participant

    This is the site : http://www.kaehler1920.com

    #138645
    Paulie_D
    Member

    Instead of using floats, try inline-block and text-align:center.

    http://joshnh.com/2012/02/07/why-you-should-use-inline-block-when-positioning-elements/

    #139058
    expo703
    Participant

    Thank you Paulie! that worked with the top nav…I’m having issues with the footer though.. I’m going to want to add more stuff to it in the future so I think I would like to have it in columns like : Company Info : with about us links and a few more ul links.. Social Media: links… Customer Service: links.. and little text right up.. whats the best way to tackeling that so it stills doesn’t look like crap when the browser is re-sized?

    #139060
    Paulie_D
    Member

    If they are separate lists then do it that way.

    Unless you are using % based widths though you will always run into problems.

    Assuming that you are using media queries you should be fine. Remember thhe **vast** majority of viewers won’t be re-sizing, it’s only us developers who do that with any regularity.

    #139062
    expo703
    Participant

    .

    #139067
    Paulie_D
    Member

    That will be the divs.

    I would lay it out something like this…you’d just have to change it for the 960 classes etc.

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

    #139253
    expo703
    Participant

    Damn – almost got it! just need to position it correctly..they are just vertical and want to have them next to each other like you have it above..I have all the links and ul/li items setup correctly and its displaying under the div tag f-gray class grid3 for width .f-gray-links

    kaehler1920.com

    #139254
    lschoen114
    Participant

    Create a class for your <"ul"> such as “navigation”, then set a float to the class.

    ul.navigation{
    width:33%;
    float:left;
    }

    Then just start a new ul for each of the three sections.

    Then, when you use @media, all you need to do is change the width of the footer container (such as 95%), and the lists will update automatically.

    #139368
    expo703
    Participant

    Thanks for the reply.. I have a ul class already

    #139392
    expo703
    Participant

    .

    #139063
    Paulie_D
    Member

    Please use codepen…we need to see it working (or not).

    #139399
    expo703
    Participant

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

    but it doesn’t look like that live.. i’m not sure why

    #139393
    Paulie_D
    Member

    Probably because you haven’t included enough CSS.

    #139400
    expo703
    Participant
    #139403
    JohnMac4
    Member

    Why don’t you just create a CSS class that encapsulates the unordered list. You can then apply the float, width, and inline-block properties to that.

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