Currently learning .net and bootstrap, I've encountered an issue while designing a web page. When viewed on smaller screens, the structure appears messy. Each col-md-6 contains rows where I want text to appear beside its corresponding image in the row. However, on smaller screens, the text ends up below the image. Feel free to take a look at the source code on the webpage. Apologies for any language barriers! To view the page, visit this address: [][1]
[1]:
<div class="container">
<div class="row ">
<div class="col-md-6 " id="" style="background-color: #ff6a00; min-height: 650px;">
<div class="row" style="min-height: 35%">
<img class="img-responsive img-logo" src="img/about-us.jpg" style="transform: rotate(-10deg);" />
</div>
<div class="row" style="background-color: #ff6a00;min-height:550px;top:300px;">
<div class="direction" style="color: black;">
<h4 style="padding-right:50px;">درباره ما</h4>
<br />
<div class=" float pading-top text-justify text">
<p>
some text
</p>
</div>
</div>
</div>
</div>
<!----------------------------->
<div class="col-md-6 otherbak2 " id="boss" >
<div class="row height margin-top2 " >
<div class="col-md-6 height2 " >
<img class="img-responsive img-logo height2" src="img/png-ico/ali.JPG" />
</div>
<div class="col-md-6 height float" >
<p class="text-center" style="font-size: 17px; color: #d9534f">
some text
</p>
</div>
</div>
<div class="row height margin-top2 ">
<div class="col-md-6 height2" >
<img class="img-responsive img-logo height2" src="img/png-ico/mazdak.jpg" />
</div>
<div class="col-md-6 height float" >
<p class="text-center" style="font-size: 17px; color: #f0ad4e">
some text
</p>
</div>
</div>
<div class="row height margin-top2 ">
<div class="col-md-6 height2" >
<img class="img-responsive img-logo height2" src="img/png-ico/babak.jpg" />
</div>
<div class="col-md-6 height " >
<p class="text-center" style="font-size: 17px;color: #ea4619">
some text
</p>
</div>
</div>
<div class="row height margin-top2 " >
<div class="col-md-6 height2">
<img class="img-responsive img-logo height2 " src="img/png-ico/amin.jpg" />
</div>
<div class="col-md-6 height ">
<p class="text-center" style="font-size: 17px;color:#24a947;">
some text
</p>
</div>
</div>
</div>
</div>
</div>
<style type="text/css">
body {
background-image: url(../img/backgrnd.jpg);
}
.btn2 {
color: #fff;
background-color: #428bca;
border-color: #428bca;
}
.width {
width: 250px;
}
.height {
min-height: 190px;
}
.height2 {
min-height: 100%;
}
a:hover,
a:focus {
color: #FA6210;
text-decoration: underline;
}
.width {
width: 60%;
}
.danger {
color: #d9534f;
}
.warning {
color: #f0ad4e;
}
.success {
color: #5cb85c;
}
.info {
color: #5bc0de;
}
.primary {
color: #FA6210;
}
.btn2 {
color: #fff;
background-color: #428bca;
border-color: #428bca;
}
.style {
color: white;
}
.pading-top {
padding-top: 30px;
}
.margin-top {
margin-top: 10px;
}
.menu2 {
border-bottom: 5px solid #096DB9;
border-radius: 10px 10px 10px 10px;
}
.menu3 {
border-bottom: 8px solid #096DB9;
border-radius: 15px 15px 15px 15px;
}
.direction {
direction: rtl;
float: right;
}
.direction2 {
direction: ltr;
float: left;
}
.float {
float: right;
}
.padding {
margin: 50px 5% 100px 5%;
}
.img-size {
height: 128px;
width: 128px;
}
.fixed2-menu {
z-index: 1;
direction: rtl;
float: right;
width: 100%;
}
.margin-top {
margin-top: 30px;
}
.margin-top2 {
margin: 5px 0 0 0;
}
.text {
padding: 0 20px 0 20px;
line-height: 25px;
font-size: 14px;
}
.opacity {
opacity: 1.0;
}
</style>