我試圖將列向右移動,直到找到合適的位置爲止。當我使用填充將其向右移動時,它將我的照片壓縮在一起。我也想用col-md-4將我的圖片放在一起。我搜索了一個答案,但沒有發現任何與我的問題有關的東西。我仍然是新手,任何幫助都會很棒。如何將列移動到右側
header {
min-height: 110px;
background-color: darkorange;
border: 1px solid burlywood;
border-bottom: 1px solid black;
}
header h1 {
margin: 15px;
text-align: center;
font-family: 'Indie Flower', cursive;
}
.img {
padding-top: 10px;
}
.thumbnail {
width: 275px;
height: 225px;
}
.img_pad {
margin-left: 15%;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Take 5 Forms</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Indie+Flower|Spirax" rel="stylesheet">
<title>Painting website</title>
<style>
</style>
</head>
<body>
<header id="header">
<h1><strong>Guide to Interior House Painting:<br>
A guide to getting your painting projects done efficiently and quickly!</strong></h1>
</header>
<div class="container">
<div class="row img_pad">
<div class="col-md-4 img">
<a href="#" class="thumbnail">
<img src="paint_brush3" style="border: 1px solid black; height:215px; width:260px;" alt="No Picture Found">
</a>
<p>Click on the image above for a list of links that will get you ideas on some colors.</p>
</div>
<div class="col-md-4 img">
<a href="#" class="thumbnail">
<img src="/images/drop_cloth.jpg" alt="125x125" style="height:215px;" alt="No Picture Found">
</a>
<p>Click on this picture for some instructions on how to paint your room.</p>
</div>
<div class="col-md-4 img">
<a href="#" class="thumbnail">
<img src="/images/paint_brush.jpg" style="height:215px;" alt="No Picture Found">
</a>
<p>Click on this picture for a list of items you will need for interior painting.</p>
</div>
</div>
</div>
</body>
我固定我的問題。我用.img {position:relative;左邊然後是我想要的%;} –