Forums

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

Home Forums Other html default nav with logo

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #283886
    sodikz125
    Participant

    Hey I want to make a basic HTML and CSS navbar which is basic logo on the left with 100px padding on the left and the menu on the right with 100px padding right without using bootstrap or any other helper that is responsive does anybody have any snippets i can look at ?

    #283887
    Paulie_D
    Member

    We’d suggest that you try and create this yourself (in Codepen.io) perhaps.

    We’re happy to help put with your code if you run into problems but this doesn’t sound like a major issue.

    Why 100px padding? It seems oddly specific. Generally, responsiveness should require non-fixed values for widths etc.

    #283888
    sodikz125
    Participant

    Ok i will attempt it first .sorry for the bad image but if you see the image link that is why the padding is there https://imgur.com/a/Ivi8XN6

    try look at my code pen here https://codepen.io/anon/pen/zbvdbg

    #283889
    Paulie_D
    Member

    You don’t need the padding…you just need a centered container.

    #283893
    sodikz125
    Participant

    ok but not using bootstrap and it has to be 100px gap from left of screen and 100px from right of screen?

    #283894
    Paulie_D
    Member

    So the width of the container is width:calc(100vw - 200px) and margin:auto.

    Simple enough…nothing to do with Bootstrap

    #283896
    sodikz125
    Participant

    ok so i made a container class with those properties and the nav is still on the very left and right of the screen?

    #283897
    Paulie_D
    Member

    A basic Codepen demo is required then….like this

    https://codepen.io/Paulie-D/pen/moeQxY

    There seems to be an issue with your current pen as it constantly reloads when i try to view it.

    #283913
    sodikz125
    Participant

    right ok after reading the css i understand what you have done. when shrinking it starts cutting the right side of the image can that be responsive

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