Hi
I have problem with span tag padding paroblem can I do fix it with css or javascript
here is code which hard coded for left and right padding I have ad and <br />
I want programatic way to fix it with css or java script
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body style="font-family:'Trebuchet MS', Arial, Helvetica, sans-serif; font-size:24px; line-height:1.2em">
<div style="width: 250px;">
<p>
<span style="background-color: #009; color: #FFF;" class="blocktext"> This is what I want to <br />
happen where one <br />
long string is wrapped <br />
and the text has this <br />
highlight color behind <br /> it. <br />
<br />
Notice the padding to the left and right above - which I can only make by adding nbsp and br tags at the end of the line. I have to do this manually (otherwise it looks like this).</span></p></div>
<div style="background-color: #009; color: #FFF; padding-right: 12px; padding-left: 12px; width: 226px;">
<p>I do not want a solid rectangle of color behind the whole paragraph like this. </p>
</div>
<p> </p>
</body>
</html>
also here is examle what I exactly need
http://www.asteraweb.co.uk/wrap_example.html
This is urgent plz suggest me better way
Thanx