DISQUS

danielmiessler.com | grep understanding: CSS Test Post

  • Jon Henshaw · 2 years ago
    In general, you shouldn't name your IDs and classes by their attribute. For example, .red { color:red; } is a no no. Instead, call it by it's function, like .alert or .warning. That way, if you want to apply other attributes to it and even change the color completely, you can. Otherwise, there's really no difference between doing class="red" and doing an inline style of style="color:red;"

    Now you may be up to something else that I'm not aware of and this may all just be a test that you're doing, but I couldn't let it go when I saw it. Especially since the rest of your code is excellent. That is all. I hope you don't take my comment the wrong way. If you do, please ignore me ;)
  • Marcin · 2 years ago
    In your .codeblock style, the text can traverse out of the background block by at least 4 characters. 'eq 0' will actually reach * UNIX's find Command.

    This has been tested on Firefox 2.0.0.6 on Ubuntu 7.04 running NoScript
  • Daniel Miessler · 2 years ago
    @Jon Henshaw
    No, your comments are greatly appreciated.

    @Marcin
    Thanks for the heads-up. I'll get it taken care of.
  • Elpres · 2 years ago
    Take a look into your single posting template, the first 8 lines are there twice.