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
Published 4 years ago
Updated 4 years ago

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.

egghead
egghead
~ 24 minutes ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today