我忙於使用我的投資組合網站,並且我會讓它響應。從浮動:左右兩邊到彼此之間
大多數東西都是響應,但我正在努力與contact page。
代碼:
.footerContact .informatie
{
float: left;
margin-left: 20%;
margin-top: 10%;
color: white;
width: 250px;
}
.footerContact .form
{
float: right;
margin-right: 20%;
margin-top: 10%;
color: white;
width: 300px;
}
我現在用一個媒體查詢將它們放在對方的時候去的屏幕尺寸較小爲1115px
例子可以發現here
哪有我做這個?
@media only screen and (max-width: 1115px)
{
.footerContact .informatie
{
float: none;
margin-left: 20%;
margin-top: 10%;
color: white;
width: 250px;
}
.footerContact .form
{
float: none;
margin-left: 20%;
margin-top: 100px;
color: white;
width: 250px;
}
}
你看過[flexbox](http://css-tricks.com/snippets/css/a-guide-to-flexbox/)嗎? – 2014-10-17 08:16:51