0
<div id="broadcast">
<div class="broadcast_element">
 <div class="broadcast_username"><?php echo $row[0]?>:</div>
 <div class="broadcast_broadcast"><?php echo $row[2];?></div>
</div>
</div>

Simplified CSS:

.broadcast_element
{
 width: 100%;
}
\#broadcast
{
 width: 200px;
}

The problem is: The php script echoes the data in a straight line causing it to the overflow from the div (broadcast).
word wrap: I hate IE, so no way i'm using that.
overflow: the properties do not provide what i want to achieve.

The question simply - I'm looking for a solution that'll solve this overflow problem once and for all. I'm looking for something general i can apply in any similar case.

My thoughts - Being a noob the only way i can think of is using javascript to insert a <br/> after every 200px of data? I know thats sad :P.

Thank You.

2
  • Do you want the data that overflow to be hidden? Commented Oct 14, 2010 at 8:02
  • Oh, i had no idea of that, Think i'll have to register to do that. Cheerios, i'll do it asap. Commented Oct 17, 2010 at 5:51

1 Answer 1

1

Did you try those CSS properties :

Sign up to request clarification or add additional context in comments.

2 Comments

I quote your original post: word wrap: I hate IE, so no way i'm using that. - ? implying you didn't want to use word wrap?
He may want to talk about the php function?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.