Skip to content

Commit b875a7e

Browse files
authored
removed margin from body element (#12)
1 parent bc6e215 commit b875a7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

streamlit_image_comparison/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def image_comparison(
4343
img2: str,
4444
label1: str = "1",
4545
label2: str = "2",
46-
width: int = 700,
46+
width: int = 704,
4747
show_labels: bool = True,
4848
starting_position: int = 50,
4949
make_responsive: bool = True,
@@ -104,9 +104,10 @@ def image_comparison(
104104

105105
# write html block
106106
htmlcode = f"""
107+
<style>body {{ margin: unset; }}</style>
107108
{css_block}
108109
{js_block}
109-
<div id="foo"style="height: {height}; width: {width or '%100'};"></div>
110+
<div id="foo" style="height: {height}; width: {width or '100%'};"></div>
110111
<script>
111112
slider = new juxtapose.JXSlider('#foo',
112113
[

0 commit comments

Comments
 (0)