Jump to content

Changing the image height based on screen resolution


newcoder1010

Recommended Posts

Hi,

 

 

 

I have this css:

 

 

@media (min-width: 993px){
/* I have two other regions before this */
.views-slideshow-cycle-main-frame-row-item .field-content img { height: 650px;     min-height: 650px;     width: 100%; }
}

I visited the slideshows in a screen which resolution is 1920 x 1080, it looks good. I can see the entire image once I visit the page without scrolling down.

 

 

I visited the slideshows in another screen which resolution is 1366 x 768, I can see the part of the image. To see the rest of the image, i need to scroll down to see the rest.

 

 

I am not sure how to solve this problem. How can I specify the height for resolution is 1366 x 768 so when people visit the page they can see the entire image on the home page?

 

http://godrupal.info

 

 

Thanks.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...