Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Writers > Re: HTML valida...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 287 of 330
Post > Topic >>

Re: HTML validation issues.

by "Integrated Development Solutions" <info@[EMAIL PROTECTED] Aug 3, 2006 at 04:47 PM

Well because the div is just an image. And I thought you could just use
that 
image to be a linkwhich would then be ignored by browsers that dont
support 
style sheets.
Obviously this does not.

Thankyou.

"Adrienne Boswell" <arbpen@[EMAIL PROTECTED]
> wrote in message 
news:Xns9812D4183125Farbpenyahoocom@[EMAIL PROTECTED]
> Gazing into my crystal ball I observed "John Swan"
> <j.a.swan123@[EMAIL PROTECTED]
> writing in
> news:lMnzg.2841$t%.980@[EMAIL PROTECTED]
>
>> Hello.
>>
>> I have created a website which does not seem to validate correctly. I
>> am only getting one error but to rectify this issue would result in
>> part of the site not working.
>>
>> Basically I have a div which is nested inside a link. When the
>> validator parses this it throws an error, having tried different
>> combinations that does not work. Please check out the other pages on
>> the site to see what I mean (any opinions would be appreciated :) )
>>
>> I know there is a easy fix which would be to include the image in the
>> <a> but that would defeat the point of style sheets and make mobile
>> users of limited browsers download a big image that would take time
>> and look even worse.
>>
>>
>> Please check out www.integrated-dev-sol.co.uk/index.html for more info
>> or simply click upon the following link:
>> http://validator.w3.org
>>  and enter the above url.
>>
>>
>>
>
> Why would you nest a div inside of a link - DIV is a block level
element,
> A is inline and cannot contain block level elements.
>
> If you want A to show as blocklevel, the use CSS to do so.
>
> As to your problem with the image, you could do this:
>
> @[EMAIL PROTECTED]
 screen {
> img.bigimg {display:inline}
> }
> @[EMAIL PROTECTED]
 handheld {
> img.bigimg {display:none}
> }
>
> <a href="page.html"><img src="bigimg.jpg" class="bigimg" alt="Large
> image" height="500" width="500"></a>
>
>
>
> -- 
> Adrienne Boswell at Home
> Arbpen Web Site Design Services
> http://www.cavalcade-of-coding.info
> Please respond to the group so others can share
>




 3 Posts in Topic:
HTML validation issues.
"John Swan" <  2006-07-31 13:41:37 
Re: HTML validation issues.
Adrienne Boswell <arbp  2006-08-02 03:51:00 
Re: HTML validation issues.
"Integrated Developm  2006-08-03 16:47:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 19:11:05 CDT 2008.