SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    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;
    }

  2. #2
    Put your best practices away. The New Guy's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •