I am programming a web page with Bootstrap and on one of the pages I have a two-column structure. On the right I have an image or several and on the left a text that is the description of the image. What I want to achieve is that when I scroll down to see the complete image or all the images, the text accompanies me.
I tried to use position: fixed in the text or the affix attribute but it does not work since the text accompanies me but it does not look whole because it gets under the image.
The page can be found here:
If necessary, I copy the css or the html code.
Any idea why this can happen or if there is some other way to solve it?
Code:
<section class="row2 text-center col-md-12 center-block text-center">
<div class="col-sm-2 col-md-2">
<div class="projectext">
<p class="">Res Publica valimiskampaania graafilise stiili kujundus välireklaamidele ja trükistele.</p>
</div>
</div>
<div class="col-sm-10 col-md-10">
<div class="image">
<img src="images/Res Publica valimiskampaania kujundus.jpg" class="img-responsive pull-left" alt="web design app image";>
</div>
</div>
</div>
</section>
CSS:
.projectext{
position: fixed;
overflow:hidden;
}
Thank you very much!