473,511 Members | 14,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE and NS with CSS

I am sure that this has been asked before but I still don't have an
answer.
Is there a way to use seperate stylesheets one for IE and one for NS?
When I log into my site with NS the CSS looks different than with IE.
if I change it then it will look bad with IE.
Thanks for any help.
Daniel

Jul 21 '05 #1
4 1380
daniel wrote:
I am sure that this has been asked before but I still don't have an
answer.
Is there a way to use seperate stylesheets one for IE and one for NS?
When I log into my site with NS the CSS looks different than with IE.
if I change it then it will look bad with IE.
Thanks for any help.


I assume that when you say NS, you mean Netscape 7.

The first point you should note is that Netscape 7 uses Mozilla's
browser engine, which generally complies with standards better than IE,
hence if Netscape and IE produce very different results, there is a good
chance that Netscape is doing it right, and IE is doing it wrong.

The second point is that there are two versions of Netscape 7 in common
use today: 7.1 and 7.2. The former uses a much older version of
Mozilla's browser engine, and has bugs (and security issues) that were
fixed in 7.2. This can result in rendering problems in 7.1 that don't
appear with 7.2.

The third point is that both Netscape 7 and IE6 will comply better with
the standards -- and therefore render pages more similarly -- if you use
a DOCTYPE that triggers standards mode.

Finally, I would suggest that you design pages to the standards, testing
initially with Opera and Netscape 7.2 (or Mozilla, or Firefox), and then
find out what tweaks you have to make to get around IE's defects. In
most cases if you design pages to the standards rather than depending on
idiosyncracies of IE, it is possible -- and not at all hard -- to add
tweaks that do NOT require separate stylesheets.
Jul 21 '05 #2
"daniel" wrote in comp.infosystems.www.authoring.stylesheets:
I am sure that this has been asked before but I still don't have an
answer.
If only there were some sort of archive of past newsgroup articles.
:-)
Is there a way to use seperate stylesheets one for IE and one for NS?


Yes, but you don't want to.
--

Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
Jul 21 '05 #3
I am using NS 7 and everything is working.
My problem is simple. I have a banner along the top of the page. I used
"top: 0%" which is fine on IE but on NS it pushes the banner a few
pixels down. To change it I can do "top: -4%" but then on IE the top of
the banner will go of the screen.
Designing with NS and then tweaking in IE is not necessary because
apart from the banner everything works OK and doesn't seem to move.
Obviously there is a simple solution becuase you don't see other sites
with the same problem.
Thanks
Daniel

Jul 21 '05 #4
daniel wrote:
I am using NS 7 and everything is working. My problem is simple. I
have a banner along the top of the page. I used "top: 0%" which is
fine on IE but on NS it pushes the banner a few pixels down. To
change it I can do "top: -4%" but then on IE the top of the banner
will go of the screen.
body, #banner { margin: 0; padding: 0; }

No "top" should be necessary. Make sure you have a proper DOCTYPE, and
use a Strict one for new pages.
http://www.w3.org/QA/2002/04/valid-dtd-list.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Designing with NS and then tweaking in IE is not necessary because
apart from the banner everything works OK and doesn't seem to move.
Obviously there is a simple solution becuase you don't see other
sites with the same problem. Thanks Daniel


Test your pages in Firefox and Opera, then in IE. Next time, post a
URL to your page.

--
-bts
-This space intentionally left blank.
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
11179
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
5774
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
22957
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
8434
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.