1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
4 <title>CSS Test: inline-block: width</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
6 <link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-10-08 -->
7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline-block/003.html" type="text/html"/>
8 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#inlineblock-width" />
9 <meta name="flags" content="interact"/>
10 <style type="text/css">
11 span { display: inline-block;
12 border: solid blue; color: silver;
13 margin: 0.5em; padding: 0.5em; }
17 <p> Make your window slightly wider than the width of one blue box:
18 all boxes should be the same size. Try increasing the window width
19 so that boxes wrap in two or more columns: the boxes should remain
20 the same size. Try reducing the window width to less than the width
21 of one blue box: the words inside the boxes should wrap and the boxes
22 resize around them so that the boxes continue to fit inside the window. </p>
23 <p>There is filler text in the first line, it should merely indent the first line
24 but not affect the resulting size.</p>
27 <span>this is filler text inside an inline block</span>
28 <span>this is filler text inside an inline block</span>
29 <span>this is filler text inside an inline block</span>
30 <span>this is filler text inside an inline block</span>
31 <span>this is filler text inside an inline block</span>
32 <span>this is filler text inside an inline block</span>
33 <span>this is filler text inside an inline block</span>
34 <span>this is filler text inside an inline block</span>
35 <span>this is filler text inside an inline block</span>
36 <span>this is filler text inside an inline block</span>
37 <span>this is filler text inside an inline block</span>
38 <span>this is filler text inside an inline block</span>