resource / Front-End-Standards

Front-end development standards for Resource.
MIT License
23 stars 1 forks source link

CSS background url(path) absolute vs relative #68

Closed nicetransition closed 11 years ago

nicetransition commented 11 years ago

Avoid absolute paths for images in CSS background url() values

// bad
.selector-name {
    background-image: url(/assets/images/test.gif);
}

// good
.selector-name {
    background-image: url(../images/test.gif);
}
LukeAskew commented 11 years ago

+1

apartyka commented 11 years ago

ditto

adamweis commented 11 years ago

I like this!

nicetransition commented 11 years ago

Yeeeeeah

apartyka commented 11 years ago

thumbsupgif.gif

On Thu, Aug 1, 2013 at 2:25 PM, Kevin Mack notifications@github.com wrote:

Yeeeeeah

— Reply to this email directly or view it on GitHubhttps://github.com/LukeAskew/Front-End-Standards/issues/68#issuecomment-21958693 .

Adam Partyka

nicetransition commented 11 years ago

:+1:

LukeAskew commented 11 years ago

Fixed.