score:6
Accepted answer
<a className='btn btn-default'>
<span>This will be line 1</span>
<span> followed by line 2</span>
</a>
@media only screen and (max-width: 30em) {
.btn span { display: block }
}
score:0
input[type="submit"] {
white-space: normal;
}
Source: stackoverflow.com
Related Articles
- Force a line break inside the button's text when using small screens
- Checking text appears inside an element using react testing library
- Trying to flip the position of the OK and Cancel buttons inside an Antd modal using okButtonProps and cancelButtonProps for button position
- React: Infinite loop when using custom hook inside of useEffect?
- Service worker catching the __/auth request to Google when using Firebase Authentication inside React-Boilerplate
- Getting error when using FormattedMessage inside a module: Error: [React Intl] Could not find required `intl` object
- Is there a way to have line breaks in text without using dangerouslySetInnerHTML?
- how to line break on placholder of text area
- How to get current state inside useCallback when using useReducer?
- How to fix missing dependency warning when using useEffect React Hook
- What's the difference between "super()" and "super(props)" in React when using es6 classes?
- 'React' must be in scope when using JSX react/react-in-jsx-scope?
- State not updating when using React state hook within setInterval
- When should I be using React.cloneElement vs this.props.children?
- Use custom build output folder when using create-react-app
- What happens when using this.setState multiple times in React component?
- React-native view auto width by text inside
- How to select all text in input with Reactjs, when it focused?
- Using async/await inside a React functional component
- Does React batch state update functions when using hooks?
- How do I avoid 'Function components cannot be given refs' when using react-router-dom?
- Typescript complains Property does not exist on type 'JSX.IntrinsicElements' when using React.createClass?
- window not defined error when using extract-text-webpack-plugin React
- Getting an error "A non-serializable value was detected in the state" when using redux toolkit - but NOT with normal redux
- _react.default.createContext is not a function when using react-redux
- TypeError dispatcher.useState is not a function when using React Hooks
- MUI - Styling text inside ListItemText
- How to query by text string which contains html tags using React Testing Library?
- React prevent form submission when enter is pressed inside input
- Correct way to type nullable state when using React's useState hook
- Property 'setLink' is missing in type 'ApolloClient<NormalizedCacheObject>' but required in type 'ApolloClient<any>
- Optimistic rendering & useEffect
- Prevent browser back button for a specific page only in react
- How to type a React component definition?
- Javascript Unable to validate computed reference to imported namespace
- Why do my two click events in my React app run at the same time?
- Add a blank column to Material UI Grid without using padding
- Typescript React: Access component property types
- Getting error as 'Cannot read property scrollIntoView of null' when used scroll down code
- React Native Duplicate resources
- In react with redux, how to do post request
- React - What does the callback in forceUpdate do?
- React hook useRef not working with styled-components and typescript
- How to Create Custom Dropdown Field Component with Redux-Form V6?
- Ipify Getting Blocked By Cors. How do I get it be allowed?
- How to change swipe direction in swiper.js?
- React does not re-render updated array state
- When to use React Hooks
- React Native + Jest EMFILE: too many open files error
- Render script tag in React Component