update: my problem is almost solved but i still cant get the padding to work on all textlines, it only changes the first line when i add padding
new public link https://preview.webflow.com/preview/testnoobsite?preview=4c3df89ed53c965f45fa035897bc822d
hello, im trying to create something like what i provided in the image. a text with a background color that has spacing in between the lines.
thanks in advance from a swiss noob
Waldo
(Waldo Broodrÿk)
January 25, 2016, 9:08pm
2
Hey @Multiwikimedia you can adjust the line height to effectively add spacing between each line.
thank you @waldo but what about the left and right padding? the padding only affects the first and last word
Waldo
(Waldo Broodrÿk)
January 25, 2016, 9:26pm
4
Hey @Multiwikimedia you’ll need to add the padding to the parent element “insidetext”
@waldo but what i want is, that the background color doesnt move, just the text, thats what i meant with padding left and right
like this
but when i adjust the parent element, everything moves.
Waldo
(Waldo Broodrÿk)
January 25, 2016, 10:53pm
6
Hey @Multiwikimedia as far as I am aware there isn’t a way to add inline-text styles to multi-line text elements how you’d like to have it styled unfortunately.
okay, thank you anyway @waldo
callmevlad
(Vlad Magdalin)
January 25, 2016, 11:49pm
8
Unfortunately this is something that’s not really supported in CSS natively :\
See Multi-Line Padded Text | CSS-Tricks - CSS-Tricks for some custom code workarounds, which are all pretty hacky unfortunately
system
(system)
Closed
March 27, 2016, 11:00am
10
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.