Template:Tsinghua:Common-Style
From 2014.igem.org
(Difference between revisions)
(3 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<style type="text/css"> | <style type="text/css"> | ||
- | |||
Line 16: | Line 15: | ||
} | } | ||
/* ~~ Element/tag selectors ~~ */ | /* ~~ Element/tag selectors ~~ */ | ||
- | ul, ol, dl { | + | ul, ol, dl { |
padding: 0; | padding: 0; | ||
margin: 0; | margin: 0; | ||
Line 22: | Line 21: | ||
h1, h2, h3 { | h1, h2, h3 { | ||
- | font-weight: | + | font-weight: bold; |
border-bottom: none; | border-bottom: none; | ||
- | padding | + | padding: 0 20px 0; |
- | + | ||
- | + | ||
- | + | ||
background: none; | background: none; | ||
- | color: # | + | color: #130147; |
} | } | ||
- | + | p{ | |
- | + | padding: 0 20px 0; | |
+ | text-align: justify; | ||
font-size: 14px; | font-size: 14px; | ||
} | } | ||
- | + | h1{ | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
font-size: 24px; | font-size: 24px; | ||
font-weight: bold; | font-weight: bold; | ||
- | |||
- | |||
} | } | ||
- | + | h2{ | |
font-size: 20px; | font-size: 20px; | ||
font-weight: bold; | font-weight: bold; | ||
Line 55: | Line 46: | ||
} | } | ||
- | + | h3{ | |
font-size: 16px; | font-size: 16px; | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
+ | img.center { | ||
+ | display:block; | ||
+ | margin-left: auto; | ||
+ | margin-right: auto; | ||
+ | } | ||
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */ | a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */ | ||
Line 78: | Line 74: | ||
/* ~~ This fixed width container surrounds all other blocks ~~ */ | /* ~~ This fixed width container surrounds all other blocks ~~ */ | ||
.container { | .container { | ||
- | width: | + | width: 975px; |
background-color: #FFFFFF; | background-color: #FFFFFF; | ||
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */ | margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */ | ||
Line 87: | Line 83: | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
.sidebar1 { | .sidebar1 { | ||
float: left; | float: left; | ||
Line 132: | Line 116: | ||
clear: both; /* this clear property forces the .container to understand where the columns end and contain them */ | clear: both; /* this clear property forces the .container to understand where the columns end and contain them */ | ||
} | } | ||
- | |||
/* ~~ Miscellaneous float/clear classes ~~ */ | /* ~~ Miscellaneous float/clear classes ~~ */ | ||
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */ | .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */ | ||
Line 153: | Line 136: | ||
display: block; | display: block; | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</style> | </style> | ||
<html> | <html> |
Latest revision as of 08:02, 14 October 2014