On Sat, 04 Feb 2006 04:32:05 +0100, <tx****@gmail.com> wrote:
so I added "display:inline" to .b:
.b {
display:inline; /*added*/
width:200px;
height:100px;
}
but the "width" and "height" are not working!
Inline elements (or elements pretending to be inline) don't have a width
or height. If you want the block elements to keep a specific height and
width, you have to let them be block elements.
What you could try is to float them left. If you don't want a line break
to a new line if the viewport is too narrow to display them all in line,
you could wrap them in a containing div and add the property/value
'white-space:nowrap;'.
This layout is usually used for a menu bar. An example for a basic
horizontal menu bar you can find in
<URL:http://www.pretletters.net/_test/voorbeeld_horizontaal-menu.html>.
But I'm guessing this is what you might want, because you're not very
specific about the functionality it is you're adding to your page.
--
______PretLetters:
| weblog |
http://www.pretletters.net/weblog/weblog.html |
| webontwerp |
http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen |
http://www.pretletters.net/html/vliegen.html |