![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3
![]() |
Render a div smaller than it's contents?
I have a page where I'm trying to allow the user to draw a box, creating a dynamically sized div. The interface consists of clicking at the coordinates for one corner, then for the opposite corner. This allows for a box with an height and/or width of 0, which is fine with me. My problem is that the box has some text in it (instructions, really), and IE (6) refuses to let the div be smaller than the space needed to enclose the instructions. Opera (9) will render it with a width down to 0, but doesnt let the height go smaller than the instructions (two lines in this case). Firefox works great.
I'm doing the resizing with JavaScript, but it's mostly manipulating the CSS. Is there a way around this problem, or do I need to keep the text out of the div? If code would help, I can post it, but I didn't want to hunt down everything (from the .js and the Smarty template) if I don't have to :p |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| viewing contents of array | RemoteC2 | C++ | 6 | Aug 13th, 2006 10:46 PM |
| Using sys/stat.h and listing directory contents in C... | smoothdogg00 | C | 3 | Mar 14th, 2006 12:30 AM |
| Displaying contents of an array | Wizard1988 | Assembly | 3 | Oct 12th, 2005 10:15 PM |
| Capturing the contents of a print request from another program | faLLeN | Visual Basic | 1 | Mar 8th, 2005 2:25 AM |
| opening and modifying contents of war file | jayanthony | Bash / Shell Scripting | 1 | Feb 27th, 2005 5:36 PM |