Comments (4)
@rachelnabors might be interested in when this lands
from assetgraph-sprite.
@rachelnabors is there a reason for using padding-top
instead of height
to define the height on the individual images?
from assetgraph-sprite.
Ooooohyeaaaah there is. padding-top
can let you define the "height" of an element in relationship to its parent's width
. I'm working with designs now where I don't always know the parent element's width
, so I've been using a pseudo-child element technique, as seen in the first reply here:
http://stackoverflow.com/questions/12121090/responsively-change-div-size-keeping-aspect-ratio
from assetgraph-sprite.
A heads up, I use sprites in ways most people do not. But my sprites take a beating.
from assetgraph-sprite.
Related Issues (10)
- Sprite instructions don't get removed from the CSS HOT 2
- Multiple definitions of sprite HOT 5
- Retina images (pixel density) HOT 11
- Emit warning on non-supported background-size
- Investigate why the spriting isn't always deterministic
- Paddings and offsets HOT 1
- spriting fails HOT 2
- Different bin packing algorithm
- canvas-heroku HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assetgraph-sprite.