score:1
Accepted answer
you could style any element inside your div by using the *
css selector :
const div = styled.div`
* {
//style applied to every elements
}
`;
to add space after each of them, you could use the after
pseudo-class like this:
const div = styled.div`
* {
&::after {
content: " "; //space inserted after each element
}
}
`
Source: stackoverflow.com
Related Query
- How to add space between all children of div
- How can I add styles to all the children of an element
- How can I add space between the title and icon? in react
- How can we add a space between nomineeFirstName and nomineeLastName while iterating in react hooks page
- Textarea add div for each space between each word
- How can I add more space between points in recharts scatter graph?
- How to add space between in-line elements without using  
- React JSX: How do I add white space between navigation links in my navbar
- ReactJS: How to add a style to children if all children are functional components?
- How to make a scrollable section inside div that fills in all the remaining space of said div
- How to add an onClick for a parent div and not letting its children inherit it?
- How can I settle div children to cover up the remaining space regardless of the order in html
- How to add padding and margin to all Material-UI components?
- How to conditionally add or not onClick on a div in react?
- How to add a <br> tag in reactjs between two strings?
- Add space between two elements on the same line
- How to add space in react native application name?
- How to format all my vscode files from 4 space indentation to 2 spaces?
- How to give space in between the fields in material UI?
- Redux: How to add item to Array, and return Array with all items added
- How to add padding between label and control on FormControlLabel
- How to dynamically add class to parent div of focused input field?
- How to add all unknown words by Code Spell Checker to dictionary or ignore them when language is another than english?
- REACT.JS: How to loop over all NavBar buttons and remove their class and add "active" class to the clicked button
- How to remove white space between the tabs in react navigation top bar
- How to reduce space between Items in horizontal Flatlist
- How can add all files in public directory to the build directory with parcel-bundler
- How can I not pass children as props. Instead, nest children between the opening and closing tags on React?
- css grid how to add line between rows?
- Regex: How can I select all the contents between two headings?
More Query from same tag
- useRef to create a cellEditor in ag-grid in React
- How to navigate based on state using react router
- Changing the output of a .map depending on the value
- React validate input field using errors array
- React-Table, each cell goes to a new line, why?
- Prefetching not working on dynamic routes Next.js
- Post Review on product through Amazon SP-API
- ReactJS Passing data from child component, to parent, back to different child
- typescript: a component must have open()
- Return boolean value from Material UI Radio to use in Yup .when Validation
- shouldComponentUpdate equivalent for functional component, to ignore state changes
- Second value is coming back as undefined in action in redux/react
- parsing wordpress api json response in react using .map
- Does this two useEffects makes a long loop?
- p5.js mousePressed event returns Undefined
- React stackable snackbars/toasts
- Reactjs looping through array and switch
- Hide react bootstrap toast when user clicks outside
- Display key value pairs from looping through an array of objects
- react typescript create ref to access state of child
- How to gain access to all of an elements props when passing down props without having to list them in React?
- ESLint: 'Partial' is not defined in typescript
- Dynamic tag name in React JSX
- Property 'ref' does not exist on type 'A'.ts(2339) - React, TypeScript
- Protractor tests with React.js application slow to launch
- Using prevState Callback function in UseState react Hook
- React: Javascript filter search not working on backspace
- React input text box loses focus after typing a character
- Draft js add new block on return key
- Pipedrive webforms not loading inside react bootstrap modal