Click here to Skip to main content
16,021,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My scenario


this is span inside paragraph <span runat="server" id="phone">.



iam setting the value of phone from code behind(c#)

then the result :

this is span inside paragraph phone.

i wanted to change the color of phone to blue.so i have added css to the phone:

this is span inside paragraph <span class="phonenum" runat="server"id="phone">.



.css class
span.phonenum
{
color:blue
}

now the result is :

this is span inside paragraph
phone
.


I need to display in same line.
please do the needful
Posted

1 solution

Try by adding Width to span may this solve your problem.

i.e
MIDL
span.phonenum
{
color:blue
width:100%;
}


or see for any control which is not allowing Span to wrap

Tell me if I missed something.

Please vote and Accept Answer if it Helped.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900