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?
set white-space property to normal.
white-space:normal;
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.
Add the style word-wrap:break-word
to your span
. That should fix your problem.
This can probably be achieved with the white-space
and overflow
CSS properties
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With