Viewing 15 posts - 1 through 15 (of 17 total)
  • Question

    #38303
    @joymoleta

    Hello, I am using this for my page to create a boxed in layout:

    body{margin: 0 auto;
    max-width: 1140px;}

    What do I use for the nav bar to be of the same width? It’s being stretched across the screen. Thank you.

    Answers

    #38415

    Alyssa
    Participant
    @alyssa-buddyboss

    @joymolenta try this instead:

    body,header{margin: 0 auto;
    max-width: 1140px;}
    #39039
    @style960

    @tjchester This is really cool. What would we need to do to apply a background image afterwards? Does this need a new div adding to header.php? I’d have a look myself but I’m at work right now. Thanks.

    #39065

    Alyssa
    Participant
    @alyssa-buddyboss

    @style960 perhaps html{background:[code here];}
    NOT TESTED

    I’m not even sure if you can apply background image to html tag. I don’t see why not.

    #39077
    @style960

    @tjchester I’ll have a look, thanks.

    #39101

    Alyssa
    Participant
    @alyssa-buddyboss

    @style960 looks like it may not work with IE7/8 but those aren’t support any longer according to post here: http://stackoverflow.com/questions/4741351/how-to-consistently-set-background-image-on-html-element

    #39132
    @style960

    @tjchester This works but the scroll-area that sits behind the primary navigation would need to be fixed as well since it scrolls with the page to reveal the background image.

    #39143

    Alyssa
    Participant
    @alyssa-buddyboss

    Were you able to figure this out?

    #39157
    @style960

    @tjchester Yeah, all sorted now. Thanks.

    #39203

    Alyssa
    Participant
    @alyssa-buddyboss

    Great!

    #43632
    @surfbuddy

    @tjchester Hi, I would like to set the desktop theme -always, and keep the scroll-area fixed at all times. It can switch to mobile theme at 320px. How can I achieve this while also keeping the buddypress profile menu nav items to always display as mobile(as icons)? Thanks

    #43686

    Alyssa
    Participant
    @alyssa-buddyboss

    @surfied I’m afraid the theme is not able to do this. With being a highly specific application you would need custom work to complete this task.

    #43693
    @surfbuddy

    @tjchester. I see. In desktop theme, the scroll-area(buddy panel) stays fixed for some pages like activity, but scrolls down for the member profile page. How can I keep the scroll-area fixed in the member profile page as well?

    #43752

    Alyssa
    Participant
    @alyssa-buddyboss

    @surfied can you show me some examples of what you mean?

    #43884
    @surfbuddy

    @tjchester I see you updated your demo site and removed the buddypanel scroll-area fixed in non buddypress profile pages. You should have fixed it the other way around. It doesn’t make sense to not have the buddypanel fixed, as it serves as a nav menu just like the fixed header. When the user scrolls down and the buddypanel menu disappears, it becomes a blank waste of space and also disregards its purpose of a nav menu. Would love to see a fix for this.

Viewing 15 posts - 1 through 15 (of 17 total)
  • The question ‘Nav bar width’ is closed to new replies.