5 replies [Last post]
k_anafor
Offline
newbie
Last seen: 13 years 46 weeks ago
Joined: 2006-12-31
Posts: 4
Points: 0

Hi all,

Here you ll find a draft design with two (header and text img) images.

The space between header picture and text img is around 5px with Firefox while it is 0 with IE. Does anyone know the answer of that question why that difference is?

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 46 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

img{display:block}

img{display:block}

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

k_anafor
Offline
newbie
Last seen: 13 years 46 weeks ago
Joined: 2006-12-31
Posts: 4
Points: 0

wow, I just asked my

wow, I just asked my question and answer came so fast...

I appreciate that Hugo. Thanks for the answer.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 46 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Not a problem,

Not a problem, vertical-align:bottom would also have done the trick.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

waplespunk
Offline
newbie
Last seen: 13 years 41 weeks ago
Joined: 2007-01-15
Posts: 7
Points: 0

In the Doctype article,

In the Doctype article, there is a section that lists several different doctypes. How would one know which to use? Or do we actually use all of them? And it goes on every page, right?

from article:
DOCTYPES THAT WORK
So what DOCTYPEs should we use? Glad you asked. The following complete DOCTYPEs are the ones we need:

HTML 4.01 Strict, Transitional, Frameset




XHTML 1.0 Strict, Transitional, Frameset




XHTML 1.1 DTD

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 46 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

There are only two choices

There are only two choices for coding new pages, that is pages that are not being transitioned from old tag soup style code towards a semblance of standards, both of which use the 'Strict' definition.

You may choose to use either HTML 4.01 or XHTML 1.0 either is perfectly valid, select one or the other then ensure that it appears once on each and every page at the very start of the file.

Of course I omit mention of 'Frameset' but then that has had it's day!

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me