Forums

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

Home Forums CSS how can i responsive this menu?

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #164618
    ata8
    Participant

    how can i responsive this menu?
    actually how can i change the width of menu in responsive mode?
    here is the code?

    http://cdpn.io/prkDd

    #164620
    Paulie_D
    Member

    What have you tried so far?

    If you have a specific problem we can help but we’re not code writing service.

    #164721
    ata8
    Participant

    yeah your right.
    here is the explanation of my problem.
    this menu has a special structure as you see.
    when i want to aligned to center. it makes me to set the fixed width to “.aw-top-bar ” and “#aw-top-menu”.
    and i dont know how to responsive this menu only with css.

    #164745
    Paulie_D
    Member

    For responsiveness you should be declaring widths in % values rather than px.

    Then you need to look into media queries.

    #164748
    Robert
    Participant

    I really agree with Paulie_D, If you don’t have an specified width to center your menu you can just declare your list items as display:inline-block instead of float:left and jut set the text-align property to center. It will work for you.

    #164750
    ata8
    Participant

    but i want to align to center the bigger div.
    i mean “#aw-top-menu” aligned to center and the “nav” element floated to right

    #164763
    Robert
    Participant

    I think then you have to declaring widths in % values rather than px according to Paulie_D.

    #164833
    GroovyMotion
    Participant

    What I do is set a max-width in px for my wrap and then all the rest is in % all the way down to 400px wide screens.

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