html - Text is forcing DIVs to not stay the same size -


im trying keep equal on page. when there text in 1 div pushing side down. how keep both divs equal height max of parent div on desktop?

i tried playing around table display didn't go me, i'm not versed in it.

<style><!--    	  .pagerow {  	display: inline-block;  	position: relative;  	width: 100%;  	text-align: center;  	vertical-align: middle;  	white-space: nowrap;  }      .pageblock {  	display: inline-block;  	position: relative;  	width: 50%;  	height: 100%;  	text-align: center;  	vertical-align: top;  	padding-left: 15px;	  	padding-right: 15px;  	white-space: normal;  	  }        .pagetext {  	display: inline-block;  	position: relative;  	max-height: 100%;  	max-width: 100%;  	object-fit: contain;  	vertical-align: top;  }      .pagemap {  	display: inline-block;  	vertical-align: bottom;  }        @media (max-width: 768px) {      .pagerow {      display: inline-block;  	white-space: normal;    }      .pageblock {        display: inline-block;  	width: 75%;  	margin-bottom: 15px;  	  }          .pagetext {  	display: inline-block;  	position: relative;  	vertical-align: middle;  	align-items: center;  	object-fit: contain;      text-align: center;      width: 100%;          }      .pagemap {  	display: inline-block;      width: 100%;  }  }  --></style>
<div class="pagerow">  	<div class="pageblock">  		<div class="pagetext">  			<p style="text-align: center;"><strong>title 1</strong></p>  <p><span>lorem ipsum dummy text of printing , typesetting industry. lorem ipsum has been industry's standard dummy text ever since 1500s, when unknown printer took galley of type , scrambled make type specimen book.</span></p>  		</div><!--/.pagetext-->  		<div class="pagemap">  			<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d55565170.29301636!2d-132.08532758867793!3d31.786060306224!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x54eab584e432360b%3a0x1c3bb99243deb742!2sunited+states!5e0!3m2!1sen!2sus!4v1505170144549" width="100%" height="100%" frameborder="0" style="border:0" allowfullscreen></iframe>  		</div><!--/.pagemap-->  	</div><!--/.pageblock-->  	  	<div class="pageblock">  			<div class="pagetext">  				<p style="text-align: center;"><strong>title 2</strong></p>  <p>lorem ipsum dummy text of printing , typesetting industry. lorem ipsum has been industry's standard dummy text ever since 1500s, when unknown printer took galley of type , scrambled make type specimen book. has survived not 5 centuries.</p>  			</div><!--/.pagetext-->  			<div class="pagemap">  				<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d55565170.29301636!2d-132.08532758867793!3d31.786060306224!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x54eab584e432360b%3a0x1c3bb99243deb742!2sunited+states!5e0!3m2!1sen!2sus!4v1505170144549" width="100%" height="100%" frameborder="0" style="border:0" allowfullscreen></iframe></div>  			</div><!--/.pagemap-->  		</div><!--/.pageblock-->    </div><!--/.pagerow-->

you should fix height , width max text can't increase div anymore.

    height: 500px; /*or around that, there isn't width percentages */ 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -