Jump to content

Probs with Doctype Declaration


Switch0r

Recommended Posts

When putting the HTML 4.01 Transitional doctype on my page:
[code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">[/code]

all my paragraph tags get an equal height (in font size) gap above and below all elements???

it only causes a problem in firefox and opera, makes no difference either way in IE. taking the doctype out of the page fixes everything in firefox and opera tho...anyone got any ideas?

Cheers :)
Link to comment
https://forums.phpfreaks.com/topic/18791-probs-with-doctype-declaration/
Share on other sites

here is an example to show what i mean

http://www.joncoope.homecall.co.uk/doctype_off.jpg
http://www.joncoope.homecall.co.uk/doctype_on.jpg

the edge of the image is where the edge of the table cell is.

no changes to the page/css made, just adding the doctype
This is becuase when you add a doctype the browser goes in to standards mode. Meaning it follows the standards set by W3C with the doctype you are using.

What it appears to be is it adding extra padding in the black box. Could you post a live example of the webpage.
not easily, its all on my local server with db gubbins goin on...and ive only got my free isp webspace atm :(

is there anything i can put in my css file to control the margin/line height or something?

http://joncoope.homecall.co.uk/problem.css

this is what i got so far

update: http://joncoope.homecall.co.uk/test.html

any ideas?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.