Reputation: 574
I have a div that is a block and have background correctly, inside this div there is a span however the span won't wrap the text inside it but instead pass over the div block.
<div id='code'><span class='kw'>string</span> str = <span class='str'>"SetResult('LINK1,LINK2', TagMatch(Return(TagMatch(Download('http://www.google.com\'), '&lt;a', ''), '5,6'), 'onclick=gbar.logger.il(1,{t:5}); class="</span>gbzt<span class='str'>" id=gb_5 href=\"', '\"'));Download(GetResult('LINK1'))"</span>;<br/><span class='Var'>Scrapper</span> scr = <span class='kw'>new</span> <span class='Var'>Scrapper</span>();<br/><span class='kw'>string</span>[] results = scr.Multiple(str);</div>
You can view the problem page at here http://innosia.com/Home/Article/WEBSCRAPER Anyone can please help?
Upvotes: 8
Views: 14511
Reputation: 10246
use word-wrap:break-word;
in CSS but if you don't like it, use #code{overflow:auto;}
.
On you page you have multiple IDs code
which is not good. Try to use unique IDs.
Upvotes: 6
Reputation: 27039
This can probably be achieved with the white-space
and overflow
CSS properties
Upvotes: 2
Reputation: 26812
Add the style word-wrap:break-word
to your span
. That should fix your problem.
Upvotes: 2