Side navigation
#13472 closed bug (notabug)
Opened February 18, 2013 11:53AM UTC
Closed February 24, 2013 09:32PM UTC
Last modified May 06, 2013 04:29PM UTC
jQuery css lineHeight doesn't append px to value
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None | 
| Component: | unfiled | Version: | git | 
| Keywords: | Cc: | ||
| Blocked by: | Blocking: | 
Description
    $('element').css({
        height:100,
        width:100,
        lineHeight:100
    })
Would result in a style of height:100px; width:100px; line-height:90;
''px'' should be added to the end of the value for lineHeight.
Attachments (0)
Change History (3)
Changed February 18, 2013 11:55AM UTC by comment:1
Changed February 24, 2013 09:32PM UTC by comment:2
| resolution: | → notabug | 
|---|---|
| status: | new → closed | 
Line heights can be unitless. https://developer.mozilla.org/en-US/docs/CSS/line-height
That should be line-height:100;, sorry. Not sure why I wrote 90!