By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,445 Members | 1,159 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,445 IT Pros & Developers. It's quick & easy.

Strict vs Transitional XHTML doctype and images

P: n/a
I like making pages with the XHTML strict doctype.
So I was building a page where I have two images that need to be next
to each other, one on top of the other, so the colors match up. In
Firefox 2 and Opera 9 there was always a space in between. But not in
IE7. You can see the effect at http://members.cox.net/desertprince/
Strict.html.

If I change the doctype from strict XHTML to transitional XHTML the
problem goes away. You can see it at http://members.cox.net/
desertprince/Trans.html.

These pages are exactly the same except for the Doctype. They both
validate as XHTML.

What in the Hxxx is going on here?

Rick

Jan 30 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
DesertPrince wrote:
What in the Hxxx is going on here?
What happens if you set the images to vertical-align:bottom or
display:block?

--
K A Nuttall
www.yammer.co.uk
Re-type the e-mail address how it sounds, remove .invalid
Jan 30 '07 #2

P: n/a
On Jan 30, 3:32 pm, "DesertPrince" <rickywa...@hotmail.comwrote:
I like making pages with the XHTML strict doctype.
So I was building a page where I have two images that need to be next
to each other, one on top of the other, so the colors match up. In
Firefox 2 and Opera 9 there was always a space in between. But not in
IE7. You can see the effect athttp://members.cox.net/desertprince/
Strict.html.

If I change the doctype from strict XHTML to transitional XHTML the
problem goes away. You can see it athttp://members.cox.net/
desertprince/Trans.html.

These pages are exactly the same except for the Doctype. They both
validate as XHTML.

What in the Hxxx is going on here?

Rick
never mind. I found a 4 year old article by Eric Meyer that discusses
and solves (sorta) the problem.

Jan 30 '07 #3

P: n/a
On Jan 30, 3:32 pm, "DesertPrince" <rickywa...@hotmail.comwrote:
I like making pages with the XHTML strict doctype.
So I was building a page where I have two images that need to be next
to each other, one on top of the other, so the colors match up. In
Firefox 2 and Opera 9 there was always a space in between. But not in
IE7. You can see the effect athttp://members.cox.net/desertprince/
Strict.html.

If I change the doctype from strict XHTML to transitional XHTML the
problem goes away. You can see it athttp://members.cox.net/
desertprince/Trans.html.

These pages are exactly the same except for the Doctype. They both
validate as XHTML.

What in the Hxxx is going on here?

Rick
But what I really want to know is why?
Why is there this difference between xhtml transitional and xhtml
strict?
IMHO there should not be, but then I'm just me. ;-)

Jan 31 '07 #4

P: n/a
On 31 Jan, 16:01, "DesertPrince" <rickywa...@hotmail.comwrote:
But what I really want to know is why?
Why is there this difference between xhtml transitional and xhtml
strict?
Maybe if you told us the URL to the Meyer article, we'd be able to
tell you

Jan 31 '07 #5

P: n/a
DesertPrince wrote:
Why is there this difference between xhtml transitional and xhtml
strict?
Because that issue lead to almost standards compliant mode and standards
compliant mode in Mozilla

<http://developer.mozilla.org/en/docs/Gecko%27s_%22Almost_Standards%22_Mode>
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jan 31 '07 #6

P: n/a
Gazing into my crystal ball I observed "DesertPrince" <rickywalt1
@hotmail.comwriting in news:1170259314.133824.304990
@k78g2000cwa.googlegroups.com:
Why is there this difference between xhtml transitional and xhtml
strict?
IMHO there should not be, but then I'm just me. ;-)
The difference between transitional and strict is mostly presentational
elements and attributes. Strict should be used for new pages. Transitional
is for pages that - uh - just can't make it, or are not ready yet.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jan 31 '07 #7

P: n/a
On 31 Jan, 22:38, Adrienne Boswell <arb...@yahoo.comwrote:
The difference between transitional and strict is mostly presentational
elements and attributes. Strict should be used for new pages. Transitional
is for pages that - uh - just can't make it, or are not ready yet.
Transitional is only appropriate to use in circumstances that are even
narrower than that -- pages that aren't Strict but they _are_ already
well-authored and valid as Transitional, i.e. basically a valid Strict
page anyway with a few <fontdropped in.

If your pages are typical legacy tag-soup, then Transitional is no
more appropriate for them than Strict is. It's no more relaxed about
mis-use of syntax, nor about most of the gross mis-uses of core HTML
tags. In this case you might as well label it under a Strict doctype
and start working from that situation -- at least you're already
working under the best choice of doctype.

Feb 1 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.