Community Forums › Forums › Archived Forums › Design Tips and Tricks › Altitude Pro theme – changing dimension of front page background images
Tagged: Altitude Pro, front page background images
- This topic has 5 replies, 2 voices, and was last updated 9 years, 6 months ago by SavvyJackie.
-
AuthorPosts
-
May 27, 2015 at 12:03 am #153750SusieQMember
The Altitude Pro theme demo uses a 1600?—1050 pixel image for the each of the front page background images.
With this in mind, I'm wondering whether it's possible to reduce the 1050 pixel dimension to make a less deep background image?
I've tried uploading a new background image with 1600x700 pixel dimensions, but the background just defaults to the larger size. This results in a small amount of text displaying over an unnecessarily deep background. (I can't provide an URL as the site is yet to go live.)
I suspect from online searches that I probably can't adjust this, but just throwing it out there in case someone knows of a workaround!
Many thanks,
Susie
May 27, 2015 at 4:51 am #153765SavvyJackieMemberHi Susie,
If I understand what you're asking correctly - you should be able to limit the height of one or more the image sections on the home page by using a max-height for that section. I added a max-height of 700px in this example below by editing the style.css where this code was found..front-page-1, .front-page-3, .front-page-5, .front-page-7 { background-attachment: fixed; background-color: #fff; background-position: 50% 0; background-repeat: no-repeat; -webkit-background-size: cover; -moz-background-size: cover; background-size: cover; max-height:700px; <------- I added this }
If you only wanted to limit the height of the first section you could add this code just below that code above code instead of adding to all:
.front-page-1 { max-height:700px; }
Hope that was what you are looking for.
Web Designer and Developer at Savvy Jackie Designs | Lucky with plants | @SavvyJackie
Got your question answered here? Please pay it forward by helping someone else. I’m sure there is at least one question you can answer. 🙂
May 27, 2015 at 8:17 pm #153896SusieQMemberThank you @SavvyJackie for taking the time to respond.
.front-page-5 { max-height:700px; }
I've tried the above fix, but my text is no longer centred within the revised background image, but rather appears near the bottom ... are you able to suggest a way to centre the text?
Many thanks,
Susie
May 28, 2015 at 7:22 am #153953SavvyJackieMemberTry this instead:
.front-page-5 .image-section { max-height:700px; }
Web Designer and Developer at Savvy Jackie Designs | Lucky with plants | @SavvyJackie
Got your question answered here? Please pay it forward by helping someone else. I’m sure there is at least one question you can answer. 🙂
May 28, 2015 at 7:24 pm #154032SusieQMemberBrilliant, thank you @SavvyJackie ...
May 29, 2015 at 5:44 am #154076SavvyJackieMemberMy pleasure. Happy coding.
Web Designer and Developer at Savvy Jackie Designs | Lucky with plants | @SavvyJackie
Got your question answered here? Please pay it forward by helping someone else. I’m sure there is at least one question you can answer. 🙂
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.