CSS Master

(Primo) #1
Figure 4.26. Using img{width: 100%} inside a multicolumn container

Making Elements Span Columns


Wecanalsomakeaparticularelementspancolumnswiththecolumn-spanproperty.
Thispropertyacceptstwovalues:noneandall.Usingnonemeansthattheelement
willbepartofthenormalcolumnflow;allwillmaketheelementspanevery
column.


It’scurrentlynotpossibletomakeanelementspanaparticularnumberofcolumns.
We’relimitedtospecifyingwhetheritshouldspanallcolumnsornoneatall.
ConsiderthelayoutshowninFigure4.27.


Complex Layouts 161

Free download pdf