Avoid space between html tags

 


  • Problem: Using Dreamweaver, if I select 'Apply source formatting' it often occurs that two asp.net tags (for example a textbox and a button) are put on separate lines, resulting in a space between them when viewing in a browser. You can use css float:left on the elements to avoid this, but the disadvantage of using float is that you always have to take care of the position of the first element after the floating elements. So my question is: are there any other options in this case?

  • Solutions:

            1 . Setting display:block in css

            2 . You can use comment like this:


Reference: https://stackoverflow.com/a/44713328/4935811

Post a Comment

Previous Post Next Post