NameSilo

Simple CSS help.

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

matrocka

Established Member
Impact
0
I want to write a simple CSS file that will give me double spacing in the entire site. I want to have one section "content" 's <p> tag to have single spacing however. Why doesn't this work:?


<p>Hi</p><p>Welcome to the site</p>
<div id="content">
<p>blahblahblablahbahbahbahb</p>
</div>


with CSS:

body {
font-family: tahoma, helvetica, arial, sans-serif;
font-size: 9px;
text-align: center;
background: #000;
color: #ddd4d4;
padding-top: 12px;
line-height: 2;}

#content {
float: right;
width: 362px;

}

#content .content {
margin: 0px;
}
#content .p {
margin:0px;
padding-top:0px;
padding-bottom:0px;
padding-right: 20px;
padding-left: 20px;
line-height: 0;
}

Thanks!
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
1st: #content p , but not #content .p
2nd: line-height: not 0, but real height 12px or so

now, it works for me
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back