| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| New Member | mozilla and IE CSS :( I am making a site using CSS. When I get the spacing right for mozilla it is screwed up for IE. Is there some way to fix this so it looks the same for both? Can I put something in my code which has two parts one with spacing for mozilla and one with spacing for IE? Thanks!
__________________ http://www.ppbt.net |
| |
| | #2 (permalink) |
| NamePros Member | I think you'll have to explain a little more what you are trying to do, and maybe give us a link so we can see how you are doing it. There are quite a few workarounds about for coping with IE's interpretation of W3C's CSS. Other than that I'm afraid its just a case of fiddling till it looks good in both browsers (even if one isn't just how you intended) |
| |
| | #3 (permalink) |
| NamePros Member | HI! I am sorry that I can not present you with an answer because I am a beginer with CSS. Instead I would pose another question. Are there CSS codes that won't work in Mozilla and I.E. ? I know that HTML has few that won't function on Netscape Navigator.
__________________ How would my life be without you? Where would I be without you..... |
| |
| | #4 (permalink) |
| Guest | You can hide CSS from Internet Explorer (Windows), but still show it to the newer builds of Mozilla (and all members of the Mozilla project), Safari, and Opera, by using child selectors. Code: /* Internet Explorer will see this.
Note: Older CSS enabled browsers, such as Netscape 4.7,
will see this unless it is imported as shown below. */
p { width: 100px; }
/* The others will see this, ignoring the style above */
body>p { width: 120px; }
You can hide code from browsers prior to 5.x by importing them via include. Code: <style type="text/css" media="screen">
<!--
@import "foo.css";
-->
</style>
Last edited by James; 06-08-2004 at 08:20 PM. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |