In react I have a div container with a min width of 200px. Inside of this container I…
Jump to turn (7)
- 1In react I have a div container with a min width of 200px. Inside of this contai
- 2I have several identical div elements in styled components. What I want to do is
- 3No I need to do it using a specific CSS selector not a separate Styled component
- 4Do not add any additional classes! Use a css selector that will take the last in
- 5I have a React components to which I want to add styles through react object. Ho
- 6@media (max-width: 1280px) {
- 7@media (max-width: 1280px) {max-width: 200px} How can I write this instruction i
- User
In react I have a div container with a min width of 200px. Inside of this container I want to have another div called SLineWrapper. Inside of SLineWrapper I need to render a different amount of gray colored div blocks with text inside of them called STag. All of these STag div elements must be in one line and there should be a gap between them equal to 4px. I also need a functionality that for example if there are several STag elements I need to place as much as possible of them on one line within SLineWrapper and if the text of the first of them is 30px long, the second's text is 20px long and the last one's text is 200px long I want the last one's text to still be placed on the first line but cut it at the end of available line space and place three dots in the place of the cut instead. And also if for example there are two elements where one is short but the other one is long I want the same functionality. Basically I need to place as many STag elements on one line in full length as possible, if one of them takes more than there is available place on the line then simply cut the text within it and if there are other STags elements after that, then cut them out too. How can I do this with Css?
- Assistant