I'm having trouble arranging the display of information next to a plant image. I want to ensure that the information stays on the right side of the image when the screen reaches a specific minimum width.
The issue arises when the information includes a line longer than the normal width, causing the information div to drop below the image.
Here is an example with acceptable line length (no wrapping): https://jsfiddle.net/o3sjug9q/
And here is an example with excessive line length (resulting in wrapping): https://jsfiddle.net/seL72mt9/
Is there a way to make the details div wrap its text instead of wrapping itself onto the next line?
<div class="outer">
<div class="slidecontainer row" id="biodivslider" data-id="1">
<div class="sliderbtn nowrap" onclick="bwdpic()"><</div>
<div class="wrap">
<div class="detailimg"><img src="http://www.nachhaltiger-weinbau.net/wp-content/plugins/biodivslider/img/Milchsterne/Dolden-Milchstern_Ornithogalum_umbellatum-Tci_2004.jpg" class="detailimg"></div>
<div class="details">
<p><span class="detailslabel">Name:</span><br>Milchsterne</p>
<p><span class="detailslabel">Latin Name:</span><br>(Ornithogalum spec.), O. umbellatum, O. nutans</p>
<p><span class="detailslabel">Location:</span><br>moderately dry, sandy, indicator of warmth, moderately nitrogen-rich</p>
</div>
</div>
<div class="sliderbtn nowrap" onclick="fwdpic()">></div>
</div>
</div>
CSS:
div.outer {
width: 833px;
height: 491px;
background: lightblue;
}
div.slidecontainer {
max-height: 300px;
}
div.row {
display: table;
width: 100%;
table-layout: fixed;
border-spacing: 10px;
max-height: 300px;
}
div.row > div {
float: none;
display: table-cell;
height: 100%;
width: 100%;
}
div.row > div.wrap > div {
float: left;
}
#
div.detailimg {
height: 300px;
width: 300px;
}
img.detailimg {
display: block;
max-height: 300px;
max-width: 300px;
}
div.details {
max-width: 100%;
vertical-align: middle;
word-wrap: break-word;
overflow: visible;
}
span.detailslabel {
font-size: smaller;
font-weight: bold;
}
div.details > p {
line-height: 90%;
word-wrap: break-word;
overflow: visible;
}
div.sliderbtn {
font-size: 50px;
font-weight: 900;
min-height: 300px;
height: 100%;
width: 60px !important;
line-height: 300px;
text-decoration: none;
vertical-align: middle;
text-align: center;
cursor: pointer;
}