W3C home > Mailing lists > Public > www-html@w3.org > June 2003

Re: block level formatting

From: Brian V Bonini <b-bonini@cox.net>
Date: 26 Jun 2003 14:12:18 -0400
To: Matthias Lohmann <matthias-lohmann@web.de>
Cc: www-html@w3.org
Message-Id: <1056651138.23561.63.camel@gfxdesign>

On Thu, 2003-06-26 at 12:58, Matthias Lohmann wrote:
> Am Donnerstag, 26.06.03 um 15:50 Uhr schrieb Brian Bober:
> 
> > Selectors don't work properly in IE5 (does it work in IE6?), so I
> > recommend
> > using a class and giving all the imgs that class if you want it to
> > work in more
> > than Mozilla and maybe other browsers like Opera but not IE.
> >
> > .block { display: block;}
> >
> > <img class="block">
> 
> That's really not necessary. #lines img {} is supported by every
> browser I know, even Netscape 4.

Yup, I've had no problems with that.

> 
> > Another thing to note is that displaying an image as a block you will
> > have
> > space under it just like text has. Although if block doesn't give you
> > everything you want, you might want to try display: table-cell.
> 
> You can controll the space with margin and padding if you use
> display:block. The problem with space occurs with display:inline
> because of the inline-box.

margin and padding seem to have no effect in IE and while using margin
with Mozilla will work using both margin and padding will result in the
sum of both values, which is how I woul think it should work anyway.
Received on Thursday, 26 June 2003 14:07:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:55 GMT