fix to position for tikz - center the inside of the div
This commit is contained in:
parent
7e5f5526bc
commit
7626e95032
|
@ -79,4 +79,4 @@ Images:
|
||||||
|
|
||||||
Tikz:
|
Tikz:
|
||||||
|
|
||||||
{{ tikz(style="width: 20%; height: 20%;" position="center" body="\begin{tikzpicture}\draw (0,0) circle (1in);\end{tikzpicture}") }}
|
{{ tikz(position="right" body="\begin{tikzpicture}\draw (0,0) circle (1in);\end{tikzpicture}") }}
|
||||||
|
|
|
@ -261,15 +261,27 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.post_contents .tikz-left {
|
.post_contents .tikz-left {
|
||||||
|
width: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: left;
|
||||||
|
align-items: left;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post_contents .tikz-center {
|
.post_contents .tikz-center {
|
||||||
|
width: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post_contents .tikz-right {
|
.post_contents .tikz-right {
|
||||||
|
width: 0;
|
||||||
|
display: flex;
|
||||||
|
justify-content: right;
|
||||||
|
align-items: right;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user