-
AuthorPosts
-
March 5, 2015 at 5:50 am #406234
Hey guys- As always thanks for an amazing theme. Enfold is amazing and I’m loving the updates. Also I love the support community here. For almost anything I’m trying to do someone has already asked a question and I can find quick CSS to do what I was hoping.
I’ve searched the community for this item and can’t find it, I may be the only one.
I would like to set a max height on a color section. My goal is to ensure a given image and small amount of copy is almost in frame together.
I set the image up as an easy slider since those are able to grow and shrink and I would think the copy wouldn’t be too much.
I’ve tried using this quick css but haven’t been successful: #fixedheight {
max-height: 100% !important;
min-height: 100% !important;
}Is this possible?
I’ll post a link to the dev page in the private content.
Thanks as always
March 6, 2015 at 3:50 am #406796Hey scottmlogan!
I can’t see any color section on the website you have posted. So what is it exactly you want to style? please provide us screenshots to make things clearer (imgur.com). Be aware that you can style the color section itself, but not specifically the content in it.
Regards,
AndyMarch 6, 2015 at 6:41 am #406822Hey Andy- Thanks for your reply.
So the whole top section is wrapped in one color section with several columns inside of it. That includes the image and the copy just below it. The color section is set to 100% minimum height, however I’d also like to specify 100% max height. The reason for doing this is to ensure that both the copy and the image appear on the screen when the page loads.
This is how I’d like the page to load:
This image shows what happens on lower resolution monitors where the height isn’t as tall.
Thanks again.
March 7, 2015 at 3:19 pm #407500Hi!
I’m not sure if it’s just me but I don’t see any difference between the two images above. Anyway, try to edit the color section, add a custom id attribute in the For Developers: Section ID field. Use “custom-section” for example. Add something like this to the Quick CSS field to specify the max height of the color section:
div#custom-section { max-height: 100px; overflow: hidden; }
You might need to use css media queries to adjust the height of the color section on different screen sizes.
Best regards,
IsmaelMarch 7, 2015 at 8:29 pm #407556Thank you guys for your response.
Ismael- Thank you. I’ve used a lot of the quick CSS you’ve written for other questions. Thankful for your input.
Yes, sorry the two images were the same.
The essentially problem is I’d like to be able to ensure all the contents in the color section are ALWAYS visible. Right now the contents are larger than some browser windows causing a scroll. I’m using an easy slider to allow the image to be flexible in size so that it will get smaller to allow all content to stay in the 100% height color section but still the color section is being forced to scroll. I’ve used the below quick CSS with no success.
div#fixedheight {
max-height: 100% !important;
min-height: 100% !important;
}This is the URL of the page I’m working on: http://mhdb.swamped.com/selected-projects/newport-residence/
March 9, 2015 at 4:00 pm #408195Hi!
I’m sorry but you can only set the section’s minimum height. The actual height of the section will depend on the content. I don’t think it’s possible to control the height without creating a custom jquery script which dynamically calculate the browser height and apply it to the section. You might need to hire a freelance developer for this one. Or use css media queries to resize the section and the elements inside it.
Regards,
IsmaelMarch 13, 2015 at 7:32 pm #411238Thanks Ismael! We were able to put together a solution with the quick CSS below. We’re using some very specific criteria to ensure this only affects color sections that we intend and not others, so it may not be universally useful to others but thought we’d share in case anyone else can use it.
This also may be somewhat of a wonky solution but it’s been very functional for the specific case we were running into:
You can close this. THANKS!
@media screen and (min-width: 768px) and (max-width: 990px) and (min-height: 50px) and (max-height: 600px) {
#fixedheight .container .av_three_fifth ul.avia-slideshow-inner li img {
height: 100px !important;
width: 127px !important;
}
}@media screen and (min-width: 768px) and (max-width: 990px) and (min-height: 600px) and (max-height: 700px) {
#fixedheight .container .av_three_fifth ul.avia-slideshow-inner li img {
height: 150px !important;
width: 190px !important;
}
}@media screen and (min-width: 768px) and (max-width: 990px) and (min-height: 700px) and (max-height: 800px) {
#fixedheight .container .av_three_fifth ul.avia-slideshow-inner li img {
height: 250px !important;
width: 316px !important;
}
}@media screen and (min-width: 768px) and (max-width: 990px) and (min-height: 800px) and (max-height: 1600px) {
#fixedheight .container .av_three_fifth ul.avia-slideshow-inner li img {
height: 303px !important;
width: 384px !important;
}
}@media screen and (min-width: 990px) and (min-height: 50px) and (max-height: 600px) {
#fixedheight .container .av_three_fifth ul.avia-slideshow-inner li img {
height: 100px !important;
width: 127px !important;
}
}@media screen and (min-width: 990px) and (min-height: 600px) and (max-height: 700px) {
#fixedheight .container .av_three_fifth ul.avia-slideshow-inner li img {
height: 200px !important;
width: 253px !important;
}
}@media screen and (min-width: 990px) and (min-height: 700px) and (max-height: 800px) {
#fixedheight .container .av_three_fifth ul.avia-slideshow-inner li img {
height: 300px !important;
width: 380px !important;
}
}@media screen and (min-width: 990px) and (min-height: 800px) and (max-height: 1600px) {
#fixedheight .container .av_three_fifth ul.avia-slideshow-inner li img {
height: 407px !important;
width: 516px !important;
}
}March 16, 2015 at 2:01 am #411785Hey!
glad you figured it out and thanks a lot for sharing your solution with others. Let us know when you need some more help.
Regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.