Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: block level formatting

From: Matthias Lohmann <matthias-lohmann@web.de>
Date: Thu, 26 Jun 2003 18:58:32 +0200
Cc: "'Brian V Bonini'" <b-bonini@cox.net>, www-html@w3.org
To: Brian Bober <netdemonz@yahoo.com>
Message-Id: <6ADBBBF6-A7F7-11D7-BF9B-000393A9CF6C@web.de>

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.

> 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.
Received on Thursday, 26 June 2003 13:38:07 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.