1. 42
    Update the Styles of React Leaflet Popups
    25s

Update the Styles of React Leaflet Popups

Colby Fayock
InstructorColby Fayock
Share this video with your friends

Social Share Links

Send Tweet

We have our content! But the default styles aren't the greatest. It's a little hard to read and takes a little more room than it should -- but we can fix that!

Click here for exercise instructions

Colby Fayock: [0:00] To update our styles, we can start by adding a class to our div. Now, I can use that className to create a new style such as if I wanted to style the h3 and change the font size and change the margin on the bottom. I can see on my h3 that my styles were applied.

[0:12] I'm going to also paste in a few more styles such as my unordered list where I'm going to strip the padding in the list style. I'm going to change the margin of each list item. On the last list item, I'm going to remove that margin. If I click that pop up, I can see all my new styles.