background-coloramp-story

How to set the background color in amp-story?


The best practices guideline recommends setting the background color but does not give an example of how to do so in amp-story.

Can you please provide an example for users to follow?

https://www.ampproject.org/docs/fundamentals/amp_story_best_practicesbest practices - set background color


Solution

  • You can simply add the background-color with styles, add class or style attribute to amp-story or amp-story-page tag.