Hi!
I'm having two separate issues:
1. When I use the doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> everything works just fine.
If I try and and use the doctype: <!DOCTYPE HTML> my page blows up. Why is that?
2. The second problem I'm having is that for some of my sites when I use the link: <link rel="stylesheet" href="style/style.css" type="text/css">
the editor displays the correct fonts and is obviously talking to the style sheet correctly. But for other sites using the exact same code with the .css file in the exact same location it can't seem to find the style sheet and it displays default fonts making my site look horrible.
The only work around I've found it to use two style sheet links like this: <link rel="stylesheet" href="style/style.css" type="text/css">
<link href="style/style.css" rel="stylesheet" type="text/css"/> then and only then will the editor find the style sheet and display correctly. Why is this? Why does using the regular one link to my .css file work sometimes and other time the editor can't find it? Everything is identical: location, spelling, lower case, name of the file, everything.
Any help you can give me with the above two issues would be really appreciated! Thank you!
Hilary
DocTypes and CSS Sheets
It will be difficult to answer your questions without being able to see the site. Html5 (with the <!DOCTYPE HTML>) should be backwards compatible with earlier versions of html. Could you please let us have the url to your site, and also, if you could upload a version using the html5 doctype, so that we can see what happens, then it would be easier to give you a qualified reply.
Also that issue with the style sheet is weird, and we would need to see it. It shouldn't make any difference in what sequence you write the details.
Also that issue with the style sheet is weird, and we would need to see it. It shouldn't make any difference in what sequence you write the details.
Ha en riktig god dag!
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.