Bad inline CSS #6

Open
ninfaj opened this Issue Mar 18, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@ninfaj
Contributor

ninfaj commented Mar 18, 2013

https://github.com/4teamwork/simplelayout.types.common/blob/master/simplelayout/types/common/browser/file.pt#L11

defines:
<a style="background:transparent url(img.png) no-repeat top left">

Why don't you set a class (for sprites) or insert the image as img?

At least you should do something like
<a style="background-image:url(img.png);background-repeat:no-repeat;background-position:top left">
so there is still the possibility to overwrite the background-color for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment