Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
Iam trying to draw a circle on center of page. I can't understand my mistake. Because there is no output. And I am using Windows-10 EDGE.

My Codes
str_solution.Append(@"<style type='text/css'>
                 .brown-circle {
                 display: block;
                 height: 20px;
                 width: 20px;
                 background-color: #B0641C;
                -moz-border-radius: 10px;
                -webkit-border-radius: 10px;
                -khtml-border-radius: 10px;
                 border-radius: 10px;
               position:relative;
                 float:left;
                margin:0 5px 10px 0;
                 } 
                .yellow-circle {
                 display: block;
                 height: 20px;
                 width: 20px;
                 background-color: #f7c639;
                -moz-border-radius: 10px;
                -webkit-border-radius: 10px;
                -khtml-border-radius: 10px;
                 border-radius: 10px;
               position:relative;
                 float:left;
                margin:-8px 5px 10px 0;
                 } 
            
                 </style>");

        for (int i = 0; i < 10; i++)
        {
            str_solution.Append("<span class=brown-circle></span>");
        }
        str_solution.Append("<br/><br/>");

        for (int i = 0; i < 10; i++)
        {
            str_solution.Append("<span class=yellow-circle></span>");
        }
        lbl_circle.Text = str_solution.ToString();


Thanks

What I have tried:

I try to Draw Circle on WebForm. But Not Displaying, May be Browser-Edge?
Posted
Updated 8-Jun-17 13:05pm
v2
Comments
Afzaal Ahmad Zeeshan 8-Jun-17 4:43am    
Do you see anything at all? Please share what is currently being shown there.

Also, check for any errors in the console log.
Richard Deeming 8-Jun-17 12:14pm    
The CSS and markup that you've shown works fine for me: Demo[^]

There must be something else going on that you haven't shown us.

1 solution

Thanks For the Replies!.
The code save the Image @ its URL. And hence working good.
Thanks for the helps!
 
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