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
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
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.