T
Terminator
Member
- Beiträge
- 8
- Punkte Reaktionen
- 0
Hallo liebe Community,
ich bin Anfänger und hoffe auf eure Hilfe
.
Ich würde gerne ein Bild verkleinern, wenn die Anzeige kleiner 700px ist. Die Bildgröße ändert sich nicht bei Verkleinerung des Browserfensters (die anderen @media queries funktionieren). Das ist der Code:
HTML
<section class="about-us">
<div class="row">
<div class="about-col">
<img src="image/img1.jpg">
<div>
<p>Lorem ipsum dolor...</p>
<h3>name1</h3>
</div>
</div>
<div class="about-col">
<img src="image/img2.jpg">
<div>
<p>Lorem ipsum dolor...</p>
<h3>name2</h3>
</div>
</div>
</div>
</section>
CSS
.about-col img{
height: 150px;
margin-right: 30px;
border-radius: 50%;
}
@media(max-width: 700px){
.about-col img{
height: 70px;
margin-right: 30px;
}
}
Hoffe es ist verständlich.
Danke vorab!!!
ich bin Anfänger und hoffe auf eure Hilfe
Ich würde gerne ein Bild verkleinern, wenn die Anzeige kleiner 700px ist. Die Bildgröße ändert sich nicht bei Verkleinerung des Browserfensters (die anderen @media queries funktionieren). Das ist der Code:
HTML
<section class="about-us">
<div class="row">
<div class="about-col">
<img src="image/img1.jpg">
<div>
<p>Lorem ipsum dolor...</p>
<h3>name1</h3>
</div>
</div>
<div class="about-col">
<img src="image/img2.jpg">
<div>
<p>Lorem ipsum dolor...</p>
<h3>name2</h3>
</div>
</div>
</div>
</section>
CSS
.about-col img{
height: 150px;
margin-right: 30px;
border-radius: 50%;
}
@media(max-width: 700px){
.about-col img{
height: 70px;
margin-right: 30px;
}
}
Hoffe es ist verständlich.
Danke vorab!!!