douyun4524 2016-08-14 15:10
浏览 22

CSS行对齐问题

i've some CSS problems. I made a row with images and some texts. But images' borders are not in alignment. Here is a screenshot about that. And my CSS codes which i am used:

.portfolyo-foto {
    width: 149px;
    margin-right: 1.2%;
    border: 1px dashed black;
    display: inline-table;
}

.portfolyo-cerceve {
    width: 100%;
    padding-left: 0%;
    height: 100%;
}

.leftTypeWrapperOuter {
    width: 75%;
    position: relative;
    float: right;
    margin-right: 13%;
}

.clearfix {
    display: block;
}

Thanks a lot.

  • 写回答

2条回答 默认 最新

  • dongse3348 2016-08-14 15:16
    关注

    You should include the link in the div.

    <div class="portfolyo-foto">
        <img width="100" height="100" src="" />
        <a href="#">All</a>
    </div>
    

    and add this rule in css:

    .works-filter a,
    .works-filter a.active{
        margin:0;
    }
    

    Also, remember it is a good practice to share all the needed code.

    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥20 求用stm32f103c6t6在lcd1206上显示Door is open和password:
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法