summaryrefslogtreecommitdiff
path: root/style.css
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2018-01-09 18:43:29 -0500
committerknolax <1339802534.kk@gmail.com>2018-01-09 18:43:29 -0500
commit6c0b47b110a2449899f5c9bad4b92c3bba5a1e9b (patch)
treeb35fdccb1d69f79454fa1e38260ad0f85f5e609d /style.css
parent518327db8593c9a9078b4f1084f539df2142e1cd (diff)
fixed the issue with image sizes
Diffstat (limited to 'style.css')
-rw-r--r--style.css3
1 files changed, 2 insertions, 1 deletions
diff --git a/style.css b/style.css
index bd0ce07..75c5bc6 100644
--- a/style.css
+++ b/style.css
@@ -14,12 +14,13 @@ a:hover {
}
.content {
/*the following works together to center the entire element*/
- position:relative;
+ position:relative; /* allows for translation*/
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 {
+ position: absolute; /*parent now ignores it's size when calculating size*/
display: block;
/*overrides not margin to center from bounds of the <pre> tag*/
margin-left: auto;