<!DOCTYPE HTML PUBLIC

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Pj

<!DOCTYPE HTML PUBLIC

Post by Pj »

Hi,

this might not be an cmsms issue but I have the following problem,
When putting

in the template, my original style with spacing and whatever disappears.
So I just leave it out. But is there a disadvantage?


Thanks
Pj
westis

Re: <!DOCTYPE HTML PUBLIC

Post by westis »

What's your url?

You should have a doctype declaration, so that the browser knows how to interpret your code (the layout engine attempts to render conforming pages according the CSS and HTML recommendations). But it should not be loose (mistake in one of the default templates), rather transitional or if you're an xhtml compliance purist, strict.

Does it make any difference if you instead put this?

Code: Select all

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Pj

Re: <!DOCTYPE HTML PUBLIC

Post by Pj »

Hi Westis,

we meet again ;-)

The url is not public yet, I am working on a testsite.
Right now I have made it to
Nothing more or less.
That works.
I tried your suggestion, and especially the letterspacing won't show up.
This is my styleclass:
.kop
{
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 14px;
color: white;
font-weight: bold;
letter-spacing: 10;
text-align: center;
margin-top: 50px;
}


For now all browsers seems to be able to understand it. So unless you or anyone finds a working doctype I just leave it.



Thank you!

Pj
westis

Re: <!DOCTYPE HTML PUBLIC

Post by westis »

Pj wrote: Hi Westis,

we meet again ;-)
I'm all over the place... ;)

It seems that you haven't specified the unit for the letter-spacing. Try letter-spacing: 10px; and see if that works.
Pj

Re: <!DOCTYPE HTML PUBLIC

Post by Pj »

Hi Westis,


That worked!
I just looked to long at the screen, so it didn't occur to me.
But that was the trick!



Thanx

Pj
Locked

Return to “CMSMS Core”