ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CSS class style text formatting question

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> JavaScript / DHTML / HTML / CSS
View previous topic :: View next topic  
Author Message
JohnV



Joined: 19 Nov 2004
Posts: 4

PostPosted: Fri Nov 19, 2004 3:20 pm    Post subject: CSS class style text formatting question Reply with quote

Hi,

I've recently created my first site entirely with CSS, but because I don't have much experience with CSS and need a little help.

I have the CSS style class:

Code:

.ContentText {font-family:Verdana; font-size:11px;}



When I display some text formatted with this CSS class the text row are too close to one another. Is there a way to change my CSS style so it displays greater space before and after each text row?



Thanks in advance,

John
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Fri Nov 19, 2004 10:21 pm    Post subject: Reply with quote

Hi John,

The CSS property you're looking for is called line-height and you can use it like this:

Code:

.ContentText {font-family:Verdana; font-size:11px; line-height: 150%;}


_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
JohnV



Joined: 19 Nov 2004
Posts: 4

PostPosted: Sun Nov 21, 2004 8:35 am    Post subject: Reply with quote

Thanks Smile

I'll be coming back soon with more CSS questions.



John
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> JavaScript / DHTML / HTML / CSS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial