Avatar of isnoend2001
isnoend2001Flag 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
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

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>
Avatar of isnoend2001
isnoend2001
Flag of United States of America image

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
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

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>
Avatar of isnoend2001
isnoend2001
Flag of United States of America image

ASKER

thanks just what i needed
Avatar of isnoend2001
isnoend2001
Flag of United States of America image

ASKER

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

Cascading Style Sheets (CSS) is a language used for describing the look and formatting of a document written in a markup language. Usually used to change web pages and user interfaces written in HTML, it can also be applied to any kind of XML document. CSS is designed primarily to distinguish the content of a document from its presentation.

43K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo