auto width and height

info's Avatar

info

04 May, 2019 02:08 AM

Hello everybody thanks for read!
I tried to make a galery auto width and height but i don´t know how to do.
JS:
  fullscreen: {
 enabled: true,
   nativeFS: true

    },
autoPlay: {
     // autoplay options go gere
     enabled: true,
     pauseOnHover: true
     },


    controlNavigation: 'none',
    imageScaleMode: 'fit',
     loop: true,
    numImagesToPreload:3,
    arrowsNav:true,
    arrowsNavAutoHide: true,
    arrowsNavHideOnTouch: true,
    fadeinLoadedSlide: true,
/////

Css

<style>
#gallery-1 {
  width: 100%;
 
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

</style>

when it's time to look at it on the phone it's cut, how do I make it look like a full screen without borders?
auto width and height

  1. Support Staff 1 Posted by Dmitry Semenov on 04 May, 2019 03:57 AM

    Dmitry Semenov's Avatar

    Hello,

    The size of the slider depends on its parent containers and root element styles, please refer to this mini-guide - http://help.dimsemenov.com/kb/royalslider-jquery-plugin-faq/how-to-...

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • 00.jpg 228 KB
  • WhatsApp_Image_2019-04-30_at_9.13.23_AM.jpeg 183 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac