LogoLogo
NFTEmbedGravitonHelp
  • 🖼️NFT Embed
  • Intro
    • 🤔What is NFT Embed?
    • 🔢How to use NFT Embed
    • 🎛️Embed Features
    • ❓FAQs
  • Custom Styling
    • Using Custom Styles (CSS)
    • Fonts and Colors
      • Fonts
      • Colors
    • Spacing and Orientation
      • Padding
      • Margins
      • Alignments
    • Code Examples
      • Full Code with Comments
    • Tips for Customization
  • Details
    • ⚙️Features
      • 🧑‍⚖️Auctions
      • 🧑‍🎨Collections
      • 🤝Finders Fee
      • 🏪Marketplace
        • Collection Royalties
      • ⚛️React SDK
    • 🧰Implementations
      • 🔳SquareSpace
      • 🔡WebFlow
      • 🛍️Shopify
  • Resources
    • 🛠️Tools
    • 🙋Support
  • 📩Contact Us
  • 🧲Graviton
  • 🎨NFT Embed
Powered by GitBook
On this page

Was this helpful?

  1. Custom Styling
  2. Spacing and Orientation

Alignments

PreviousMarginsNextCode Examples

Last updated 2 years ago

Was this helpful?

The majority of these settings should get left as default. However, if you feel confident, feel free to adjust and change the parameters.

Adjusting alignment changes the location of content like text. Here are some examples of how text alignment changes using “textAlign” and a direction.

Text Direction
Text Direction
Text Direction

"left"

"center"

"right"

"textAlign": "center", // text is set in the middle of an element
"textAlign": "left", // text is set to the left of an element
"textAlign": "right", // text is set to the right of an element
"textAlign": "justify", // text spans to fit the element
Text aligned to the left
Text aligned to the right