cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

setting DOCTYPE declaration

Former Member
0 Likes
1,776

I need a DOCTYPE declaration at the top of a portal component's html output in order to make some CSS features work. If you don't know what I am talking about, its a declaration of the type

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

at the top of an html page.

Does anyone know where to set this and on what level.

I noticed the html of SDN does have the DOCTYPE declaration, but our own portal doesn't seem to produce this DOCTYPE declaration.

View Entire Topic
anton_malan
Discoverer
0 Likes

Hallo Theo

I had a look at the example in the A list apart article. I saved the html and css files locally and removed the DOCTYPE declaration and the xml namespace declaration from the html element. I checked the result in Firefox, IE6, IE5.5 and IE5.1, but there was no difference to the layout with the declaration.

You're welcome to e-mail me an example of your HTML mockup and the css and I could look at it.

Regards

Anton

0 Likes

Just to add my little pennys worth. We had a major problem with adding the DOCTYPE statement to the top of the SDN site. With the portal there are severe problems with some of the javascript objects when setting the DOCTYPE to be strict XHTML, and you will probably find a blank square window in the top left of the screen. I believe that this is an iframe that is used to display soem of the messages within the portal which is normally only displayed when certain events happen. However, when setting the doctype to XHTML I found that the iframe was displayed in the top left and without changing the standard javascript of the portal I couldn't get rid of this.

Also, as a side note, there are major differences in CSS when using strict or querks mode of the browsers. Obviously there are ways of getting around this, but it is a painful process.

Email me if you would like me to explain how we managed to get this doctype into the browser.

D