Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #582324

    i want a boxed layout with a background image and a shrinking header (see private content) but on top there is a margin.
    When scrolling down i want that the page (content etc.) is not visible in that little gap. Is that possible?

    Or if not is it possible that header scrolls to the top and is on reaching the top fixed and starts than to shrink?
    Like a fixed sub menu ( it scrolls to the header and when reaching the header it is fixed)

    #582429

    Hey Guenter!

    Please add following code to Quick CSS

    #header.header-scrolled {
        top: 0;
    }

    Best regards,
    Yigit

    #582434

    yes i thought of that too – but i want a margin (or padding – concerning to what the rule goes (html, body or wrap_all) on top.
    if this marging could not be seen all the time it would be ok for me if the header scrolls to top and begins then to shrink and is fixed on top.
    But to look nice it has to scroll first than on top it starts to shrink and gets the fixed positioning.

    now the header and main and all the rest is seen when it passes the header which is sticky with that distance above.

    #582571

    ok i got it (with some cheating)

    i insertet a div via child-theme functions.php:

    function custom_func() {
    ?>
    <div class="spezial"><span>Content</span></div>
    <?php
    }
    add_action('ava_main_header' , 'custom_func');

    set the span to visibility hidden.

    this special container gets now a background with the graphic of background body image. etc pp.

    looks nice

    #583111

    Hi,

    Great, glad you found a fix and thanks for sharing :-)

    Regards,
    Rikard

    #583146

    yes can be closed – customer decided to have a stretched layout now. But definitly i will use it in future projects

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘boxed layout and margin on top’ is closed to new replies.