SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Oct 2006
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Firefox cursor bug

    Hi,

    Please try the textarea in this page with Firefox:
    http://azer.kodfabrik.com/textarea_ffbug.html

    Firefox cant display text cursor.How can i solve this problem, here are the codes:

    Code:
    <html>
    <style>
    
    	.a {  position:absolute;  z-index:1; width:400px; height:400px; background:red; overflow:scroll; }
    	textarea { position:absolute; z-index:2; top:20px; left:20px;  width:300px; height:300px; }
    </style>
    <body>
    	<textarea></textarea>
    	<div class="a"></div>
    	
    </body></html>
    p.s.: i know, if textarea used in a div, firefox shows cursor. but it's not a solution.
    Last edited by civciv; May 21, 2007 at 14:02.

  2. #2
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works fine for me with FF 1.5

  3. #3
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd start by choosing a full, complete and valid DOCTYPE to get all the modern browsers (IE 6, IE 7, Firefox, Opera, Konqueror, Safari, etc...) on the same page (as far as rendering rules go). Then go from there.

  4. #4
    SitePoint Wizard drhowarddrfine's Avatar
    Join Date
    Aug 2005
    Posts
    3,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem actually occurs with overflow:scroll but I forgot the story behind it. If you remove that, it should work. I'll try and find my note about it.

    EDIT: Well, I didn't finish what I was writing and can't make too much sense of it. Something about using absolute positioning and overflow where one overlaps the other, which is what is happening in this case. I think they interfere with each others display or whatever.


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
  •