• 0

Changing font size of a specific paragraph

Question

Posted · Report post

Hi guys,

 

Still working with this framework for a few months. Installing DMS 2 soon.

 

Meanwhile, I would really like to know what is your recommended solution if I want to reduce the font size for a specific paragraph within a blog post/page.

 

Help?

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

custom css is site wide, unless of course you add page ids etc to the css ;)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi,

 

If you want to change the font size of a specific paragraph you're going to want to use CSS. The simplest method would be to use inline styling such as this:

 

<p style="font-size: 10px;">...</p>

 

However, a better method would be for you to create a custom class, as you can reuse the class on other elements. For example:

 

.small-text { font-size: 12px; }

 

Then add that class to your paragraphs, like so:

 

<p class="small-text">...</p>

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

That definitely works.

 

Now, I have DMS 2 installed on one site to experiment with it. How do I make sure that a custom CSS element is site-wide? I have the impression that the custom CSS box customizes a page only. Am I wrong?

 

 

 

 

 

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