Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   General Discussions (http://forums.winamp.com/forumdisplay.php?f=1)
-   -   Question about textarea in a table (http://forums.winamp.com/showthread.php?t=331146)

Joel 1st June 2011 18:25

Question about textarea in a table
 
Is it possible to the textarea use all the space available in a table celll?
Even is resize, update, etc.

Thanks!

Widdykats 1st June 2011 18:57

^ Sorry, Joel, but do you mean in an Excel?:confused:

QOAL 1st June 2011 19:17

I think he means HTML.

But... can I ask why you're wanting to put a textarea in a table?

I have just tried with pure css, but I had no luck (I'll be a bit miffed if you can't); it's certainly doable with Javascript though.

cooky560 1st June 2011 21:37

He might need it for laying out a form QOAL?

Joel 1st June 2011 23:08

Quote:

Originally Posted by Widdykats (Post 2777395)
^ Sorry, Joel, but do you mean in an Excel?:confused:

yup, sorry widdy is for a html page I'm working at, here is part of the code:
code:

<tr>
<td>Calificaci&oacute;n</td>
<td>Frecuencia</td>
<td rowspan="7"><textarea name="objSalida" cols="2" rows="2"></textarea></td>
</tr>


see the rowspan? I need the textarea to fill the spaces of the cell...

Widdykats 1st June 2011 23:17

Me
v
v

*somone smart will be along, directly!:D

QOAL 2nd June 2011 10:52

code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=99" />
<title>tabel/textarea</title>
<style type="text/css">
table {
background: #d0f0d0;
}
#objSalida {
background: #f0d0d0;
padding:0 2px 0 0;
height: 100px; /* set the start height of the cell, a height is needed for this to work */
}
textarea {
min-width: 100%;
min-height: 100%;
width: 100%;
height: 100%;
display: block;
margin: auto;
padding: 0;
}
</style>
</head>
<body>
<table border="1" style="background-color:#FFFFCC">
<tr>
<td>Calificaci&oacute;n</td>
<td>Frecuencia</td>
<td rowspan="7" id="objSalidaHost"><textarea name="objSalida" cols="2" rows="2"></textarea></td>
</tr>
</table>
</body>
</html>


Something like that?
It should be some help at least.

Widdykats 2nd June 2011 11:47

^ He's http://img138.imageshack.us/img138/8398/thing5cape.png*Superhero Outfit*:D:up:

Joel 2nd June 2011 15:10

@QOAL: Thanks it helps:
code:

textarea
{
display: block;
width: 100%;
height: 100%;
margin: auto;
padding: 0;
}


:)

rockouthippie 3rd June 2011 21:35

Tables have padding and spacing you can set. It's not zero by defauit. Sometimes you feel like a style sheet.....


All times are GMT. The time now is 21:12.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.