適切な場所が見つかるまで、列を右に移動しようとしています。パディングを使用して右に移動すると、一緒に写真が破砕されます。 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;私は望んでいた%を残しました;} –