So im trying to make php echo'ed text stay inside a div. It's probably pretty simple, but I've been fighting with this for some time now.
So in the code below I echo a of a's, and now i want them to stay inside the div of 50px. Tried adding white-space: normal; to the div, but that didnt work out.
In advance, thanks
<style>
.testDiv {
background-color: yellow;
width: 50px;
height: 100%;
}
</style>
<div class="testDiv">
<?php
echo "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
?>
</div>