Re: [WSG] Floating dl problem - Indented text

2005-09-30 Thread Gunlaug Sørtun

Damien Hill wrote:

... On the first line of the content, there is a 10 pixel indent that
 isn't meant to be there. The code works fine in Firefox.



http://www.damienhill.com/tests/floats/


The indent equals margin-left on float. That's the bug.

Add:

dl.image {display: inline;}

...to fix it.

Georg
--
http://www.gunlaug.no
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



[WSG] Floating dl problem - Indented text

2005-09-29 Thread Damien Hill
I have run into a problem with IE6 (surprise!) when floating a dl to the
right of content that is not contained in a p tag. On the first line of
the content, there is a 10 pixel indent that isn't meant to be there. The
code works fine in Firefox.

Example code:
dl style=float: right; margin: 0 0 0.8em 0.8em;
dtimg //dt
ddCaption goes here/dd
/dl
Some content goes here that isn't contained in a p tag...


I realise that it is incorrect to include content without a p tag, but a
CMS we are currently working with is forcing us to make allowances for this
situation.

Does anybody know what is causing this? Is it a known bug in IE and is there
a solution? 

An example of the problem I am having:
http://www.damienhill.com/tests/floats/


Thanks,
Damien Hill




**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**