Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #914332

    Dear support.
    In page in Private Content
    I have Advanced Layerslider and column after it with text:
    Dear fellow…

    Margin-top of this column: -400px
    But it is so on 1920px of screen width.
    When I change screen width to smaller resolution the column with text is going up under Layerslider((
    But I need the same visual margin in other resolutions (like in 1920px).

    #914339

    So, I use this construction, but it’s not correct at all:

    @media only screen and (min-width: 1920px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -400px !important;
    }
    }
    @media only screen and (min-width: 1800px) and (max-width: 1919px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -380px !important;
    }
    }
    @media only screen and (min-width: 1700px) and (max-width: 1799px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -360px !important;
    }
    }
    @media only screen and (min-width: 1600px) and (max-width: 1699px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -340px !important;
    }
    }
    @media only screen and (min-width: 1500px) and (max-width: 1599px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -320px !important;
    }
    }
    @media only screen and (min-width: 1400px) and (max-width: 1499px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -300px !important;
    }
    }
    @media only screen and (min-width: 1300px) and (max-width: 1399px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -280px !important;
    }
    }
    @media only screen and (min-width: 1200px) and (max-width: 1299px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -260px !important;
    }
    }
    @media only screen and (min-width: 1100px) and (max-width: 1199px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -240px !important;
    }
    }
    @media only screen and (min-width: 1000px) and (max-width: 1099px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -220px !important;
    }
    }
    @media only screen and (min-width: 900px) and (max-width: 999px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -200px !important;
    }
    }
    @media only screen and (min-width: 768px) and (max-width: 899px) {
    .blue-lives_text {
    	width: 65% !important;
    	margin-top: -180px !important;
    }
    }
    @media only screen and (min-width: 700px) and (max-width: 767px) {
    .blue-lives_text {
    	width: 100% !important;
    	margin-top: -160px !important;
    }
    }
    @media only screen and (min-width: 600px) and (max-width: 699px) {
    .blue-lives_text {
    	width: 100% !important;
    	margin-top: -140px !important;
    }
    }
    @media only screen and (min-width: 500px) and (max-width: 599px) {
    .blue-lives_text {
    	width: 100% !important;
    	margin-top: -120px !important;
    }
    }
    @media only screen and (min-width: 400px) and (max-width: 499px) {
    .blue-lives_text {
    	width: 100% !important;
    	margin-top: -100px !important;
    }
    }
    @media only screen and (min-width: 300px) and (max-width: 399px) {
    .blue-lives_text {
    	width: 100% !important;
    	margin-top: -80px !important;
    }
    .bottle {
    	margin-top: 0 !important;
    }
    #914390

    Hi,

    Can you try to remove the bottle from layerslider, then add it as an image, just add some class name to it, set it to position absolute and adjust it’s positioning, then for the text block, just set the width and that should be it. Let us know if this helps.

    Best regards,
    Nikko

    #914452

    Dear, Nikko.
    But I need the image with parallax effect. There is no parallax effect in simple image.

    #914689

    Hi,

    That’s a lot of css media queries for a single element. Please provide the login details in the private field so that we can check the setup. And a screenshot of the expected layout on desktop and mobile view.

    Best regards,
    Ismael

    #914792

    Thank you, Ismael.
    Look private content, please.

    Column after LayerSlider with text:
    Dear fellow…

    Margin-top of this column: -400px
    But it is so on 1920px of screen width.
    When I change screen width to smaller resolution the column with text is going up under Layerslider((
    But I need the same visual margin (like in 1920px) in other resolutions.

    #915228

    Hi,

    Thank you for the update. The page looks exactly as the screenshot. Did you fix the layout issues?

    Screenshot: https://imgur.com/a/f1dBK

    Best regards,
    Ismael

    #915431

    Hi,
    Look at my second post from February 19, 2018 at 4:04 pm

    Your answer (February 20, 2018 at 5:37 am):
    “That’s a lot of css media queries for a single element.”

    This css construction for one element is not correct at all and until now this terrible css construction has not changed.

    #915815

    Hi,

    I didn’t know that you disabled the css modification before so it looked different yesterday. What if the “blue-lives_text” element is included in the layer slider?

    Best regards,
    Ismael

    #915982

    Dear Ismael,
    I already did it. But in this way I have 2 problems:
    1. Left-margin of text layer in layerslider is different than column with text without layerslider in different resolutions.
    2. Canvas height of layerslider is 1500px, the text layer in layerslider have min. mobile font size 14. The text goes down beyond the layerslider.

    #915994

    I think the easiest way in this case, do as the Nikko said (February 19, 2018 at 5:04 pm).
    And using parallax effect for bottle without layerslider.

    #916247

    Hi,

    Yeap, that does sound the best solution!
    Go ahead and let us know if you have any problem.

    Best regards,
    Basilis

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