SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: textareas ruin positioned <div>
-
Apr 4, 2003, 14:47 #1
- Join Date
- Apr 2003
- Location
- cheshire
- Posts
- 1
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
textareas ruin positioned <div>
I have a div that is positioned in the middle of my page.... or at least it WAS !!!
But when i put a textarea inside the div, the absolute positioning (controled by external style sheet) just gave up and died !!!
I've scoured the web forums for an answer, but found none - - hope someone here can help ??
(I'm using IE6)
Here's the code from the .html:
<div class="myCentre">
<h2>Centre</h2>
<textarea cols='30' rows='5.85' name='intro_0' onfocus=blur();>blah blah blah....</textarea>
<p>just normal text stuff....</P>
</div>
and the code from the .css :
.myCentre
{
absolute;
left: 25%;
top: 90px;
width: 50%;
border-style: solid;
border-width: 1px;
border-color: black;
padding-right: 10px;
padding-left: 10px;
padding-bottom: 10px;
padding-top: 10px;
margin: 0px 0px 0px 0px;
background-color: white;
}
-
Apr 4, 2003, 15:09 #2
- Join Date
- Sep 2002
- Location
- Canada
- Posts
- 2,087
- Mentioned
- 1 Post(s)
- Tagged
- 1 Thread(s)
Works for me, the only thing I changed was where you have "absolute;" that should be "position: absolute;"
"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users
Bookmarks