I need someone to explain to me where this extra padding is coming from on divs that contain img elements.
You can go to http://www.dev12.com/CSSTest for live examples of my two problems.
Problem #1:
Safari, Firefox and Opera render roughly 6 pixels of unwanted bottom padding on the container div. It does not matter if I explicitly se...
I know this page is a mash of different things and breaks many rules but it's a short term solution till the new quiz system is made. I did this quiz system on another site and it worked but when bringing it over to this site FF3 (maybe others) have stopped submitting the code. I have since worked out it's because of the doctype.
Can any...
I am transforming XHTML to XHTML using XSLT and Doctype part is giving me problem
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="LimeSurvey.xslt"?>
<!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.or...
I would like to place a comment (<!-- this --> style) at the very top of my HTML, preceding the DOCTYPE declaration. Does the standard allow this? Is it supported by the major browsers? Are there any pitfalls in doing this?
...
I often run across developers that insist on using the XHTML doctype and when I ask why they common response is that its "machine readable". Once the project is underway the markup does not validate.
Now that their markup does not validate...is machine readability valid anymore?
I assume that if it does not validate it can't be process...
I want to add doctypes to my XML documents that I'm generating with LXML's etree.
However I cannot figure out how to add a doctype. Hardcoding and concating the string is not an option.
I was expecting something along the lines of how PI's are added in etree:
pi = etree.PI(...)
doc.addprevious(pi)
But it's not working for me. How ...
Is there any relation between doctype of an HTML document and browser rendering speed?
If yes then which one is fastest?
...
I'm gleaning from this question [http://stackoverflow.com/questions/599334/facebook-connect-wont-validate] that using Facebook Connect and other facebook 'social widgets' just doesn't result in a 'valid' document.
Concerning (X)HTML5, however, what would be the (most) appropriate doctype/header if I want to include Facebook Connect con...
Hi there guys.
I've been searching the net hard for some javascript code that allows me to automatically scroll images non-stop horizontally on a webpage. After a long time searching, I finally came across something that was close enough. I then customised it as much as possible to make it do exactly what I wanted it to do.
This testi...
I am using the JavaScript onmouseover event for the menu on my website, but it does not work in firefox when I declare a doctype. And if i don't declare a doctype IE displays the page wrong. Here is the method that I used.
loadImage1 = new Image();
loadImage1.src = "http://broken.gif";
staticImage1 = new Image();
staticImage1.src = "ht...
Ok strange behavior when it should work:
The problem is if I don't declare a doctype the CSS works in IE 6 & 7 but if I declare the DOCTYPE it doesn't work. Why???
jQuery:
$('tr:first-child').children().css({
'width': settings.minWidth + 'px',
'height': settings.tableHeaderHeight + 'px',
'overflow': 'hidden',
'white-space'...
I have a feeling I'm being thick, but here's my problem:
I'm creating dynamic XML trees using PHP. These trees describe employee hierarchies, file directories, etc. They comprise small sections of content on a webpage. The rest of the webpage is glued together from various other sources that may be SQL based, or static text or some s...
I know the purpose of DOCTYPE (and what each url/identifier on the line is) as far as web standards and page validation goes, but I am unsure about what it actually "is" in the context of an XML document.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dt...
I have a Document class that is responsible for holding the document that will eventually be gzipped and then printed onto the page. In that Document holds the document's DocType. The Problem I am facing is how to correctly implement displaying the Doctype.
For example: I could create an array of popular Doctypes that are the most frequ...
I have been searching for a while for a DOCTYPE tag that will make internet explorer standards-compliant for css with a normal xml document, as I want to use the white-space css attribute. This page states that using the "doctype 'XML'" should be enough for internet explorer 6+ to come through - But I have tried every DOCTYPE tag I could...
I've been seeing some conflicting information that an XHTML document must also declare itself as XML.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
However, in other places I'm seeing (including w3.org) that the DOCTY...
Ok, don't get me wrong, I absolutely love the idea of web standards... wrote and validated a number of pages with strict XHTML 1.0 - however, the web is evolving... and the more I use XML, realize the capacity of the DOM, and realize most browsers don't care one way or the other, the more I realize I realize I just want to break conventi...
Given a large legacy project utilizing ASP.NET, javascript, css, etc, technologies, I was wondering if changing the DOCTYPE of the web pages, say, from HTML 4.0 Transitional to XHTML 1.0 Transitional (or the other way around) in any way could break the javascript functions of the web pages.
There are plenty of articles and discussions a...
I have an existing XDocument object that I would like to add an XML doctype to. For example:
XDocument doc = XDocument.Parse("<a>test</a>");
I can create an XDocumentType using:
XDocumentType doctype = new XDocumentType("a", "-//TEST//", "test.dtd", "");
But how do I apply that to the existing XDocument?
...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
</head>
<body>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="right" colspan="5">
<span class="validationIn...