如何缩进这个CSS代码?它产生了一个画廊输出

时间:2016-09-22 16:59:22

标签: html css gallery

我想向右缩进我的图片库,因为我的左侧有一个侧面的子工具栏。我尝试了left: 200;代码,但它不起作用。我该怎么做?

<style>
div.images {
    margin: 5px;
    border: 1px solid #ccc;
    float: left;
    width: 180px;
}

div.images:hover {
    border: 1px solid #777;
}

div.images images {
    width: 100%;
    height: auto;
}
</style>

...     

<a target="_blank" href="PICS/My Drawings/1.jpg">
    <img src="PICS/My Drawings/1.jpg" alt="Forest" width="200" height="300">
  </a>
</div>

<div class="images">
  <a target="_blank" href="PICS/My Drawings/2.jpg">
    <img src="PICS/My Drawings/2.jpg" alt="Northern Lights" width="200" height="300">
  </a>
</div>

<div class="images">
  <a target="_blank" href="PICS/My Drawings/3.jpg">
    <img src="PICS/My Drawings/3.jpg" alt="Mountains" width="200" height="300">
  </a>
</div>

0 个答案:

没有答案