Jump to content
  • 0

Styles on HTML DataPage



5 answers to this question

Recommended Posts

  • 0
Just now, joneslovescaspio said:

Hello, I am following a related article in which I can apply a style using the header on a DataPage. I am using a HTML DataPage but I can't seem to find a header.  How do I apply the style? Thank you. 

Hi, you can actually place the code of the style that you wanted to apply directly on the HTML DataPage. If you are following this User specific redirect after login: https://howto.caspio.com/tech-tips-and-articles/common-customizations/create-user-specific-redirect-after-login/,  styling the HTML DataPage is not necessary. You will need to place the styles on the Header on all of the DataPages manually, and not on the HTML DataPage as it will not affect your UI. 

Link to comment
Share on other sites

  • 0


Just to share some information, I usually apply a style on the authentication fields selected on my HTML DataPage using an inline-CSS.

For example, a users logs in, I would like to display "Welcome, [@authfield:FirstName]" and apply a blue font color on the HTML DataPage, I just apply inline-CSS like <h1 style="font-color: blue;"> Welcome, [@authfield:FirstName] </h1>. That is how I apply the style. 

Here is a reference if you need information about inline-CSS: https://www.w3schools.com/html/html_css.asp#:~:text=try it yourself.-,Inline CSS,-An inline CSS

Link to comment
Share on other sites

  • 0

Hi! Just sharing this tip. You can also use Font icons such as Font Awesome for labels.

To apply in the DataPage, follow these steps:
1. Insert Header and Footer. In the Header, insert the installation CDN

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/js/all.min.js"></script>

2. Search your icon here: https://fontawesome.com/v5/search?o=r&m=free&s=solid
3. Copy code snippets such as <i class="fas fa-users"></i>
4. Paste the code in Labels or any HTML code where you like to add an icon.

Sample Result:


- https://fontawesome.com/
- https://cdnjs.com/libraries/font-awesome

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...