Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Actual value for CSS property like "auto", "inherit", etc in inspector?

Is there a way to find out the actual value the browser uses when the CSS value is set to "auto" or similar? I'm looking at the computed CSS values for an element in the inspector but it stills says "auto" and I would like to determine the exact value.

UPDATE: Looks like most properties automatically compute, but some don't. Here are examples of properties that still show up as "auto" when you look in the computed panel:

  • top
  • bottom
  • left
  • right

Not sure why.

If anyone was wondering, the reason I was even trying to figure this out is because I'm currently maintaining a website using an older version of Bootstrap (v2.1.1), which sets top for .modal.fade.in to "auto" when in a browser with a width < 768px. Which, for my browser at least, results in the modal vanishing from view. So naturally I wondered where the modal had gotten to and wished I could see the actual value Chrome set top to.

Looks like one of the changes in (v2.2.x) was changing top: auto to top: 20px which would probably fix the issue.

like image 275
Jordan Reiter Avatar asked Dec 06 '25 03:12

Jordan Reiter


1 Answers

In chrome you have tab computed. You see those values there.

enter image description here

Computed tab

enter image description here

http://jsbin.com/yefofe/edit?html,css,js,output

like image 68
Mosh Feu Avatar answered Dec 07 '25 18:12

Mosh Feu



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!