Come da oggetto, allego immagini descrittive:
Firefox:
-
Chrome:
Da qui la domanda: "Come fare affinché firefox non mandi il testa a capo"?
Questo il codice (php, ma di facilissima comprensione):
Codice PHP:
<div style="word-wrap:break-word;">
<?php
if(!empty($ip1)) {
echo '
<span style="color:#00e0ff;font-weight:bold;">', $txt[512], ': </span>', $ip1, '';
}
if(!empty($city)) {
echo '
<hr />
<span style="color:#00e0ff;font-weight:bold;">', $txt['geoplugcity'], ': </span>', $city, '';
}
if(!empty($region)) {
echo '
<hr />
<span style="color:#00e0ff;font-weight:bold;">', $txt['geoplugregion'], ': </span>', $region, '';
}
if(!empty($country)) {
echo '
<hr />
<span style="color:#00e0ff;font-weight:bold;">', $txt['geoplugcountry'], ': </span>', $country, ' (', $countrycode, ')';
}
if(!empty($hostname)) {
echo '
<hr />
<span style="color:#00e0ff;font-weight:bold;">', $txt['hostname'], ': </span>', $hostname, '';
}
if(!empty($agent)) {
echo '
<hr />
<span style="color:#00e0ff;font-weight:bold;">User-Agent: </span>', $agent, '';
}
?>
</div>