LILLY ROBOT |
Property | Value |
---|---|
display | inline, block |
visibility | hidden, visible, collapse |
An element can be hidden or visible. In the example below the second paragraph is hidden. Although, the paragraph is not visible the space is still used up.
The hidden value can be used when you want to hide certain information or quiz answers from your viewers.
Displays
First paragraph can be seen.
Second paragraph can not be seen.
Third paragraph can be seen.
In a table we use the value collapse to hide the data. It allows you to collapse a row or a column. The value collapse can only be used inside
Displays
Before collapse
Name | id |
---|---|
Jane | 2341 |
Sara | 3456 |
Mary | 9834 |
Displays
After collapse
Name | id |
---|---|
Jane | 2341 |
Sara | 3456 |
Mary | 9834 |
We can have an element displayed in block or inline. An element displayed in block will have a line break before and after it e.g.<p>. An inline element has no line breaks e.g.<a>.
Displays
BLOCK
Paragraph 1
Paragraph 2
Below the links are displayed in a block style.
Below the paragraphs are displayed as an inline style.
Displays
DISPLAY:INLINE
Paragraph 1
Paragraph 2