Jump to content


Photo
- - - - -

Rev Slider Height

revslider height css

Best Answer Danny , 24 September 2013 - 09:54 AM

Hi,

 

Try adding the following too:

 
.revslider-full {
max-height: 600px !important;
}

I have also reported this on our issue tracker too.

Go to the full post


  • Please log in to reply
8 replies to this topic

#1 microsqueek

microsqueek

    Advanced Member

  • Members

  • 30 posts
  • Country: Country Flag

Posted 23 September 2013 - 11:38 AM

Hey, I'm having some trouble with the height of the Rev Slider on the home page here: http://nationalmallunderground.org. I've tried adjusting the aspect ratio of the images, but it always crops them. And I'm having trouble getting the code to let me increase the height of the slider. Can you suggest something please?

 

Thanks!



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 15680 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 23 September 2013 - 01:21 PM

The height is based on your width, the inline documentation for the Rev Slider suggests the following:

For high resolution, 2000px wide x 800px tall images.

 

What size images are you using ?



#3 microsqueek

microsqueek

    Advanced Member

  • Members

  • 30 posts
  • Country: Country Flag

Posted 23 September 2013 - 03:17 PM

Thanks for getting back. I've tried different aspect ratios, including 1280x720, 1280x960 and 2000x800. The images at 2000px are large anyway, and it's difficult to reduce them enough to upload without compromising resolution.

 

The point is, I don't want the height to be 800px, but much larger (the 2000x800 is much too narrow, it looks ridiculous as a full page slider). So, is there a way to tell the slider that a max height is larger than 800, so that when I put in a 1200x960 image, it doesn't crop it into a narrow rectangle, but allow it to fill the screen? My editor is having trouble identifying information about the slider, so I can't really modify the code myself - it's causing a lot of trouble!



#4 microsqueek

microsqueek

    Advanced Member

  • Members

  • 30 posts
  • Country: Country Flag

Posted 24 September 2013 - 07:24 AM

Hello...?



#5 Danny

Danny

    Is Awesome!

  • Moderators
  • 15680 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 24 September 2013 - 07:58 AM

Firstly do not bump posts when you haven't received a reply within 4 hours. I have only just started my shift and you're in a que.

 

The Revslider can not be used in the way you want it to, meaning you can't change the height of it, without using custom CSS. Therefore, I recommend you either use custom CSS to override the max-height of 480px or find an alternative Slider, you can install the Legacy Plugin and use the old Feature Slider from PageLines Framework, this gives you a lot more control.

 

https://www.dropbox....cy-sections.zip



#6 microsqueek

microsqueek

    Advanced Member

  • Members

  • 30 posts
  • Country: Country Flag

Posted 24 September 2013 - 09:51 AM

Little bit rough, actually. I didn't realise I was pushing up a queue, don't usually use forums like this. 

 

I want to change the CSS, but it doesn't seem to respond. I've put this in: 

 
.revslider-container {
  width: 100% !important;
  position: relative;
  padding: 0;
  max-height: 600px !important;
  overflow: hidden;
}

This should increase the max height from 480px to 600px, but it's not actually having an impact. The height is staying at 480px. Is there something I'm missing?

 

I'm also having trouble with the custom CSS in changing a button colour - I could tell it to change a button colour a few days ago, and now it doesn't show up. Any idea why that might be?

 

Thanks.



#7 Danny

Danny

    Is Awesome!

  • Moderators
  • 15680 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 24 September 2013 - 09:54 AM   Best Answer

Hi,

 

Try adding the following too:

 
.revslider-full {
max-height: 600px !important;
}

I have also reported this on our issue tracker too.


  • microsqueek likes this

#8 microsqueek

microsqueek

    Advanced Member

  • Members

  • 30 posts
  • Country: Country Flag

Posted 24 September 2013 - 11:13 AM

Ah, amazing. Thank you for your help with this!



#9 Danny

Danny

    Is Awesome!

  • Moderators
  • 15680 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 24 September 2013 - 11:13 AM

No problem.







Also tagged with one or more of these keywords: revslider, height, css