Page 1 of 1
<!DOCTYPE HTML PUBLIC
Posted: Thu Dec 08, 2005 1:57 pm
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
Re: <!DOCTYPE HTML PUBLIC
Posted: Thu Dec 08, 2005 3:26 pm
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">
Re: <!DOCTYPE HTML PUBLIC
Posted: Thu Dec 08, 2005 3:46 pm
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
Re: <!DOCTYPE HTML PUBLIC
Posted: Thu Dec 08, 2005 3:55 pm
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.
Re: <!DOCTYPE HTML PUBLIC
Posted: Fri Dec 09, 2005 11:26 am
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