HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
How to ENLARGE the HEIGHT in a CSS style sheet?
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
sono



Joined: 14 Feb 2008
Posts: 1

PostPosted: Thu Feb 14, 2008 3:13 am     How to ENLARGE the HEIGHT in a CSS style sheet? Reply with quote

I've a style sheet with

.textarea { FONT: 14px arial, verdana, sans-serif;
background-image: url("../picts/shadeform.gif");
text-align: left; }

but the lines are to narrow, they stick to each other.

How can I ENLARGE the HEIGHT???

Thanks,

Sono (just starting with CSS)
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8269
Location: Castle Rock CO USA

PostPosted: Thu Feb 14, 2008 9:39 am     Reply with quote



Just use the width and height in the style
Code:
<style type="text/css">
textarea
{
   font: 14px arial, verdana, sans-serif;
   background-image: url("../picts/shadeform.gif");
   text-align: left;
   height: 500px;
}
</style>
If you are not using the <textarea> element, you should rename your class to something else. I am assuming you are using the <textarea> element in the example code above.


_________________
Corey
Toll Free Solutions | Mile High Merchant Accounts | Expression Web Blog
The Hunter



Joined: 13 Feb 2008
Posts: 7

PostPosted: Thu Feb 14, 2008 11:32 am     Reply with quote

This was the bit of code i have been looking for! Thanks. It has produced a scroll bar and I wish to remove in, i have one it the main page so there is no reason for this extra one and also i would like to add a black border round it.

Thanks
sticks464



Joined: 31 Dec 2006
Posts: 1122

PostPosted: Thu Feb 14, 2008 4:37 pm     Reply with quote

Instead of setting a fixed height for the div, try setting the line-height for the text
<style type="text/css">
textarea
{
font: 14px arial, verdana, sans-serif;
background-image: url("../picts/shadeform.gif");
text-align: left;
line-height: 14px; /* set pixel spacing between lines */
}
</style>
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial