Define a frame in a style sheet
task brazil Updated Sep 10, 2026 1 min read t_DefineTheFrameInAStyleSheet.md
Add style definitions for any custom frame UI macro you create.
Before you begin
Role required: content_admin or admin
About this task
Each frame has its own class name.
Procedure
-
Navigate to All > Content Management > Design > Style Sheets.
-
Select a style sheet to contain the frame definition.
Base system themes use a separate Frames style sheet.
-
Add the following code, substituting the desired frame name and style:
Textdiv.FRAMENAME{border:STYLE;} -
Click Update.
Parent Topic:Format a frame
46 lines · 1.3 KB
---
title: Define a frame in a style sheet
description: Add style definitions for any custom frame UI macro you create.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/platform-user-interface/content-management-system/t\_DefineTheFrameInAStyleSheet.html
release: brazil
product: Content Management System
classification: content-management-system
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Format a frame, Style in Content Management, Configure Content Management sites, Content Management System, Configure UIs and portals, Configure user experiences]
---
# Define a frame in a style sheet
Add style definitions for any custom frame UI macro you create.
## Before you begin
Role required: content\_admin or admin
## About this task
Each frame has its own class name.
## Procedure
1. Navigate to **All** > **Content Management** > **Design** > **Style Sheets**.
2. Select a style sheet to contain the frame definition.
Base system themes use a separate **Frames** style sheet.
3. Add the following code, substituting the desired frame name and style:
```
div.FRAMENAME{border:STYLE;}
```
4. Click **Update**.
**Parent Topic:**[Format a frame](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-user-interface/content-management-system/t_Frame.md)
| title | Define a frame in a style sheet |
| description | Add style definitions for any custom frame UI macro you create. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/platform-user-interface/content-management-system/t\_DefineTheFrameInAStyleSheet.html |
| release | brazil |
| product | Content Management System |
| classification | content-management-system |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Format a frameStyle in Content ManagementConfigure Content Management sitesContent Management SystemConfigure UIs and portalsConfigure user experiences |