ded/bonzo — Issue #55: .css('padding') isn't working
Author: OscarGodson
Created: 2011-12-07 07:28:19+00:00
State: open

For example:

```css
#example {
padding:10px;
font-size:14px;
}
```

```javascript
bonzo(document.getElementById('example')).css('padding'); //Returns a blank string
bonzo(document.getElementById('example')).css('font-size'); //Returns 14px
```

I did some testing outside of bonzo and I'm pretty sure this is because the browsers are converting `padding:10px` to `padding-top:10px`, `padding-bottom:10x`, etc

I just through this in hoping it'd work because i didn't want to write out the utility function myself in my library, but once i write it ill send you a pull request. I believe for margin (didn't test), padding, and other short-hand styles you'll need to see if .css('X') returns a blank string, if so, does padding-top, if padding-top !== blank string then return the value of padding-top back.