Tagged: 

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

    My website is not displaying properly in Firefox.

    If you look at my website in Chrome, the bottom portion of each blog post where it says “Sponsored by” looks fine. However, in Firefox, the “Sponsored by” box is missing and replaced by a large white space.

    The issue is this code:

    #sponsor-class {
        text-align: center;
        font-weight: 300;
        background-color: #7a7874;
        margin: 0px -18px -10px -18px;
    border-radius: 0 0 10px 10px;
    overflow: auto;
    }

    The “overflow: auto” line is the issue. If I remove this line, the “Sponsored by” box becomes visible in Firefox. However, with the “overflow: auto” line gone, the height of the “Sponsored by” box is too high in all browsers. I also tried using the “flow-root: auto” code but that produces the same results as the “overflow: auto” code (that is it works in all browsers except Firefox)

    Can you help me with this? I am not even sure why the div id has such a high height. If it wasn’t so high, I wouldn’t even need the overflow code. The div id code that I used is:

    <div id="sponsor-class">
    <?php echo the_field('sponsored_by'); ?> <a href="<?php echo esc_url( $link_url ); ?>" target="<?php echo esc_attr( $link_target ); ?>"><?php echo esc_html( $link_title ); ?></a>
    </div>
    <?php endif; ?>
    • This topic was modified 4 years, 3 months ago by Victoria.
    #1238533

    Hey lsrmedia,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    .avia-mozilla #sponsor-class {
        display: block;
        width: 106.3%;
         margin: 0px 0px -11px -18px;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1239617

    Thanks Victoria. That works for screen widths larger than 663px. However, at widths of 663px or less, the grey box separates from the grey border. Is there a way to fix that?

    The problem is the overflow: auto line. That seems to cause the sponsored by box to disappear in firefox. But I need to use that because the height of the div id is too high and the top of the grey box extends far above the actual sponsored by line. Is there any way of making the div id height less? I tried using span instead and while that did reduce the height of the box, it also limited the width to only the size of the text.

    #1240135

    Hi lsrmedia,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (max-width:767px){
        .avia-mozilla #sponsor-class {
            margin: 48px -18px -10px -18px;
            overflow: inherit;
        }
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1240269

    Hi Victoria,

    Unfortunately that still did not work correctly as the smaller sized screen widths still displayed a gap between the box and border.

    I did some trial and error and came up with this:

    .avia-mozilla #sponsor-class {
        display: block;
        width: -moz-available;
    }

    That seems to work good although I have never used the code -moz-available. Is that okay to use?

    As well, from what I understand the -moz-available code is only for Firefox so do I still need to keep it under the .avia-mozilla class selector or can I put it with the rest of the CSS in the ID selector #sponsor-class section? For instance:

    #sponsor-class {
        text-align: center;
        font-weight: 300;
        background-color: #7a7874;
        margin: 0px -18px -10px -18px;
    border-radius: 0 0 10px 10px;
    overflow: auto;
    width: -moz-available;
    }
    • This reply was modified 4 years, 4 months ago by lsrmedia.
    #1241237

    Hi,

    Where did you get the value -moz-available? It doesn’t look like a valid value for the width property.

    Have you tried setting the width to 100% instead?

    // https://developer.mozilla.org/en-US/docs/Web/CSS/width

    Best regards,
    Ismael

    #1241421

    When I use width 100% the box does not extend the full length on the right side in Firefox.

    However I just discovered that in some older version of Microsoft edge, the box doesn’t display at all because of the “overflow: auto” code.

    So maybe there is another way of doing this. I erased all my extra code and took it back to when I had my original problem.

    Please check my website again and look at the first 4 posts. You will notice that the grey “sponsored by” box fits perfectly at the bottom and side to side in all browsers. However the box extends too high and goes into the social share box in all browsers. I really don’t understand why the box is extending so high. What I am trying to do is bring the box down so it is below the social share icons.

    What is the best way to accomplish this? I tried using both the “overflow: auto” and the “display: flow-root” code and while either one will fix the issue in Chrome, it causes the entire box and sponsored by text to disappear in both Firefox and older versions of Microsoft Edge.

    #1242497

    Hi,

    Thank you for the clarification.

    You can use this css code to keep the gray box or the sponsored by section under the share box.

    .av-share-box {;
    	float: none !important;
    }

    You may need to toggle the Performance > File Compression settings after adding the code.

    Best regards,
    Ismael

    #1242517

    Victoria
    Sorry to interrupt here, but I have a ticket open for more than 10 days and nobody answers me, it is the first time that something so unpleasant has happened with the kriesi support team, could you please review?

    WooCommerce Hidden Products visibility in Masonry Style

    Thanks!

    #1242690

    Thanks Ismael, that worked well.

    One final question. What would be the best way to reduce the white space between the share box and the gray sponsored by box.

    Using a negative margin seems to work:

    #sponsor-class {
        margin-top: -10px !important;
    }

    However I wasn’t sure if using a negative margin is the best way to reduce the white space.

    #1242846

    Hey!

    Using negative top margin is quite alright, so you can keep it as is if you have already added the css code.

    Thank you for your patience.

    Regards,
    Ismael

    #1243004

    Great, thanks so much for all your help!

    #1243208

    Hi,

    Great, I’m glad that Ismael and Victoria could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1243525

    Yes you can close the thread. Thanks again.

    #1243597

    Hi lsrmedia,

    Great :)

    We are closing the thread.

    If you need further assistance please let us know in a new one.

    Best regards,
    Victoria

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Display Issue in Firefox’ is closed to new replies.