Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#13472 closed bug (notabug)

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.

Change History (3)

comment:1 Changed 10 years ago by anonymous

That should be line-height:100;, sorry. Not sure why I wrote 90!

comment:2 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

comment:3 Changed 10 years ago by Timmy Willison

#13855 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.