1. sjudelson
  2. Sherlock Holmes
  3. Commercial Templates
  4. Friday, 04 August 2017
  5.  Subscribe via email
I am using your Vitality template and duplicated the style page to create a homepage with a full screen header image on the home page. It looks fabulous on desktops, tablets and landscape phones. On portrait phones, however, the image is too wide so that only a portion fits. To try to fix this, I pasted the following code into the Phone (Portrait) Custom CSS field in the Responsive Options tab:

.vegas-slide-inner {
height: 300px;
background-size: 150% auto !important;
}

The image was tiny at 100% so I increased it to 150% to make the image wider. This left a lot of space above and below the image. The height line eliminated a lot of white space above the image, but a large amount of white space still exists below the image (see screenshot). Is there a way to fix this and/or a better way to address the issue of displaying the image in the Phone (Portrait) mode? Thank you!

Steven
References
  1. http://new.amagansettseasalt.com
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Steven

One option is to set a static height to your header area on mobile devices with the following custom CSS (Phone (Portrait) Custom CSS field)...

#header_bg {
height: 300px !important;
}


CiarĂ¡n
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you for the reply. I see the change the #header_bg height command makes, however I can see that most of the white space is the padding before the the article module located below the header that scrolls up and down..
  1. more than a month ago
  2. Commercial Templates
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok