3
I own a <div>
that creates a box where I should print a PHP string coming from a database, but when the string is too large, instead of performing the line break the string was "leaked" out of the box:
I would like to see a break in the line in such cases. The boxes nay can expand to the side according to the size of the string, only down
CSS:
.box{
width:300px;
height:100px;
background-color: #4682B4;
border-radius: 10px;
float: left;
margin-right: 30px;
}
.impo2 { font-family: arial; color: white; }
.ult2{
color: white;
font-family: Verdana;
font-size: large;
}
PHP:
<?php
$aaa = "hahahahaaoidhfajdhgajhgafdhgafjhgfjhadfkgafhjakjgkjdfhgajdfhgadkfjhgakfdjhgakdkajfhgakdjhgadfkjhgjafkjhdfgkjakjfdhgkadjfhgadjkhgkajhfgkjdhfgkjahfdgkajhfdg";
?>
HTML:
<div class="box"><center><a class="ult2"><br>Servidores com maiores erros: </a><a class="impo2"><?php echo $aaa; ?></a></center></div>
That was me, thank you very much :D
– Geraldão de Rívia