Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
52
rated 0 times [  56] [ 4]  / answers: 1 / hits: 39279  / 14 Years ago, sun, december 26, 2010, 12:00:00

I am using the following code



$(#numbers a).css({
color:white,
text-decoration:none,
padding::5px
});


The color and text-decoration change just fine, but the padding is not added to the element. How should I fix this?


More From » jquery

 Answers
4

You have a stray colon in your padding property which is causing it to not be recognized:



padding::5px


Remove it and it should work:



padding:5px

[#94492] Wednesday, December 22, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
madalyngriseldas

Total Points: 167
Total Questions: 92
Total Answers: 85

Location: Iceland
Member since Sat, Sep 17, 2022
2 Years ago
;