0
나는이 두 이미지를 오른쪽에 정렬하고 싶지만 각 이미지를 별도의 줄에 배치하려고합니다. 지금 내가 생각할 수있는 유일한 방법은 이미지 중 하나에 대해 매우 큰 여백이지만 더 좋은 방법이 있는지 궁금합니다.오른쪽에 CSS로 두 이미지 정렬 별도의 줄로
오른쪽의 첫 번째 이미지 옆에 단락을 표시하고 싶습니다. 또한 스크롤 할 때 단락의 배경이 바뀌지 만 텍스트 주위의 색상 변경을 제한하고 싶습니다.
<!DOCTYPE HTML>
<html>
<head>
<title> Stack Overflow Question </title>
<link rel="stylesheet" type="text/css" href="./css/q7.css"></link>
</head>
<body>
<h1> Holla lolla lolla la </h1>
<figure id=real>
<img src="images/RealDog.jpg" </img>
<figcaption>Figure 1. Real Dog</figcaption>
</figure>
<p id="Gar"> Gar Gar Gar </p>
<p id="lol"> lol lol lol </p>
<figure id=fake>
<img src="images/FakeDog.jpg"></img>
<figcaption>Figure 2. Fake Dog</figcaption>
</figure>
</body>
</html>
CSS 파일 : 그것은 매우 중요합니다 모든
body {
font-family: sans-serif;
font-weight: normal;
background-color: #EDEDED;
}
h1 {
color: blue;
font-weight: normal;
}
img {
height: 100px;
/*display: block;*/
}
p:hover {
background-color:white;
}
#Gar {
float: right;
color: blue;
margin-right: 100px;
}
#lol {
float: right;
color: blue;
margin-right: 100px;
}
figure {
float: right;
margin-left: 1000px;
}
곳 'gar'와'lol' 텍스트를 – affaz