diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2016-01-30 14:37:24 -0800 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2016-01-30 14:37:24 -0800 |
commit | 417dffcac6db06c01fb65335319776579115e212 (patch) | |
tree | d9a95b693c1328193da4103b4b01edfddc4a0733 | |
parent | a194189b46c81c57235b7fe16dd33d2de01ba3f8 (diff) | |
download | my_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.
-rw-r--r-- | source/css/theme.css | 10 |
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%; } |