Skip to content

Commit c871de9

Browse files
author
johnaustin
committed
escaped html tags
1 parent f253e75 commit c871de9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/general-development/how-to-apply-styles-to-page-fields-in-sharepoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ With a page field control, you can define the styles used by the content. Author
4242

4343

4444

45-
In the HTML page layout, each page field is wrapped in a **<div>** tag. To apply a style to a page field, you can simply add a style to the **<div>**—for example, `<div style="font-weight:bold"`. But the more common and useful scenario is that you add an **id** attribute to the **<div>** for each page field in the page layout, and then use the **id** as a selector for styles that reside in an external style sheet. This way, if you have multiple device channels, and each channel has its own style sheet, you can apply different styles to each page field for each channel. For example, the following page field of the type TextField (also called Multiple Lines of Text) might have only an **id** attribute on the **<div>** tag.
45+
In the HTML page layout, each page field is wrapped in a **\<div\>** tag. To apply a style to a page field, you can simply add a style to the **\<div\>**—for example, `<div style="font-weight:bold"`. But the more common and useful scenario is that you add an **id** attribute to the **\<div\>** for each page field in the page layout, and then use the **id** as a selector for styles that reside in an external style sheet. This way, if you have multiple device channels, and each channel has its own style sheet, you can apply different styles to each page field for each channel. For example, the following page field of the type TextField (also called Multiple Lines of Text) might have only an **id** attribute on the **\<div\>** tag.
4646

4747

4848

0 commit comments

Comments
 (0)