Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Account icon CSS display

PolPol
edited November 2006 in Vanilla 1.0 Help
I noticed that Vanilla's default theme shows account icons by doing things like <div class="CommentIcon" style="background-image:url('...');"> </div>. I'm wondering why it does this instead of using an <img> tag. I know <img> is often misused to present layout elements, but that's not a legitimite objection here; an account icon is actual content, not layout. Does anyone else have any thoughts on this?

Comments

  • Options
    because with img tags i can right click and say save image as
    with the css method i cannot do that

    I know thats not a valid point, but its interesting anyway. :)

    this could be an excellent example of Divitis
  • Options
    I think it's partly because using css we dont have to bother with resizing the image. I'm pretty sure it used to use the image tag but naturally it's quicker and less load on the server if it just serves up and crops the image rather than resizing it and loading it.
This discussion has been closed.