NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page mozilla and IE CSS :(

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-24-2004, 03:40 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: May 2004
Location: Wisconsin, USA
Posts: 3
todd098 is an unknown quantity at this point
 



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
todd098 is offline  
Old 05-26-2004, 02:59 PM   #2 (permalink)
NamePros Member
Join Date: May 2004
Location: Devon, UK
Posts: 76
Spirited is an unknown quantity at this point
 



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)
Spirited is offline  
Old 06-08-2004, 09:01 PM   #3 (permalink)
NamePros Member
 
Cjpixel's Avatar
Join Date: Mar 2004
Location: Cebu City
Posts: 35
Cjpixel is an unknown quantity at this point
 



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.....
Cjpixel is offline  
Old 06-08-2004, 09:15 PM   #4 (permalink)
James
Guest
Posts: n/a
 



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; }
Hiding something from Mozilla is much more difficult as Mozilla is quite caught up with Web standards. If something you are doing isn’t working in Mozilla, odds are you aren’t following standards in the first place though, so that sort of works out in the end.

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>
You can also work around Internet Explorer 5–5.5 by using Tantek Çelik’s Box Model Hack (originally intended to help make CSS layouts consistent from browser to browser when Internet Explorer was messing up the Box Model.
Last edited by James; 06-08-2004 at 09:20 PM.
 
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:54 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger