Jump to content

Div Problem


arunpatal

Recommended Posts

Hi,

 

I am trying to echo $details1 inside the div but it show like this....

 

For example:

 

Hello, how are you today...... What are you doing today?????

 

but if div width is smaller then text line then i want text to go under it automatically...

 

For example like this:

 

Hello, how are

you today... what

are you doing

today?????

 

 

<?php
if($details1) {
echo "<div id='detaildisplay_box' style='overflow: auto;'><code><xmp>$details1</xmp></code></div>";
}
else {
echo "No detail";
}
?>

Link to comment
https://forums.phpfreaks.com/topic/270777-div-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.