我試圖在我的單頁網站的頁腳上對齊某些文本兩側的x2社交媒體圖標。如何在同一行上放置文本和社交媒體圖標
以下是我希望它在桌面/寬屏幕上顯示的示例。 Desktop/Wide Screens
這裏是我希望如何顯示在移動/窄屏幕上的一個例子。 Mobile/Narrower Screens
我已經進入低於我的代碼到目前爲止(目前沒有的社交媒體圖標中)
附:我的社交媒體圖標保存爲facebook.png和twitter.png
body {
background-color: #000;
font-family: 'Roboto Mono', 'Arial', sans-serif;
font-size: 250%;
font-weight: 300;
}
.logo {
display: block;
margin: 50px auto;
}
p {
color: #ccc;
text-align: center;
text-transform: uppercase;
letter-spacing: 3px;
}
.coming-soon {
color: #333;
letter-spacing: 3px;
}
.autumn-2017 {
color: #ccc;
}
section p {
display: block;
margin: 50px auto 10px;
font-size: 35%;
text-transform: none;
letter-spacing: 3px;
line-height: 25px;
color: #333;
}
.contact-info {
margin: 15px auto;
letter-spacing: 3px;
line-height: 25px;
color: #ccc;
text-decoration: none;
text-transform: none;
font-size: 35%;
}
a:link,
a:visited {
text-decoration: none;
color: #ccc;
transition: font-weight 0.2s;
}
a:hover,
a:active {
text-decoration: none;
color: #ccc;
font-weight: 500;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="desctription" content="Web Design & Development">
<link rel="stylesheet" type="text/css" href="normalize.css">
<link rel="stylesheet" type="text/css" href="grid.css">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="queries.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:100,300,400,500,700" rel="stylesheet">
<meta name="msapplication-config" content="resources/favicons/browserconfig.xml">
</head>
<body>
<header>
<div>
<img src="iz-icon-logo.png" class="logo" alt="logo">
<p><span class="coming-soon">coming soon.</span><span class="autumn-2017"> autumn 2017.</span></p>
</div>
</header>
<section>
<div>
<p>If you have a Web Design or Development enquiry,<br>please contact:</p>
<p class="contact-info"><a href="mailto:[email protected]">[email protected]</a><br><a href="tel:07903490453">+44 (0) 7903 490453</a></p>
</div>
</section>
</body>
</html>
您可以將您的代碼,以便我們可以看到你已經嘗試了什麼,到目前爲止並在問題是? – Shogunivar