Tagged: x
-
AuthorPosts
-
April 23, 2016 at 6:39 pm #896995
highlandadventuresParticipantHi…I am trying to control the format of a selected number of paragraph items (NOT all paragraphs). How can I create a CSS to make the font 10px for a selected paragraphs. Right now I am using iline <p style=”font-size:20px; margin-top:30px”> but I want to control this from a single point vis CSS. I though of creating a class element, but I don’t know how to call the element from an inline code.
I am trying to apply this to the the PRICE PER PERSON, WHAT IS INCLUDED and NOT INCLUDED under the PRICE tab on page http://galapagos.tours/inca-trail-tours/la-pata/…if you inspect the page, you will notice the inline <p style=”font-size:20px; margin-top:30px”>…How can we control this from a CSS and what do we write in the inline code to call the CSS element?
Thanks.
April 24, 2016 at 8:15 pm #897935
Rue NelModeratorHello There,
Thanks for writing in! Upon checking all those 3 keywords you have pointed out, you have something like this:
<p class="hometown">PRICE PER PERSON</p>. It seems you are using a class. You can make sue of this css then so that you can control it without adding any inline css..hometown { font-size: 10px; margin-top: 15px; }Hope this helps. Please let us know how it goes.
April 24, 2016 at 9:06 pm #897963
highlandadventuresParticipantdo i need to have the letter ‘p’ before the name of the class…like p.hometown or just .hometown.
April 24, 2016 at 9:09 pm #897965
highlandadventuresParticipanti figure it out…thanks.
April 25, 2016 at 5:48 am #898415
ZeshanMemberGlad to hear you’ve figured it out! 🙂 Have a good day.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-896995 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
