Tagged: 

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #776659

    Hi
    I’m trying to add a header image in the middle of the header space between my logo and the menu, and have got somewhere following this

    https://kriesi.at/support/topic/adding-468-x-60-banner-to-header/

    However, I can’t seem to move it to the centre with the css code – I changed the code by replacing the zero’s, but it either sits in the left of the header (over the menu) or on the right (over the logo).

    Any help will be appreciated on that.

    Thanks
    Farzan

    #776778

    Hey farzanahmed,

    you can move it using this code inside Quick CSS field:

    .custom_content {
    left: 170px;
    }

    Adjust as needed.

    Best regards,
    Andy

    #776798

    Thanks Andy

    That helped, but can I make it stay in that position when the screen size changes?

    Maybe its something to do with the ‘absolute’?

    Here’s the css I’ve got in there now

    .custom_content{
    position: absolute;
    top: 0;
    right: 0;
    }

    @media only screen and (max-width: 768px) {
    #header_main { height: 140px; }
    .custom_content { top: 80px; }}

    .custom_content {
    left: 470px;
    }

    Thanks
    Farzan

    #777596

    Any updates?

    #777819

    Hi,

    yeah, you should remove position: absolute; and instead you might want to go for

    position: static;

    or maybe removing it will already work.

    Also you might need a bigger header, as there is not enough space available otherwise:

    @media only screen and (max-width: 768px) {
    #header_main {
    height: 250px;
    }}

    and adjust as needed.

    Best regards,
    Andy

    #778055

    Hi

    That didn’t do anything.

    Could you take a look to see what i’m doing wrong in there please?

    I’ll submit the login credentials in the private content area.

    Thanks
    Farzan

    #778590

    Hi

    Any update? Assuming you’re away for hols?

    #778623

    Hi,

    I checked your website on mobile and it looks better now to me. You might want to move the mobile menu and cart button into another place. Try this for example:

    @media only screen and (max-width: 767px) {
    .container #advanced_menu_toggle, #advanced_menu_hide {
    top: 30px;
    right: -20px;
    }
    .responsive #top .cart_dropdown {
    top: 30px;
    right: 8px;
    }
    }

    Best regards,
    Andy

    #778624

    Hi Andy

    My primary concern at this stage is how the header image looks on a normal screen – it’s sitting behind the logo but I want it between the logo and the menu items on desktops/laptops and hidden on mobiles even.

    Thanks
    Farzan

    #778644

    Hi,

    use this code for desktop:

    .custom_content {
    left: 270px;
    position: relative;
    }

    Best regards,
    Andy

    #778653

    Thanks Andy, that works ok until it’s a smaller screen – it just stays in its position and the menu comes in over the image?

    #778655

    Also, is there a way to make it smaller for the ‘always on top’ header area?

    #778668

    Hi,

    be specific and let me know on which device you see the issues. You can work with media queries to make my code work on different screen sizes: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/

    Best regards,
    Andy

    #778672

    Hi

    Seeing it on my desktop Andy.

    Please see here http://somup.com/cbfbXoVckD

    Thanks
    Farzan

    #779339

    Hi,

    we can’t really help you with building lots of custom code for you for different screen sizes on your desktop. But as we already did we can point you to the right direction. So now use the code we’ve provided to you and wrap different media queries around it. Again here you go with how to use media queries: https://css-tricks.com/snippets/css/media-queries-for-standard-devices/

    Have in mind that responsiveness doesn’t mean that it looks the way you want it to look like on every screen size, but to have the possibility to control it the way you want it to look like. Also it means that it looks good on different devices and not when you shrink your browser screen on one specific device (desktop device).

    Best regards,
    Andy

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.