Skip to content

Commit c51446f

Browse files
committed
Center all content.
1 parent a8f2643 commit c51446f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

app/assets/stylesheets/application.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
*= require_tree .
77
*/
88

9+
#container {
10+
width: 600px;
11+
margin-left: auto;
12+
margin-right: auto;
13+
}
14+
915
.users {
1016
table-layout: fixed;
1117
width: 600px;
@@ -47,7 +53,6 @@
4753
}
4854

4955
h2 {
50-
width: 560px;
5156
padding: 20px 20px;
5257
color: white;
5358
background-color: navy;

app/views/layouts/application.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
</head>
99
<body>
1010

11-
<%= yield %>
11+
<div id="container">
12+
<%= yield %>
13+
</div>
1214

1315
</body>
1416
</html>

0 commit comments

Comments
 (0)