CSS
Enhance the appearance of your ProProfs Knowledge Base site with Cascading Style Sheets (CSS). Customize colors, fonts, and layouts to create a visually appealing and unique experience.
Here is an example of a site powered by ProProfs Knowledge Base using its CSS styles:
The client has modified CSS, from color scheme to fonts & other visual aspects, to overhaul the look & feel of our standard ProProfs Knowledge Base product.
CSS has several benefits:
-
It allows you to store style presentation information (such as colors, fonts, layout, etc.) separately from your HTML structure.
-
It gives you precise control over your page’s design and format.
-
It reduces the use of code, thus enabling fast page speed.
-
It allows responsive web designs for a better user experience across devices.
This article covers the following:
- Add or Edit CSS
- Applying CSS Styles
- Styles and Format Drop-Downs
- Changing the Default Font
- Reverting to the Default CSS
- Multiple Sites and CSS
Add or Edit CSS
Step 1: Click "Insert" and select "CSS Editor" from the dropdown menu.
Step 2: An overlay will appear displaying your site’s CSS. You can add or edit the CSS as you wish.
The CSS file comes with the system’s default style. However, you can modify any of these styles.
It includes:
-
The default font style: body {}
-
Bullet and list styles: ul {}, li {}, ol {}
-
Table styles and classes
-
Horizontal Rule: HR {}
-
Hyperlink colors and styles: a{}, a:link, a:visited, a:active, a:hover {}
-
Styling for the home page: #startcontainer {}
You are allowed to change any of the default CSS. You can also add more CSS styles and classes to control the layout of any page.
Applying CSS Styles
You can manually apply CSS to different page elements such as Image(s), Link(s), and Table(s), among others.
To apply CSS:
-
Double-click on the element and go to the Advanced tab.
-
Enter the CSS class name or ID you want to apply to the element.
Below is an example of an image:
Styles and Format Drop-Downs
The CSS powers the toolbar’s styles, format, and other options. If you want to change the formatting, such as the fonts, sizes, colors, etc., you will need to do it in the CSS.
Below is the mapping of elements in the CSS.
Styles Drop Down | CSS Class |
Computer code | .computer_code, code { |
Computer code 2 | .computer_code, code { |
Tip | .tip { |
Info | .info { |
Warning | .warning { |
Below is the mapping of elements in the CSS.
Format Drop Down |
CSS Class |
Normal |
P { , Body { |
Heading 1 |
H1 { |
Heading 2 |
H2 { |
Heading 3 |
H3 { |
Heading 4 |
H4 { |
Heading 5 |
H5 { |
Changing the Default Font
You can change the default font for all pages using the below steps:
1. Click "Insert" and select "CSS Editor" from the dropdown menu.
2. Locate the Body {} class at the top of the list.
3. Locate the font family attribute and font size as highlighted below.
background-color:#FFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
padding:15px;
margin: 0px;
margin-right: 0px;
margin-bottom: 20px;
}
4. Make the change and click OK.
Here are some web-safe font options to COPY and PASTE :
-
font-family: Verdana, Geneva, sans-serif
-
font-family: Georgia, “Times New Roman,” Times, serif
-
font-family: Arial, Helvetica, sans-serif
-
font-family: Tahoma, Geneva, sans-serif
-
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif
-
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif
You can also follow this guide for changing the paragraph and heading styles.
Reverting to the Default CSS
If you break or damage the CSS code, you can click Revert to default CSS to restore the CSS to the original setting.
-
Click Revert to default CSS and hit OK.
-
Refresh the page to restore the original CSS setting.
Multiple Sites and CSS
Each site you create will have its separate CSS styles. Sites do not share CSS styles.
If you want to use the same CSS styles from a site you already created, you will need to copy the CSS from one site and paste it to the new site.
That is all about modifying CSS styles in ProProfs Knowledge Base.
Related Articles