Styling inside components
See original GitHub issueI have used the background image like this:
---
<Image src='https://farm5.staticflickr.com/4810/31993107578_77df74653c_k_d.jpg' alt='comenzando' />
# That's me!
After importing the component. The image is OK, but I can’t seem to get the text right on the page, either it’s on top or on the bottom. Can it be shown centered?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (8 by maintainers)
Top Results From Across the Web
Styling Components In React - Smashing Magazine
styled -components is a library for React and React Native that allows you to use component-level styles in your application that are written ......
Read more >Basics - styled-components
Automatic critical CSS: styled-components keeps track of which components are rendered on a page and injects their styles and nothing else, fully automatically....
Read more >Component styles - Angular
Sometimes it's useful to apply styles to elements within a component's template based on some condition in an element that is an ancestor...
Read more >4. Four ways to style react components | by Agata Krzywda
There are four different options to style React components. All depend on your personal preferences and the specific complexity of your application.
Read more >8 Ways to Style React Components - GeeksforGeeks
style components is a third party package using which we can create a component as a JavaScript variable that is already styled with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m having almost exactly the same issue.
For example, w/ the dark theme (so that the text will be visible over the image) and this code:
I get this:
Note how the slide content is not centered vertically and that there is a
1em
margin above the image.Where as with:
I get:
How can I set the background image for a slide and have the text content be vertically centered the way it would otherwise. Should I be using a custom layout instead?
Thanks. It is now in the image, but the style is not the same as the rest of the deck. I’m using h1, it gets the font right, but not the size; it’s also on the top of the page. Does it have different styling then?