diff options
author | knolax <1339802534.kk@gmail.com> | 2017-11-14 08:53:43 -0500 |
---|---|---|
committer | knolax <1339802534.kk@gmail.com> | 2017-11-14 08:53:43 -0500 |
commit | e6116f2dde5c3b38b4cab55899e3e23c55d8ede7 (patch) | |
tree | e59718d5e10136a5535bc2d65b28fb9597abe0f1 /style.css |
initial commit
Diffstat (limited to 'style.css')
-rw-r--r-- | style.css | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/style.css b/style.css new file mode 100644 index 0000000..bd0ce07 --- /dev/null +++ b/style.css @@ -0,0 +1,31 @@ +* { + font-family: Courier, monospace; + color: #000000; + margin: 0px; /*default margins get in the way*/ +} +a { + text-decoration: none; /*no underline*/ + color: #801040; + +} +a:hover { + color: #ffffff; + background-color: #801040; +} +.content { + /*the following works together to center the entire element*/ + position:relative; + left:50%; /* this shifts the element to the right by 50% of its parent*/ + display: inline-block; /* this makes the element only as wide as it needs to be*/ + transform:translatex(-50%);/*this shifts it to the left by half its own width*/ +} +img { + display: block; + /*overrides not margin to center from bounds of the <pre> tag*/ + margin-left: auto; + margin-right: auto; + /*default width*/ + width: 100%; + /*preserves aspect ratio*/ + height: auto; +} |