You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Brolin Empey <br...@gmail.com> on 2007/10/06 01:17:11 UTC
Linked images within a section impossible with document-v20?
Forresters,
Within a section, is it possible to make an image a link with document-v20?
It seems to be impossible, because img elements cannot be used inside
a section. figure elements can be used inside a section, but not
inside an 'a'.
Is this intentional?
Thanks,
Brolin
Re: Linked images within a section impossible with document-v20?
Posted by Brolin Empey <br...@gmail.com>.
Thanks for the quick reply, Gav. It is still Friday night in British
Columbia. :)
I got confused because the image I wanted to make a link used a
<figure> as an immediate child element of a <section>. I changed the
<figure> to an <img> since only <img> can be used inside an <a>, but,
unlike <figure>, <img> cannot be an immediate child of a <section>. I
never thought of enclosing an <img> in a <p>.
Brolin
RE: Linked images within a section impossible with document-v20?
Posted by "Gav...." <br...@brightontown.com.au>.
> -----Original Message-----
> From: Brolin Empey [mailto:brolin.empey@gmail.com]
> Sent: Saturday, 6 October 2007 7:17 AM
> To: user@forrest.apache.org
> Subject: Linked images within a section impossible with document-v20?
>
> Forresters,
>
> Within a section, is it possible to make an image a link with document-
> v20?
Yes
>
> It seems to be impossible, because img elements cannot be used inside
> a section.
No, but they can be used in <p>, <li>, <a>, <note> etc etc ...
(Check out the DTD at
http://forrest.apache.org/dtdx/document-v20.dtdx.html#a)
figure elements can be used inside a section, but not
> inside an 'a'.
Not sure that figures are supposed to be made into links.
But you can have linked images as normal using img such as
<a href="/index.html"> <img src="../images/icon.png" alt="image" height="22"
width="26"/></a>
.. but put them inside an allowed element such as <p> or <li> ...
Gav...
>
> Is this intentional?
>
> Thanks,
> Brolin
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.487 / Virus Database: 269.13.22 - Release Date: 9/17/2007
> 12:00 AM