Hacker News new | comments | show | ask | jobs | submit login

Can sombody tell me why this uses the photos as background images for divs? It seems to me like this gallery could also use img tags (which is semantic, crawlable, yadda..)



I think it's so that they can use css media queries. Here's a list of pros and cons for div background vs img tags: http://stackoverflow.com/questions/492809/when-to-use-img-vs...


Perhaps to avoid easily right clicking the image and saving it to your machine? I know it is still easily downloadable, but not so much for a lot of users.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: