Avatar of isnoend2001
isnoend2001
Flag for United States of America asked on

best way to write p tag in css in referring to a class

Would this be correct
<p align="center" class="Bfont12">Roofing Tools <a href="../Product.asp">Here</a>
CSS

Avatar of undefined
Last Comment
isnoend2001

8/22/2022 - Mon
Scott Fell

You should use external css and not inline and close the p

<style>
p.bfont12{
       text-align:center;
}
</style>

<p class="Bfont12">Roofing Tools <a href="../Product.asp">Here</a></p>
isnoend2001

ASKER
thanks for adding that what about places where i do not want the space a <p> gives
I have a lot of these
 <span class="BfontWhite12">Popular Roof Materials</span>
i have many of these for menu captions and the <p>tag makes them too tall
ASKER CERTIFIED SOLUTION
Scott Fell

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Scott Fell

I would style like this

<style>
.bfont12{
       text-align:center;
       font-size:12px;
}
.BfontWhite{
       color:white;
}
.BfontRed{
       color:red;
}
</style>

<p class="Bfont12 BfontRed">Roofing Tools <a href="../Product.asp">Here</a></p>
 <span class="bfont12 BfontWhite">Popular Roof Materials</span>
Your help has saved me hundreds of hours of internet surfing.
fblack61
isnoend2001

ASKER
thanks just what i needed
isnoend2001

ASKER
Padas
hope you can answer my next question I am posting