css - <p>-tag does not stay in div on smaller screen -


i have centered div css:

.questions {   display: block;   position: relative;   margin: 30px auto 0px;   height: 500px;   width: 650px;   background: #fff;   border: 1px dashed #cbd0d8;   padding: 0px 5px; } 

and .questions-div wrapped in regular bootstrap container, style-tag of width: 100%.

inside .questions div have few paragraphs text css of:

.partner > p {   padding: 0px 5px 0px; } 

and yes... on screen looks good, when open laptop (a smaller window size) <p> tags break , start new lines halfway each <p>, creating double amount of rows of text. these <p> tags aren't centered @ all, nor stay in div go through , outside .questions div @ bottom.

how make text stay same size , width no matter how big screen is? div follows well, text doesn't!

stupid of me not include html markup:

<div class="container question-container">     <div class="my-logo">         <h3>title</h3>     </div>        <div class="img-container">         <img src="img/questionmark.png" alt="" height="85px" width="85px" class="question">       </div>       <div class="question blue">           <h2 class="question-header black">question</h2>           <p>lorem ipsum dolor sit amet, consectetur adipiscing elit, sed eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>           <p>ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>           <p>duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>       </div> </div> 

example of paragraphs: want like: text text text text

text text text text

text text text text

text text text text

what happens when make screen smaller:

text text

text text

text text

text text

text text

text text

text text

text text

and understand, makes lower couple text text's go outside of .questions div.

since gave .questions fixed height, when goes mobile , paragraph lengthens vertically, has no go outside of div. .questions need height of auto, or perhaps, min-height, @ least 600px tall. , paragraph aligned centrally.. mean margin/padding on each side? it's hard tell wanting result paragraphs.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -