HTML and CSS Reference
Figure 6-18. The link at the end of the first paragraph toggles the display of the second paragraph
the second paragraph's display property from block to none . As a result, the paragraph is removed from display,
and the third paragraph moves up into its place, as shown in Figure 6-19 .
Figure 6-19. The middle paragraph is removed completely from the page
Clicking “View details” switches the classes applied to the second paragraph, restoring it and moving the
third paragraph back down to make room for it.
Edition by Jeremy Keith with Jeffrey Sambells (friends of Ed, iSBn: 978-14302-3389-3).