Jump to content


Photo
- - - - -

Changing font size of a specific paragraph


Best Answer Simon_P , 22 July 2014 - 04:37 PM

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

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 mmunger

mmunger

    Advanced Member

  • Members

  • 34 posts
  • LocationMontrĂ©al
  • Framework Version:DMS 2
  • Country: Country Flag

Posted 20 July 2014 - 07:08 PM

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?



#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 16392 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 21 July 2014 - 10:40 AM

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>



#3 mmunger

mmunger

    Advanced Member

  • Members

  • 34 posts
  • LocationMontrĂ©al
  • Framework Version:DMS 2
  • Country: Country Flag

Posted 22 July 2014 - 11:53 AM

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?

 

 

 

 

 


#4 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 22 July 2014 - 04:37 PM   Best Answer

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