• 0
Sign in to follow this  
Followers 0

Line spacing in Text Box


Question

Posted · Report post

I added some HTML to a text box but it appears to be defaulting to 1.5 or 2 for the space between lines. I tried changing it to 1, but that did not seem to work.  Sorry, I'm a newbie when it comes to HTML and CSS but I would think the default would be 1 for line spacing. For example, the exact same HTML appears with 1-line spacing when I use the Widgetizer.

 

lvVMy86.jpg

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

Posted · Report post

Hi

Please, you can remove de <p> </p> first

 

If you want make a Styling Classes

1. First add to your Custom Code the rule

.my-line-text {line-heigth: 0.2 em}

2. Add a Styling Classes

my-line-text

 

Please go to this to see an example

http://docs.pagelines.com/tutorials/section-area-styling

 

You can see

http://www.w3schools.com/cssref/pr_dim_line-height.asp

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

batman thank you for the suggestions. I tried as you suggested, but it does not appear to be working?

 

eJjcJha.jpg

 

QJGLaEF.jpg

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Do you have a cache plugin? If so, use the plugin's settings to clear the cache.

Share this post


Link to post
Share on other sites
  • 0

Posted (edited) · Report post

Come on guys... and bad bad batman typos ha ha!

 

leftcoastmichael batman was correct apart from his typos so no fault of your own it should have worked. Put this in your custom LESS/CSS

.my-line-text {
    line-height: 0.2 em;
}

And then put this in your Styling classes

my-line-text

then press publish and then save.

 

Good luck.

Edited by thebastion

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi @thebastion

Sorry for my "typos", but you don´t understand ....

I explain you, this is my "BatEnglish"

:D 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0