Abstract
As I explained in the preceding chapter, CSS treats HTML elements as boxes. Block-level elements force whatever follows them down the page, even if there’s sufficient room alongside. Inline elements sit alongside their neighbors, but if one element is taller than the rest, it affects the line height. For example, images are treated as inline elements. Inserting one in a block of text forces the text to align with the bottom of the image, as shown in Figure 7-1.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 David Powers
About this chapter
Cite this chapter
Powers, D. (2012). Floating Elements for Layout. In: Beginning CSS3. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4474-5_7
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4474-5_7
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4473-8
Online ISBN: 978-1-4302-4474-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books