Answer the question
In order to leave comments, you need to log in
How to align div img and div h2_?
The task is simple, but I can not find a solution in any way
, such a structure
<div class="col-lg-6">
<div class="row">
<div class="image"><a href="#"><img src="imagen.png"></a></div>
<div class="text"><h2>Hello</h2></div>
</div>
</div>
<div class="col-lg-6">
<div class="row">
<div class="image"><a href="#"><img src="imagen.png"></a></div>
<div class="text"><h2>Hello</h2></div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
float: left and padding like h2.
https://jsfiddle.net/rbkpqunw/
Well, either inline-block, or combine the image and text into one div. Why do you have separate .image and .text blocks?
Can be easily reduced to:
<div class="col-lg-6 row">
<a class="image" href="#"><img src="imagen.png"></a>
<h2 class="text">Hello</h2>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question