aboutsummaryrefslogtreecommitdiff
path: root/source/css/theme.css
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2016-01-30 14:37:24 -0800
committerZhiming Wang <zmwangx@gmail.com>2016-01-30 14:37:24 -0800
commit417dffcac6db06c01fb65335319776579115e212 (patch)
treed9a95b693c1328193da4103b4b01edfddc4a0733 /source/css/theme.css
parenta194189b46c81c57235b7fe16dd33d2de01ba3f8 (diff)
downloadmy_new_personal_website-417dffcac6db06c01fb65335319776579115e212.tar.xz
my_new_personal_website-417dffcac6db06c01fb65335319776579115e212.zip
theme.css: Solve image link over-wide issue
display: block spans the entire width of the parent container. Switching to display: inline solves the problem. Fixes #11.
Diffstat (limited to 'source/css/theme.css')
-rw-r--r--source/css/theme.css10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/css/theme.css b/source/css/theme.css
index 07491b5c..31052909 100644
--- a/source/css/theme.css
+++ b/source/css/theme.css
@@ -166,10 +166,18 @@ img {
margin: 5px auto;
}
+.figure {
+ text-align: center;
+}
+
+.figure img {
+ display: inline;
+ margin: 0 0 5px 0;
+}
+
.figure .caption {
width: 80%;
margin: auto;
- text-align: center;
font-size: 90%;
}