|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
css problem without DOCTYPE declaration
Hi,
I made an html document, and a css file, works allright, but when i delete the doctype declaration, it's not working correctly anymore -> the body width is gone, and my content is stretched, losing my left and right margins. Code:
body {
font-family: Georgia, "Times New Roman", Times, serif;
color: #666666;
width: 710px;
margin-left: auto;
margin-right: auto;
font-size: 0.9em;
margin-bottom: 3em;
The problem is, that i will use this css file for an xml file, transformed by xslt, and the resulting html file doesn't have a doctype specification, that means i can't seem to add a doc spec and still keep my xslt file valid. any suggestions to solve this problem..? thanks a lot, jarra
__________________
http://www.jarra.nl |
|
#2
|
|||
|
|||
|
my problem turned out to be more xslt related than css related, but i solved it:
changed the declarations of my xslt document: Code:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output doctype-system="/resources/dtd/xhtml1-strict.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" cdata-section-elements="script" indent="yes" method="xml" />
<xsl:output omit-xml-declaration="yes" />
just for your information, jarra Last edited by jarra : April 25th, 2004 at 06:19 PM. Reason: forgot code tags |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > css problem without DOCTYPE declaration |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|