html - How to make a text with smaller width stay on a image with 100% width even if the screen is resized? -


how make text smaller width stay on image 100% width if screen resized? want text stays on background. @ moment text goes outside of image when make screensize smaller tried , can't find solution it. please help!

html(ruby on rails)

<div class="outer-wrapper">  <%= image_tag("x.png" class="background") %>   <div class="inner-wrapper">    <p> feel free reach out me that’s on mind. i’m    happy hear people , i’ll respond possible. </p>  </div> </div> 

css part

.outer-wrapper { }  .background { min-width: 100%; margin: 0 auto; display: block; position: relative; height: 900px; }  .inner-wrapper { width: 41%; height: 100%; margin: 2% auto; left: 0;  right: 0; position: absolute; top: 172%; } 


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -