Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div id="small-dialog" class="zoom-anim-dialog mfp-hide">
    <div class="container">
      <div class="innercontainer">
        <div class="comment_container">
          
          <div class="image_container">
            <img class="image" src="http://i4.mirror.co.uk/incoming/article1372397.ece/ALTERNATES/s615b/Buttons+the+Jack+Russell+and+a+rescued+kitten+that+are+so+close+they+think+they+are+sisters">
          </div>
          <div class="comments">
            <div class="content1 comment">1</div>
            <div class="content2 comment">2</div>
          </div>
        </div>
      </div>
    </div>
    <div style="clear: both;"></div>
  </div>
</body>
</html>
 
#small-dialog {
  background: black;
}
.container {
  padding: 2px;
}
.innercontainer {
  margin-left: 50%;
}
.image_container {
  margin-left: -100%;
  display: inline-block;
  width: 97%;
  text-align: center;
  border: 1px solid red;
}
.comment_container {
  border: 1px dotted blue;
  width: 97%;
  display: inline-block;
  background: yellow;
}
.image {
  width: 150px;
  margin: 0px auto;
}
.comments {
  display: inline-block;
  border: 1px blue dotted;
  width: 97%;
  margin-left: 1%;
}
.comment {
  width: 100%;
  color: black;
}
@media (min-width: 1px) and (max-width: 350px) {
  .image_container, .content {
    width: 100%;
    display: block;
    margin: 0;
  }
  .innercontainer {
    margin: 0;
  }
  .comment_container {
    background: none;  
  }
  .comments {
    background: yellow;
  }
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
Sumurai8pro
0viewers