English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need some help understaing "block" types and "inline" types in html. Can someone please explain what they are and how they are different from each other? Thanks...

2007-04-26 08:06:10 · 3 answers · asked by jack 6 in Computers & Internet Programming & Design

3 answers

A block-level element has "box" properties. It is subject to CSS definitions of padding, border, and margin. An inline element may have line-height but "height" won't do much for it, nor will surrounding it with a border. A block-level item also creates a line-break. There's also a hybrid item called inline-block.

2007-04-26 11:08:53 · answer #1 · answered by fjpoblam 7 · 0 0

block --The element will be displayed as a block-level element, with a line break before and after the element


inline -- Default. The element will be displayed as an inline element, with no line break before or after the element

2007-04-26 15:14:30 · answer #2 · answered by Anonymous · 0 0

Those are actually CSS attributes.

Here's a good quick run down.

http://www.webdesignfromscratch.com/css-block-and-inline.cfm

2007-04-26 15:11:59 · answer #3 · answered by Duds331 5 · 0 0

fedest.com, questions and answers