Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Simple CSS help.

Namecheap AuctionsNamecheap Auctions
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
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back