CSS Test Post

By Daniel Miessler on August 22nd, 2007: Tagged as CSS | Design | Programming | Semantic
  • http://sitening.com Jon Henshaw

    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 ;)

  • http://sitening.com/ Jon Henshaw

    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 ;)

  • http://www.tssci-security.com/ Marcin

    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

  • http://www.tssci-security.com/ Marcin

    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

  • http://dmiessler.com/ Daniel Miessler

    @Jon Henshaw No, your comments are greatly appreciated.

    @Marcin Thanks for the heads-up. I’ll get it taken care of.

  • http://dmiessler.com Daniel Miessler

    @Jon Henshaw No, your comments are greatly appreciated.

    @Marcin Thanks for the heads-up. I’ll get it taken care of.

  • Elpres

    Take a look into your single posting template, the first 8 lines are there twice.

  • Elpres

    Take a look into your single posting template, the first 8 lines are there twice.


Top

Popular

Information Security / Technology

Politics

Philosophy & Religion

Technology & Science

Culture & Society

Miscellaneous

Arguments

Projects

Collections

Twitter

What I'm Reading

Favorite Books and Essays

Top Blog Categories

Inputs