From the course: SharePoint 2019: Customizing with Themes and CSS

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Define new elements in your stylesheet

Define new elements in your stylesheet - SharePoint Tutorial

From the course: SharePoint 2019: Customizing with Themes and CSS

Start my 1-month free trial

Define new elements in your stylesheet

- [Instructor] What we're going to do next is create a few custom elements and then we're going to add them into our style sheet. Before we do that, though, let's make some decisions about what we're going to create. Remember, we always want a reason to be doing this, right? So, let's describe our scenario for using custom elements. I'm going to be regularly publishing an online newsletter via a page in my site. I want to keep all pages archived, and I want to keep the look very, very consistent. So, what do I need? Well, I think I need two levels of headers, and I need to have some content text, and I need bulleted lists, and also, I want no underline on hyperlinks. Now, since I know enough CSS to set these codes up, this doesn't present too much of a problem, right? Let's switch back over to the style sheet. Now, on the style sheet, all we need to do is type our element names and attributes, and I'm going to set these all up as class items, so I will start with a period, and the…

Contents