/    Sign up×
Community /Pin to ProfileBookmark

XHTML strict gives 1 problem.

Hi,

The problem isn’t that my page doesn’t validate ( it does, and I was glad when it first did ? ) But when the doctype is xhtml strict the firefox browser does render it a bit different then if it were 4.1.

4.1: [url]http://users.telenet.be/dzandesign/[/url]
xhtml: [url]http://users.telenet.be/dzandesign/indexstrict.html[/url]

You see? There is that little stroke under my header/menu, I wondered if someone could explain me how to get rid of it.

Thx

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@alilgFeb 29.2008 — Hi,

The problem isn't that my page doesn't validate ( it does, and I was glad when it first did ? ) But when the doctype is xhtml strict the firefox browser does render it a bit different then if it were 4.1.

4.1: http://users.telenet.be/dzandesign/

xhtml: http://users.telenet.be/dzandesign/indexstrict.html

You see? There is that little stroke under my header/menu, I wondered if someone could explain me how to get rid of it.

Thx[/QUOTE]

i've see you site document type is
<i>
</i>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"&gt;


when you using of HTML you shouldn't close tags! like this:
<i>
</i>&lt;meta name="author" content="DZanDesign" [COLOR="Red"][B]/[/B][/COLOR]&gt;


i think it better you first change you document type to XHTML first!
Copy linkTweet thisAlerts:
@alilgFeb 29.2008 — look about you menu, i think you can just define a HEIGHT attrible for you menu items to solve the problem!
Copy linkTweet thisAlerts:
@CentauriFeb 29.2008 — This is due to the header image aligning to the text baseline, and leaving a gap at the bottom for text decenders. Setting the image to block display gets rid of that :[CODE]#header_mainPic img {
display: block;
}[/CODE]


This is more the difference between strict and transitional doctypes than between html and xhtml.
Copy linkTweet thisAlerts:
@DzanauthorFeb 29.2008 — Thx for all you responses!

It worked Centauri, thx alot! For the second time ?

You are brilliant ?
×

Success!

Help @Dzan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...