-
AuthorPosts
-
November 11, 2016 at 1:28 am #1252919
Hi there,
I’m using TEXT TYPE on my site. Some strings are too long for one line, so the rest the string is placed on a second line. That’s no issue for me. However, in these cases the height of the section increases. The height decreases again when the next string is short enough for one line (see 3rd section at http://deserviceinnovators.nl/). Is it possible to choose a fixed height, independent how many lines the string is?
Thanks in advance.
November 11, 2016 at 2:38 am #1252986Hello There,
Thanks for writing in! Instead of adding a fixed height to the text type element, we just set a minimum height of default height which would cover the two lines so that it will no longer decrease or increase the height. In your text type settings, please insert an inline css in the style field
min-height: 90px;
Please see this screenshot: http://prntscr.com/d5ult4
Hope this helps.
November 11, 2016 at 3:47 am #1253060Thank your for your swift respons. Changed the min-height an it works fine!
Can I ask you another question? I’m trying to change the color of the show-more (‘Lees meer’ on the second section of my site) text by changing the color of the wpm-show and wpsm-hide elements using custom CSS in the Customizer, but this is overwritten by the element.style. How can I resolve this?
November 11, 2016 at 5:33 am #1253190Hi,
You need to add !important in your code.
eg.
.wpsm-show, .wpsm-hide { color: #ff4d4d !important; }
Hope that helps.
November 11, 2016 at 6:53 am #1253263It does! Thanks
November 11, 2016 at 8:53 am #1253369Glad it worked for you.
Let us know if we can help with anything else.
Thanks!
-
AuthorPosts