Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does CSS accept 'pixel' in decimals?

I was going through jQuery functions.

Lets take this as an example:

http://api.jquery.com/slideUp/

If you do 'Inspect Element' on your browser, you can see the height of the div changing. The height takes decimal values of pixels. How to do that with javaScript?

like image 963
Navneet Saini Avatar asked Dec 05 '25 10:12

Navneet Saini


1 Answers

Don't look things up on W3Schools, they are a bad source. In general, when you want to know something like this, just look at the specification. Lengths are <number>s, which can include fractional values.

like image 170
Jim Avatar answered Dec 06 '25 23:12

Jim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!