a very basic question:
When I include the DOCTYPE at the beginning of my .html document:
<!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">
It messes only a small part styling of the page.
Here you can see a live example:
Without DOCTYPE (Right) – With DOCTYPE (Wrong)
I think I kind of “know the answer”, (besides that the HTML and CSS seems to be written by a smart chimp), the problem seems to be that some of the elements of the CSS I’m using are not part of the standards of the DOCTYPE I’m using and because of this, some parts are not loaded (in plain English).
That’s just me guessing but if this is the case, I would like to know which elements am I using that I should´t and (if specific enough) a “general guide” as to how should they be used.
Thanks in advance!
Try adding px after the 700 in your body style (and everywhere you specify a width in css)
The reason for this is that adding a doctype puts the browser into standards mode (a good thing). You should run your css through a validator to catch errors you get in standards mode.