NameSilo

Simple CSS help.

Spaceship Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
1st: #content p , but not #content .p
2nd: line-height: not 0, but real height 12px or so

now, it works for me
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back