Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #988235

    Hello,

    I used a 13 inches display to build my website using Enfold. When I use this display to show the website, everything looks great.

    My goal is to centered the caption title and text of the full screen slider which worked with the following code :

    /* Center Text Full Screen Slider Front Page*/
    .home .caption_bottom .slideshow_caption .slideshow_inner_caption {
        bottom: 180px !important;
        text-align: center !important;
    }

    but on bigger screen (I am also using a 27 inches display) it appear at the bottom and not in the middle :

    http://prntscr.com/k9bz0w

    Also on mobile with my iphone SE it appears on the very top instead of being in the middle : https://prnt.sc/k9c0vt

    How can I fix this ?

    Thank you in advance for your help

    #988332

    Hey 805ITS,

    Try wrapping your code in a media query:

    
    @media only screen and (min-width:1024px) {
        /* Center Text Full Screen Slider Front Page*/
        .home .caption_bottom .slideshow_caption .slideshow_inner_caption {
            bottom: 180px !important;
            text-align: center !important;
        }
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #988501

    Thank you for your reply but that did not really help. The text is just a little more below on the mobile version but I want it in the middle and it did not change anything on bigger screen on the desktop version of the site.

    #988596

    I thought I had fix the issue on mobile but I think there is a conflict with my CSS code somewhere. Here was the original code I had for the desktop version of the site :

    /* Center Text Full Screen Slider Front Page*/
    .home .caption_bottom .slideshow_caption .slideshow_inner_caption {
        bottom: 180px !important;
        text-align: center !important;
    }
    
    /* Center Text Full Screen Slider Web Design Page*/
    .page-id-513 .caption_bottom .slideshow_caption .slideshow_inner_caption {
        bottom: 120px !important;
        text-align: center !important;
    }

    Then I added the code below and it worked but for some reason now the code “break” and all the styling on the header menu disappeared unless I remove the code below :

    /* Center Text Full Screen Slider Web Design Page on Smartphone*/
    @media only screen and (max-width: 480px) {
    .page-id-513 .caption_bottom .slideshow_caption .slideshow_inner_caption {
        bottom: 75px !important;
        text-align: center !important;
    }
    
    /* Center Text Full Screen Slider Contact Page on Smartphone*/
    @media only screen and (max-width: 480px) {
    .page-id-35 .caption_bottom .slideshow_caption   .slideshow_inner_caption {
        bottom: 75px !important;
        text-align: center !important;
    }
    
    /* Center Text Full Screen Slider Front Page on Smartphone*/
    @media only screen and (max-width: 480px) {
    .home .caption_bottom .slideshow_caption .slideshow_inner_caption {
        bottom: 75px !important;
        text-align: center !important;
    }

    Also on this page : https://goo.gl/jNZQJy

    http://prntscr.com/k9ra2o

    I am not sure why it’s doing that… when I remove all the quick css code it goes back to normal..

    Any help would be greatly appreciated!

    • This reply was modified 6 years, 5 months ago by 805ITS.
    #990202

    Hi,

    The css media queries were not closed properly. You have to add the closing curly braces.

    /* Center Text Full Screen Slider Web Design Page on Smartphone*/
    @media only screen and (max-width: 480px) {
    .page-id-513 .caption_bottom .slideshow_caption .slideshow_inner_caption {
    bottom: 75px !important;
    text-align: center !important;
    }
    
    /* Center Text Full Screen Slider Contact Page on Smartphone*/
    .page-id-35 .caption_bottom .slideshow_caption   .slideshow_inner_caption {
    bottom: 75px !important;
    text-align: center !important;
    }
    
    /* Center Text Full Screen Slider Front Page on Smartphone*/
    .home .caption_bottom .slideshow_caption .slideshow_inner_caption {
    bottom: 75px !important;
    text-align: center !important;
    }
    }

    // https://www.w3schools.com/css/css_rwd_mediaqueries.asp

    You can also combine those css media queries because they’re targeting the same screen width.

    Best regards,
    Ismael

    #990367

    Thank you so much that fixed the problem!! :) Is there an css editor that would tell me if there is any mistake in the code?

    #990463

    Hi 805ITS,

    Glad we could help :)

    You can validate the css in a service like this
    https://jigsaw.w3.org/css-validator/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #991361

    Thank you! I noticed the progress bar does not work on the mobile version : http://prntscr.com/kcjhl1

    Any idea what’s wrong?

    #991372

    Hi,

    Where did you add those elements? I can’t find them anywhere in the site. Please provide a link to the actual page so that we can inspect it.

    Best regards,
    Ismael

    #991373

    On this page :

    #991813

    Hi,

    Thanks for the update.

    The title creates another line, so it breaks the layout of the progress bar. Try to decrease the font size on smaller screens.

    @media only screen and (max-width: 767px) {
      /* Add your Mobile Styles here */
      .avia-progress-bar {
        position: relative;
        margin-bottom: 25px;
      }
    
      .avia-progress-bar .progressbar-title-wrap {
        font-size: 11px;
      }
    }

    Best regards,
    Ismael

    #991819

    Thank you I have tried but it did not fix it.

    #991848

    Hi,

    Did you purge the browser cache and toggle the css/js compression?

    Best regards,
    Ismael

    #991851

    Yes I have.. this is what I see : http://i.prntscr.com/_pt3vNFcQBmtbRmvdTkUVw.png

    #992201

    Hi,

    The code works when I try it on the browser inspector. Did you copy the code from your email? Please provide the login details in the private field.

    Best regards,
    Ismael

    #992582

    It didn’t work but I was able to fix it with this code :

    /*Fix Progress Bar on "About" page on mobile*/
      .avia-progress-bar .progressbar-title-wrap {
        font-size: 10px;
      }
    }
    #992713

    Hi,

    Great! That css code is invalid though. There’s an extra curly brace below. You should remove that.

    Best regards,
    Ismael

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