 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
sono
Joined: 14 Feb 2008 Posts: 1
|
Posted: Thu Feb 14, 2008 3:13 am How to ENLARGE the HEIGHT in a CSS style sheet? |
|
|
|
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
|
Posted: Thu Feb 14, 2008 9:39 am |
|
|
|
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
|
Posted: Thu Feb 14, 2008 11:32 am |
|
|
|
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
|
Posted: Thu Feb 14, 2008 4:37 pm |
|
|
|
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> |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|
|