Saturday, 15 March 2014

css - How to ignore 2 break lines in html and scc? -



css - How to ignore 2 break lines in html and scc? -

i'm debugging existing java/jsp/struts application, somehow generates 2 break lines , left big space in page :

<br></br> <br></br>

so searched around , found can utilize next in css ignore break lines :

br { display: none; }

see previous question : where did space come in html of struts app?

but cause break lines ignored in app, , not ideal solution i'm looking for, think br's generated struts , hard control, wonder if there way in css define 2 breaks nil [to ignored], maybe ?

brbr { display: none; } br.br { display: none; }

i tried it, didn't work, must in wrong format, css experts here can reply question ?

simple:

br + br {display:none;}

this selects br straight follows br using + selector.

ref: section 5.1 pattern matching , 5.7 adjacent sibling selectors

html css jsp

No comments:

Post a Comment