What did I do??? (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


GMisner -> What did I do??? (9/19/2005 17:26:46)

www.troop254. com

The site now works fine in Firefox but IE and FP do not seem to recognize my style sheet.

Any Ideas???




womble -> RE: What did I do??? (9/19/2005 17:45:15)

I'm not sure, but it could be because you're missing the final backslash from the stylesheet link, e.g.
<link type="text/css" rel="stylesheet" href="../text/CSS_245.css" /> (don't know, that's a pure guess)
Another problem you have is that you haven't got a DOCTYPE in there which is throwing IE into 'quirks mode', which could be causing you some problems. You can find information from the W3C on doctypes here.
That may help.
Also, your calendar's showing up in IE, but not in FF - not sure why. You've also got a ';' missing off the end of   in '245 permissions' .




GMisner -> RE: What did I do??? (9/19/2005 18:24:32)

Womble,

A couple questions on Doctype

1. Does a Doctype entry belong at the top of each page.
2. How do you choose a doctype ???

I tried the / on the link but no help.

This used to work so.... I am really confused.[sm=fie.gif]




womble -> RE: What did I do??? (9/19/2005 18:52:48)

Sorry, I just realised that I didn't actually finish typing that post before I pressed 'submit' - oops!

Yes, the doctype goes at the top of each page; it has to be the first thing in the code, above the <html> tag.

There's a doctype for each version of html - one for and transitional (which allows the use of depreciated elements), strict, and frameset.

You'll need the frameset DTD (doctype declaration) as you're using frames on your site. Just paste in the following above the <html>:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">


Using a doctype will generally help browsers to render your site correctly.

On the stylesheet issue, it's just hit me that you're using frames [img]http://www.ecanus.net/forumsmiles/duh.gif[/img] (getting late here and my brain's had an early night I think [:D]) - I think you'll need to include the stylesheet link on each frame of the site to get it to apply to that frame (I think - I don't use frames so I can't say with any certainly, but you could try it on one or two and see what happens), though I just had a look at your code again and it seems to have disappeared from all of them now!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875