|
Posted by Adrienne Boswell on 05/23/07 07:34
Gazing into my crystal ball I observed Mohawk Mawk
<blessblessbless@gmail.com> writing in
news:1179903556.150858.184810@m36g2000hse.googlegroups.com:
I can't pass this up, folks!
> I can't pass the W3C Validation because it wants to compromise my
> sites functionality.
I don't think the validator wants to compromise your site's
functionality, unless there's some conspiracy no one let me in on.
> Here is the problem
> Site: http://bjorntoday.com/?page=Imprint&lang=E
> Validation:
> http://validator.w3.org/check?uri=http%3A%2F%2Fbjorntoday.com%2F%3Fpage
> %3DImprint%26lang%3DE&charset=%28detect+automatically%29&doctype=Inline
> I have 9 errors
> one is the <marquee> Tag error, never mind that.
I hope you're getting rid of that. If the information is imporant, why
would you want visitors have to wait for the message to come back round?
Marquees and other moving text are distracting for the user and a PITA.
> the other 8 are due to the fact that a <div>, can't be in the <a>
> tag??
> whats up with that?
An inline element cannot contain a block element. Simple.
> the reason i need the <div> tag to be in <a> is so that i can click
> the div to open a url.
What's wrong with clicking on the a element itself? That's what it's
there for.
> e.g.
> See the flags on top of the page? The British and the German.
> This is the HTML
> <a href="?page=Imprint&lang=E"><div id="langE"><span>English</span></
> div></a>
> This is the CSS
> #langE{
> background: transparent url(images/e.jpg) no-repeat top left;
> width: 30px;
> height: 15px;
> }
> #langE span{display:none;}
Then style the a element itself. Don't put an unnecessary element in
there. What? Do you have Divitis?
>
> Now i know i could just insert an <img> tag but I won't do that
> because the site must be visually changeable via css.
>
> Other problem are the rollover buttons.
><a href="?page=GuestBook&lang=E"><div class="link">Guestbook</
> div></a>
> the <div> is there so the surface around the actual text is clickable.
Style the a element.
>
> Is there hope for me? or will the page just never pass? (excluding the
> marquee tag)
>
I think you need to get to the nearest ER because you definately have
Divitis. There is a cure - use semantic markup.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Navigation:
[Reply to this message]
|