Line break in html/css code
When I want to handle html/css code in js/jquery it seems that line breaks aren't allowed. This of course makes the code less readable. Is there a workaround to this or is it simply to accept?
This doesn't work:
- $("head").append("<style type='text/css'>
- #table {table-layout: fixed;width:650px;text-align: left;border-collapse: collapse;}
- </style>");
This works:
- $("head").append("<style type='text/css'>#table {table-layout: fixed;width:650px;text-align: left;border-collapse: collapse;}</style>");