![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
All i want to do is draw a simple rectangle. The rectangle has to be the same size in IE and Firefox. |
|
This is how I tried: div style="position: absolute; z-index: 1; width: 438; height: ^^^ 318; top: 77; left: 200; padding: 0; border: red 1px solid;"></div ^^^ ^^ ^^^ |
#3
| |||
| |||
|
|
OBAFGKM_... (AT) yahoo (DOT) com wrote: All i want to do is draw a simple rectangle. The rectangle has to be the same size in IE and Firefox. URL? What's your doctype? I could make a difference... This is how I tried: div style="position: absolute; z-index: 1; width: 438; height: ^^^> 318; top: 77; left: 200; padding: 0; border: red 1px solid;"></div ^^^ ^^ ^^^ Well your try was not good enough. 438 what? Pixels, feet, parsecs (real bigums)? With CSS lengths!=0 require* units specified. (*just a couple of exceptions) -- Take care, Jonathan ------------------- LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com |
#4
| |||
| |||
|
|
Sorry about the top posting. I never knew that people actually preferred scrolling thru old text to get to the new stuff. I thought i was making it easier to read. |
#5
| ||||
| ||||
|
|
Sorry about the top posting. I never knew that people actually preferred scrolling thru old text to get to the new stuff. I thought i was making it easier to read. |
|
Anyway, all is working fine now. I also didnt realize before last night that adding the doctype to the head of the file actually prevents bugs in IE. This maybe could have saved me many hours of torture in the past. |
|
There are no errors in my markup. The problem is still, as i've stated a few times now, that IE by default, draws a div border INSIDE the div. Firefox draws it around the outside. |
|
As far as not specifying pixels. Anytime that i've created a div, and not specified units, 100% of the time it created it using pixels. If i create a div like this: <div style="with: 200; height: 300;...>, every time a div 200px x 300px will be created. Maybe i've just been lucky. |
![]() |
| Thread Tools | |
| Display Modes | |
| |