This email is to be read subject to the disclaimer below.
Hi Miles,
You might need to use a span instead of a div and redefine it to be block
level using display: block. I haven't tested this but as far as I can
remember the HTML spec does not allow block level elements inside an anchor
(<a>) tag.
Cheers,
Mark Lynch
Development Manager - Business Innovation Online
Ernst & Young - Australia
http://www.eyware.com/
http://www.eyonline.com/
Direct: +612 9248 4038
Fax: +612 9248 4073
Mobile: +61 421 050 695
"Miles Tillinger"
<[EMAIL PROTECTED] To: <[EMAIL PROTECTED]>
onau.edu.au> cc:
Subject: RE: [WSG] Re: Image float
and text wrap [Virus checkedAU]
13/11/2003 11:39 AM
Please respond to
wsg
Thanks, that achieves the effect I'm after,
but
The reason I wanted to do it was because the image and the text both linked
to the same URL with an <a> tag each (in separate cells of a table). I
wanted to combine them so they were both wrapped in the one <a> tag, but
when the <a> tag is wrapped around both div's clicking the image doesn't
open the URL.
So the solution defeats its own purpose :( Any ideas?
-----Original Message-----
From: James Ellis [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 10:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [WSG] Re: Image float and text wrap
Miles :
Put your text in in a block set its margin-left to x pixels (.eg 170)
should be wider than the image (.eg 160).. The margin will run from
the left of the containing block.
This will work for fixed width images.
Cheers
James
Miles Tillinger wrote:
>Oops, my fingers slipped onto the send shortcut... so, as I was saying:
>
>
> ------------- text text text
> | | text text text
> | | text text text
> | | text text text
> | image | text text text
> | | text text text
> | | text text text
> | | text text text
> ------------- text text text
> text text text
> text text text
> text text text
> text text text
> text text text
> text text text
>
>Can this be achieved without using tables?
>
>Regards,
>
>Miles
>*****************************************************
>The discussion list for http://webstandardsgroup.org/
>****************************************************
>
>
>
*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************
*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************
--------------------
NOTICE - This communication contains information which is confidential and
the copyright of Ernst & Young or a third party.
If you are not the intended recipient of this communication please delete
and destroy all copies and telephone Ernst & Young on 1800 655 717
immediately. If you are the intended recipient of this communication you
should not copy, disclose or distribute this communication without the
authority of Ernst & Young.
Any views expressed in this Communication are those of the individual
sender, except where the sender specifically states them to be the views of
Ernst & Young.
Except as required at law, Ernst & Young does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained nor
that the communication is free of errors, virus, interception or
interference.
Liability limited by the Accountants Scheme, approved under the
Professional Standards Act 1994 (NSW)
--------------------
*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************