CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
CSS Combat
CSS Hide text in p tag command
tingo
Permalink to comment
#
May 2010
Hi
Would someone be kind enough to let me know is their a css command to hide the text in a p tag?
Many Thanks and Kind Regards
Charles
virtual
Permalink to comment
#
May 2010
You could add a class to the p tag in the html
<p class="hide">Bla bla</p>
in the CSS
p.hide {display: none;}
tingo
Permalink to comment
#
May 2010
Thank you for your great help
Add a Comment
Would someone be kind enough to let me know is their a css command to hide the text in a p tag?
Many Thanks and Kind Regards
Charles
<p class="hide">Bla bla</p>
in the CSS
p.hide {display: none;}