Editing the styles.css File
  • 28 Jun 2022
  • 1 Minute to read
  • Dark
    Light

Editing the styles.css File

  • Dark
    Light

Article summary

The styles.css file lets you edit the style and layout of the User Portal. You can use this file to add to build on and override the style we provide for the User Portal by default.

Consider using the .nx class to easily spot existing styles that you override .
 /* Making all buttons on the User Portal square */

.nx .btn {   
    border-radius: 0;
}

Hiding Elements with CSS

You can also use styles.css to hide specific elements on the User Portal. Hiding elements using styles.css is a two-step process.

You first need to find the ID or data component name of the element you're trying to hide on your User Portal by inspecting a page that contains the element.

We'll use the Maps section on the User Portal Bookings page as an example.

image.png

Inspect your page and find the element you're trying to hide.

image.png

In this case, the id of the Map element we want to hide is "map_link".

image.png

Once you've find your element's id or data component name, you can alter it's display through the styles.css file.

All you need to do is set the element's id display property to none and save your changes.

#map_link {
    display: none;
    }

The Map section should now no longer appear on the User Portal.

image.png


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence