Skip to content

Commit

Permalink
画像を横並びに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
shhirose committed Jul 21, 2016
1 parent 2c452da commit be1bfc3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 15 deletions.
Binary file added img/img-left.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 32 additions & 15 deletions index.html
Expand Up @@ -7,6 +7,21 @@
<body>
<div>
<style type="text/css">
.clearfix:after {
content: " ";
display: block;
clear: both;
}
.wrapper {
width: 720px;
}
.top-block1,
#slideshow {
float: left;
}
.top-block1 p {
margin: 0;
}
#slideshow {
position: relative;
width: 360px;
Expand Down Expand Up @@ -65,21 +80,23 @@
setInterval( "slideSwitch()", 5000 );
});
</script>
<div class="top-block1">
<p>
<a href="リンク先"><img src="画像1" /><br />
コメント</a>
</p>
</div>
<div id="slideshow">
<p class="active">
<a href="リンク先"><img src="./img/img1.png" alt="画像1"></a>
キャプション1
</p>
<p>
<a href="リンク先"><img src="./img/img2.png" alt="画像2"></a>
キャプション2
</p>
<div class="wrapper clearfix">
<div class="top-block1">
<p>
<a href="リンク先"><img src="./img/img-left.png" /><br />
コメント</a>
</p>
</div>
<div id="slideshow">
<p class="active">
<a href="リンク先"><img src="./img/img1.png" alt="画像1"></a>
キャプション1
</p>
<p>
<a href="リンク先"><img src="./img/img2.png" alt="画像2"></a>
キャプション2
</p>
</div>
</div>
</div>
</body>
Expand Down

0 comments on commit be1bfc3

Please sign in to comment.