Christian Tampa Christian Tampa - 2 months ago 5
CSS Question

CSS, text in a single line

All css text is placed in a single line in folder like

html {font-family:sans-serif; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;


and so on....

Is there any way to put it in the normal way ,like

html
{
font-family:sans-serif;
-webkit-text-size-adjust:100%;
-ms-text-size-adjust:100%
}

Answer

As you suggested, the below is easier to read but the first will also work if you include the closing bracket }

html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

You may also find this page beneficial to read: http://www.w3schools.com/css/css_howto.asp

If you are unsure, you can also use this website to beautify the code: http://www.cleancss.com/css-beautify/