Difference between revisions of "Template:Freiburg/CSS"
Line 331: | Line 331: | ||
.page_content{ | .page_content{ | ||
margin: 20px 5px; | margin: 20px 5px; | ||
+ | box-sizing: border-box; /* allows for efficient paositioning of the elements within */ | ||
} | } | ||
Line 337: | Line 338: | ||
border-radius: 30px 60px; | border-radius: 30px 60px; | ||
overflow: hidden; | overflow: hidden; | ||
− | padding: | + | padding: 4%; |
margin: 2em 0; | margin: 2em 0; | ||
margin-bottom: 0; | margin-bottom: 0; | ||
Line 386: | Line 387: | ||
} | } | ||
− | /* the element | + | /* the element that can be used to style the table */ |
.content_box .table .inline{ | .content_box .table .inline{ | ||
font-size: 90%; | font-size: 90%; | ||
Line 412: | Line 413: | ||
.content_box .table tr:hover{ | .content_box .table tr:hover{ | ||
background-color: #D2D4F3; | background-color: #D2D4F3; | ||
+ | } | ||
+ | |||
+ | /* === Floatboxes for two column layout === */ | ||
+ | |||
+ | .floatbox{ | ||
+ | width: 48%; /* 100% - 2*48% = 4% padding*/ | ||
+ | } | ||
+ | |||
+ | .floatbox.left{ | ||
+ | float: left; | ||
+ | } | ||
+ | |||
+ | .floatbox.right{ | ||
+ | float: right; | ||
} | } | ||
Revision as of 17:37, 2 September 2015