Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

p style line height in HTML

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi, wondering if you somebody could assist.

I'm building a site using Lifestyle2 and something I have done in thememagic, I think, has caused my html output to contain P tags in the html with a style applied with a line height set.

Now I can't seem to override this. I think it happened when I changed the Font Size in theme magic but I have since cleared this back to the default.

Example output - I want the line-height removed so that I can control it in css.

<section class="article-content clearfix" itemprop="articleBody">
<p style="line-height: 15.8079996109009px;"><strong>School Organisation</strong><br />The school day starts.......

Any help would be most appreciated.
  • jcolls's Avatar
  • jcolls
  • LIfetime Developer - Big Bamboo
  • 36 posts
  • Karma: 0
The administrator has disabled public write access.
Hi

Do you have a link for the site?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul, thanks for taking a look. Sorry, should have provided a link. Here is a link to a sub page .

kensworthschool.co.uk.gridhosted.co.uk/index.php/key-info/admissions-policy
  • jcolls's Avatar
  • jcolls
  • LIfetime Developer - Big Bamboo
  • 36 posts
  • Karma: 0
The administrator has disabled public write access.
I see you have this already

section.article-content.clearfix P {
font-size: 16px;
line-height: normal;

You are missing a close bracket
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
With the style

section.article-content. p {
font-size: 16px;
line-height: normal;
}

Its a case of adding a value instead of normal

so perhaps something along the lines of

line-height: 1.3em;
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Thanks Paul, that's great. I'm unable to fix at the moment but will do tomorrow.

Thanks for super fast help, such great support on these forums.

Kind regards

Jonathan
  • jcolls's Avatar
  • jcolls
  • LIfetime Developer - Big Bamboo
  • 36 posts
  • Karma: 0
The administrator has disabled public write access.
Looking at that page I can see you have an issue with the ordered list so try tweaking these values

.article-content ol {margin: 1.5em 1.2em 1.5em 2em;}
.article-content ol li {font-size:16px}

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Jonathan

No problem - you're welcome

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers