Skip to content

Commit 23f97dc

Browse files
author
bicouy0
committed
flexible option: resize columns to fill container
1 parent 89f6e1a commit 23f97dc

File tree

13 files changed

+186
-0
lines changed

13 files changed

+186
-0
lines changed

example-flexible/css/style.css

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
2+
/**
3+
* Grid container
4+
*/
5+
#tiles {
6+
list-style-type: none;
7+
position: relative; /** Needed to ensure items are laid out relative to this container **/
8+
margin: 0 5px;
9+
padding: 0;
10+
}
11+
12+
/**
13+
* Grid items
14+
*/
15+
#tiles li {
16+
width: 210px;
17+
background-color: #ffffff;
18+
border: 1px solid #dedede;
19+
-moz-border-radius: 2px;
20+
-webkit-border-radius: 2px;
21+
border-radius: 2px;
22+
display: none; /** Hide items initially to avoid a flicker effect **/
23+
cursor: pointer;
24+
padding: 4px;
25+
-moz-box-sizing:border-box;
26+
box-sizing:border-box;
27+
}
28+
29+
#tiles li img {
30+
display: block;
31+
width: 100%;
32+
height: auto;
33+
}
34+
35+
/**
36+
* Grid item text
37+
*/
38+
#tiles li p {
39+
color: #666;
40+
font-size: 12px;
41+
margin: 7px 0 0 7px;
42+
}
43+
44+
/** General page styling **/
45+
46+
html {
47+
background-color: #e9e9e9;
48+
}
49+
50+
#main {
51+
padding: 30px 0;
52+
}
53+
54+
header h1 {
55+
text-align: center;
56+
font-size: 24px;
57+
font-weight: normal;
58+
margin: 30px 0 3px 0;
59+
}
60+
61+
header p {
62+
text-align: center;
63+
font-size: 13px;
64+
color: #777;
65+
margin: 0;
66+
}
14.4 KB
Loading
13.8 KB
Loading
17.2 KB
Loading
13.9 KB
Loading
11 KB
Loading
19.8 KB
Loading
16.3 KB
Loading
13.4 KB
Loading
13 KB
Loading

0 commit comments

Comments
 (0)