473,813 Members | 3,307 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Style Sheet not showing in IE6


Can someone look at the following page and tell me what I did wrong with
the style sheet linkage, or perhaps the document type declaration? I
had this working properly off of one server, but now that it's on the
new server it seems that IE6 is not pulling the style sheet, whereas
all other browsers I tested this in are showing everything properly:

http://tinyurl.com/ecfpq

I know it must be something basic I'm missing... Thanks in advance for
any help!
--
mfurey
------------------------------------------------------------------------
mfurey's Profile: http://www.highdots.com/forums/m203
View this thread: http://www.highdots.com/forums/t171419

Apr 14 '06 #1
1 1808
mfurey wrote :
Can someone look at the following page and tell me what I did wrong with
the style sheet linkage,
In the stylesheet
http://media.corporate-ir.net/media_...ss/default.css
there is many things wrong.
1- it starts with illegal code such as
default.cssO7ï¿ ½>�`w��c mBIN

2- html {margin: 0; padding: 0;}

html by definition has no margin and no padding in all browsers

3- * html .staticContent {width: 764px; w\idth: 762px;}
using/relying on css hacks is not recommendable and is already no longer
working for most parts in MSIE 7 beta 2

Last year, on october 12th 2005, Microsoft asked web authors to stop
doing that.
Call to action: The demise of CSS hacks and broken pages
Call to action: Please check your pages
http://blogs.msdn.com/ie/archive/2005/10/12/480242.aspx

4-
body {
display:block;
margin: 0;
padding: 0;
background: #fff;
font: 70% verdana, helvetica, sans-serif;
line-height: 200%;
text-align:left;
}
You need to understand what are default css property values of elements
so that you don't over-code, over-define and over-declare unneedlessly.
Here, display:block and text-align:left are useless, unneeded.
font: 70% is awfully small value for body; I would never recommend
smaller than 100% for body.

5-
many things are weird or definitely not recommendable. E.g.
h1 span {
position: absolute;
left:-2000px;
}

Another example: text-indent: -3000px;
Another example: frequent declarations of line-height. I'd stay away
from that kind of css declaration for many reasons I won't explain. For
sure, line-height should be used sparingly and only when necessary.

Generally speaking, your stylesheet over-codes, over-declares,
over-defines. The more complex a stylesheet is, the more nightmare it is
to make it work as intended in all modern browsers.
6- Your stylesheet was not edited in text plain either; that's why you
have illegal characters at the beginning and at the end of the file.
That's probably what triggered you to seek help in this newsgroup. Edit
your stylesheet with a plain text editor.

7- Don't use XHTML 1.0 transitional: use HTML 4.01 strict instead. Using
a transitional DTD to build new documents is nonsense. Using a strict
DTD, you can ensure a clear separation between structure and styling.
or perhaps the document type declaration? I had this working properly off of one server, but now that it's on the
new server it seems that IE6 is not pulling the style sheet, whereas
all other browsers I tested this in are showing everything properly:


Your stylesheet is corrupted by non-ascii characters. Use a plain text
editor to edit your stylesheet.

Gérard
--
remove blah to email me
Apr 14 '06 #2

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

Similar topics

2
2018
by: Mark | last post by:
Hi - I want to allow users of an intranet application, to select their own colours etc. So I have a tbale in my database, which has fields called bgcolour, fontcolour etc. As I want all pages to get the users colours, I have an includes file at the top of each page: <!--#include file="userconfig.asp" --> This is:
3
1673
by: Colin Graham | last post by:
I there i was wondering if someone could help me. i have created a style sheet in asp.net and dragged it onto my screen thus creating my lines of code in the html. I do not however seem to have my style available in my style drop down list. what is the issue ?? thanks in advance
5
2424
by: Cammie Watson | last post by:
We have a web application that incorporates a style sheet, in our local environment (our desktops) the styles are applied correctly. We think. However when we deploy the application to a server, any server, the styles are not applied correctly. Any help would be greatly appreciated.
8
41528
by: pamelafluente | last post by:
Hi guys, Is it possible to add "onload" (via Javascript) a new class to the <styleheader section? If yes, how would that be done ? <style type="text/css" media="screen"> .NewStyleClass{ whatever } </style>
10
2690
by: pamelafluente | last post by:
Hi, this time I am trying to add a style on the fly.I wish equivalency with this one (only the menuItemStyle line): <head> <style type="text/css" media="screen"> ... some static styles ... ..menuItemStyle{ background:#ddeeff;border-width:1px;border-style:inset;font-family:Arial;font-size:11px
1
1400
by: Kat | last post by:
I have a master page, with a reference to a style sheet in the header, as usual: <link href="Styles.css" type="text/css" rel="stylesheet" /> I have a content page, with a label on it: <asp:Label ID="lbl" runat="server" Text="Addresses" CssClass="Heading1"></asp:Label>
12
2603
by: karen987 | last post by:
I have an ASP web page which has a style sheet attached. It is a news page which is added from a separate admin section. The news adding section does have a rich text editor to change text or format it.. My problem is this. The CSS stylesheet is set up to show the body text as below. body,p,td{font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;color: Black} this is fine on most pages, however in the page which has...
4
2406
by: fjm | last post by:
Hello everyone. I’d like to know how to handle multiple style sheets. I have css tabs that have a style sheet and then I also have a separate style sheet for the content that goes inside the tab. The problem I am running into is that the tab style sheet uses attributes in the html and body and so does the content style sheet. Each one is specific to its content. The tab style sheet seems to take precedence over the content style sheet because...
4
5636
Frinavale
by: Frinavale | last post by:
So a while ago I created a Tab Strip Control (before the AjaxToolkit had theirs otherwise I would have probably just used theirs). When I looked at the AjaxToolkit control to see how they got around this problem I discovered that they're using Animations. I don't want to bloat my control with the Ajaxtoolkit's Animation stuff though. I guess I should tell you what the problem is. I have a TabStrip custom control. It's a Table that has...
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10408
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10141
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9225
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5707
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4358
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 we have to send another system
2
3886
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.