Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #481533

    Hello. I am trying to put a few buttons up in my header area. I would like for the buttons to remain flush right (within the boundaries of the width of our web page) when the page is resized (and then eventually have them stack on top of each other, miniaturize, or simply disappear altogether when the page is resized down to the mobile version (whatever solution makes the most sense). As of now, they end up getting mixed in with the logo in our header which looks bad.

    Please advise.

    • This topic was modified 9 years, 4 months ago by ACNLatitudes.
    #482189

    Hey ACNLatitudes!

    use this code to control position of your buttons in header:

    .textwidget {
    margin-right: -100px;
    }
    

    and adjust as needed.

    Best regards,
    Andy

    #482265

    Thanks for the reply. It looks better using your code and also using the following code:

    @media screen and (max-width: 1024px) { #header_main .widget { display: none !important; } }

    On a related note, I noticed that if I make the header “sticky” and “shrinking” that the contents of the header widget don’t shift up when the header shrinks, so they end up overlapping the main menu bar. Is there any CSS code to handle the behavior of the header widget when the header shrinks, such that it does the following:

    1) Have the buttons move up horizontally to match the same vertical height as the logo; and
    2) Have the buttons shrink in size (just like the logo does). I could always create a separate set of buttons that are smaller just for that shrunken view only if there is a way to accomplish what I want to do (e.g., show the big buttons when in regular view and show the smaller buttons when in shrunken view).

    Please advise.

    #483249

    Hi!

    if you want to use sticky header I suggest to use this code:

    .textwidget {
    margin-top: -32px;
    }
    

    Regards,
    Andy

    #484649

    Hi Andy,

    Thanks. That looks great when the header shrinks, but I don’t want for the widget to bee so close to the top menu prior to shrinking (e.g., when the header is displayed in the normal full size state). It looks off balanced, since there is so much white space below the header widget.

    Is there any way for the widget to only move to that higher position (margin-top: -32px) when the header shrinks, but for it to stay centered vertically when the header is in its normal full size state?

    Please advise. Thanks!

    #485113

    Hi!

    not sure what you mean, as there is no shrinking header on your website. However, it would be out of our support scope to handle behavior of your additional buttons when header is shrinking. This would be considered as custom work and you can find someone for this job here: http://kriesi.at/contact/customization

    Regards,
    Andy

    • This reply was modified 9 years, 4 months ago by Andy.
    #501952

    You can close this ticket. Thanks.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Problem with Widget in Header Area’ is closed to new replies.