为什么不能在我的div中添加保证金?

时间:2015-03-12 21:39:51

标签: html css

我有这个网站: http://dl.dg-site.com/functionmentes/

这是代码CSS:

@media screen and (width:1024px)
{
    #titlu_footer
    {
        margin-left:90px;
    }
}

我尝试添加此代码但无法正常工作。

有什么问题?

1 个答案:

答案 0 :(得分:5)

在您的媒体查询中,将width更改为min-widthmax-width

其他问题

这是#titlu_footer

的CSS
.page-id-1637 #titlu_footer {
  color: #264572;
  font-family: muli, sans-serif;
  letter-spacing: 2px;
  line-height: 1.4;
  font-weight: 400;
  margin-left: 302px;
  margin-top: 30px;
  padding-top: 20px;
}

如果您使用chrome / firefox开发人员工具,您会发现margin-left 302px优先于您的媒体查询。

相关问题