Search code examples
twitter-bootstrapbootstrap-4css-variables

Is it normal for you to see :root in your inspect page when using Bootstrap 4?


enter image description here

Hi, I'm just wondering if it's okay to see this when you inspect a website? I'm using Bootstrap 4 on a project and this bothers me because it looks unprofressional when you look at it.

If it does look unprofessional, how can I hide it in the inspect page?


Solution

  • Yes, it's normal. Bootstrap utilizes CSS variables which use :root:

    https://getbootstrap.com/docs/4.0/getting-started/theming/#css-variables

    I have no idea why you'd think it looks unprofessional. The appearance of the browser inspector doesn't effect anything.