|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Hi there, I just read some articles here on devarticles and fell in love with the div/css technique
![]() Now I got the following problem (see the attached Screenshots) div1 is Firefox 1.0 div2 is IE 6.x The css code looks like that: PHP Code:
PHP Code:
Now how can I manage it to look simliar on IE and Firefox? I'd appreciate any help! Thanks for your time. |
|
#2
|
||||
|
||||
|
Which one is the correct one?
Which one did you intend it to look like? |
|
#3
|
|||
|
|||
|
It should look on both browsers like on div2.png (IE). I know how to do it so it fits on Firefox but then IE is screwed..
|
|
#4
|
||||
|
||||
|
Wait, i pasted your code into its own file on my hard drive...
both browsers look the same... Refer to my screen shot and the exact (unmanipulated) code I used... Is there something you did to the code you posted after you made your screen shots? |
|
#5
|
|||
|
|||
|
No it's not the same
![]() Check the distance between those 2 boxes on IE and then on Firefox. You'll notice that the distance on Firefox is much bigger than on IE.. |
|
#6
|
|||
|
|||
|
(I'm a bit pressed for time so I'll make this short and sweet)
What doctype are you using? And which version of IE? I tested using the STRICT doctype and IE 6.0. I see the code uses margins on floats. While I can't remember off the top of my head, I think margins work differently on floats than on other elements. You might wanna look that up. It may just be that IE isn't interpreting the CSS properly, and I vaguely remember an article on positioniseverything.net that made references to and IE bug where floats that were positioned twice as fas as the coder intended. This may be your problem. I removed the margin-left from the left float and the marin-right from the right float and the layout looks the same on both browsers. I have a feeling that the issue is the IE bug documented by PIE.net. Check the site and read up the article |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Development > How to make this compatible to Firefox AND IE? (div/css) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|