Removing unnecessary line breaks


show more Removing unnecessary line breaks provides you with in-depth training on Web. Taught by Justin Seeley as part of the CSS: Visual Optimization show less
please wait ...

Removing unnecessary line breaks

One of the easiest ways to speed up your code is to go through it and actually take inventory of any unnecessary line breaks that might be present in your code, and then simply remove those line breaks. And so I have here the Meyer Reset, and there's really not a whole lot wrong with this, but there are some seriously unnecessary line breaks going on in this document. And so let's take a look some of them now. For instance, the focus one here, I don't necessarily need for this to be on three separate lines. I can actually just make it like this. Remember my rule, if it has only got one rule, it is one line.

If it has got multiple rules, it lies on multiple lines, and it has indentation. But in this case, I think this is just fine to have it just like this. Same holds true here. I will just go through and put that up like that. Multiple rules here, multiple lines. Multiple rules here, multiple lines. Everything looks good. In this case, I can remove this just like so. Same thing holds tr...

Removing unnecessary line breaks
Video duration: 1m 57s 1h 11m Beginner

Viewers:

Removing unnecessary line breaks provides you with in-depth training on Web. Taught by Justin Seeley as part of the CSS: Visual Optimization

Subject:
Web
Software:
CSS
Author:
please wait ...