Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #989374
    Simon T
    Participant

    Hi Guys,

    Can someone please tell me why the navbar and footer in the navbar and footer on snaposweb.com.au are blank?
    They are meant to be a gradient. Will post login details below:

    #989375
    Simon T
    Participant
    This reply has been marked as private.
    #989391
    Christopher
    Moderator

    Hi there,

    Please see the attachment, the gradient background displays fine.

    Hope it helps.

    #989722
    Simon T
    Participant

    Hi,

    It displays fine on chrome and on Safari, but not on firefox or IE.

    #989899
    Joao
    Moderator

    Hi Simon

    Gradient color are not interpreted the same way for all browsers, so in order that it works you need to add a bit more code than what you are using right now.

    Please use this code instead inside the header and footer brackets and adjust the color according to your wishes.

    
    background: #999; /* for non-css3 browsers */
    
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); /* for IE */
    background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)); /* for webkit browsers */
    background: -moz-linear-gradient(top,  #ccc,  #000); /* for firefox 3.6+ */
    

    This way you will be sure your background colors will work on every browser.

    Hope that helps.

    Joao

    #992875
    Simon T
    Participant

    That worked for the header, but the footer is still white. This is what I have under CSS:

    footer.x-colophon {
    background: #999; /* for non-css3 browsers */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#4878af’, endColorstr=’#0f0f47′); /* for IE */
    background: -webkit-gradient(linear, left top, left bottom, from(#4878af), to(#0f0f47)); /* for webkit browsers */
    background: -moz-linear-gradient(top, #4878af, #0f0f47); /* for firefox 3.6+ */
    }

    #992914
    John Ezra
    Member

    Hi there,

    Thanks for updating the thread! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.

    footer.x-colophon.bottom {
        background: #999; /* for non-css3 browsers */
    
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); /* for IE */
    background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)); /* for webkit browsers */
    background: -moz-linear-gradient(top,  #ccc,  #000); /* for firefox 3.6+ */
    
    }

    Hope this helps – thanks!

    #992949
    Simon T
    Participant

    Nope, still white!

    #992998
    Nabeel A
    Moderator

    Hey Simon,

    It looks like CSS has not been added to your Customizer, please check your Customizer for any syntax error that could be preventing the CSS to work.

    Thanks!

    #994679
    Simon T
    Participant

    Hi Nabeel,

    Code is in there now – still not working.

    Cheers.

    #994906
    John Ezra
    Member

    Hi there,

    Thanks for updating the thread! Like mentioned before there could be a syntax error that is preventing CSS below it from working. Upon checking your CSS in the customizer, indeed, you are missing a “}” closing curly bracket on your first snippet.

    See the image below to know where you need to insert it. Please do so and all should work.

    syntax error

    Let us know how that goes. Hope this helps – thanks!

    #994999
    Simon T
    Participant

    Apologies, thanks for your help!!!

    #995001
    Friech
    Moderator

    We’re delighted to assist you with this.

    Cheers!

    #1019626
    Simon T
    Participant

    Hi guys, help please! This website is now live at domainshadesails.com.au and the gradient works on firefox but not on IE. My CSS code is:

    .x-navbar {
    background: #999; /* for non-css3 browsers */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#4878af’, endColorstr=’#0f0f47′); /* for IE */
    background: -webkit-gradient(linear, left top, left bottom, from(#4878af), to(#0f0f47)); /* for webkit browsers */
    background: -moz-linear-gradient(top, #4878af, #0f0f47); /* for firefox 3.6+ */
    }

    footer.x-colophon.bottom {
    background: #999; /* for non-css3 browsers */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#4878af’, endColorstr=’#0f0f47′); /* for IE */
    background: -webkit-gradient(linear, left top, left bottom, from(#4878af), to(#0f0f47)); /* for webkit browsers */
    background: -moz-linear-gradient(top, #4878af, #0f0f47); /* for firefox 3.6+ */
    }

    #1019659
    Paul R
    Moderator

    Hi,

    May I know which version of IE did you check.

    You can try linear gradient.

    https://msdn.microsoft.com/library/jj152126(v=vs.85).aspx

    Hope that helps.

  • <script> jQuery(function($){ $("#no-reply-989374 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>