I am using web browser control. I just want to show all spaces with red mark on my browser. so I can remove unnecessary spaces.
I want to do this with css.. because I don't want any changes in my html.
I want to use it on a button. like when i press the button all spaces visible with red mark. and when I again click on that button all red mark invisible. In short I just want to make this button toggle.
Please give me the solution.
Visual controls
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted May 3, 2015, 11:14 AM EDT
So, as you require. You can create function that would replace the empty area with a span container to hold that area. That span can hold a style with color property set to red. So your function would change your HTML (on run-time) otherwise... You cannot do that.
Your HTML represents the view. If you do not change it to fit your needs, you cannot expect anything to happen. Also, CSS is not a hack. It cannot do anything. Unless you use Less or Sass (pre-processors) you cannot expect CSS to alter anything at all. JavaScript, can however, do this task. But still it would require to create child nodes and do the same action that you can do yourself; alter the HTML to represent the changes.
priya32 reputationPosted May 6, 2015, 5:05 AM EDT