score:0
what about overlaying your link instead of wrapping it around the other html?
something like:
.container {
position: relative;
}
.link {
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
transition: 1s background-color;
}
.link:hover {
background-color: rgba(0, 0, 200, 0.2);
}
<div class=container>
<a class=link href="goes-somewhere"></a>
<div class=markdown>
<h1>my markdown</h1>
<a class=some-other-link href="goes-somewhere-else">this one is in the document</a>
</div>
</div>
Source: stackoverflow.com
Related Query
- Completely turning off validateDOMNesting in React 17
- Smooth animation when turning off a conditionally rendered component in React
- React native text going off my screen, refusing to wrap. What to do?
- React doesn't render autocomplete off
- Turning an SVG string into an image in a React component
- How to wait until React component completely finished updating in Jest and/or Enzyme?
- Text is getting cut off in android for react native
- Turning eslint rule off in eslintrc.json
- validateDOMNesting warning React
- React Google Maps Unable to set scroll zoom off
- React Parent Component completely reconstructed when using Redirect
- Turn off autoComplete for all inputs in React app
- Hold off React Render until after request
- React Native SVG - Setting SVG width and height cause the icon to be cut off
- Turn off ESLint rule (in React app, using WebStorm)
- React not turning HTML string from JSON into text
- How to turn off autoplay for React Bootstrap Carousel?
- Can react hooks completely replace redux?
- Show a React Skeleton Loader until a image load completely
- React JS Not Completely Updating View When Render Is Called With New Props
- React state object turning into "[object Object]" on refresh using sessionStorage
- Turning Vanilla Javascript into React app in Components
- React Material UI Table Name Sorting seems little bit off
- In a react app, where is the best place to kick off the initial API service call for data load?
- How to completely hide Link React component?
- Fetch polyfill in React not completely working in IE 11
- React - execute javascript after bootstrap modal is completely rendered and visible
- Why is my React app completely reloading after a state change?
- Mapbox GL JS Controls Go Off the Map when Resizing a styled-components Container in React
- React app does not fire off onScroll events as expected
More Query from same tag
- change styles dynamically with react memo
- how to get value from select2 in reactjs
- Include css/style loaders in webpack react application
- Adding an Event Listener for Uploading a File that 'Fires' every time
- Splide js + React how to specify certain slide by clicking static thumbnails using '.go()' methods?
- How to change the background color of the input in NextUI
- SharedArrayBuffer will require cross-origin isolation as of M91, around May 2021
- React how to re-render a placeholder on button click
- How to we simulate a file upload in jest
- Lazy load util function in React
- How to change state value when checkbox change using ReactJS
- How I can pass the state and action to Redux in functional component?
- filtering out users in react
- google-map-react populate multiple markers
- ReactJS Formik hidden field sending null value to server
- What element can I use to wrap a Typography component so that it accepts an onClick event listener without using button
- How to add a css property only when condition true using styled components and react?
- Render same component in beforeAll/beforeEvery: testing-library/react
- Input value not showing in the react textbox
- What's a secure way to store token & auth state?
- React 18 doesn't support redux-toolkit or other libraries yet?
- Getting error Cannot read property 'setState' of undefined
- Testing Modal props with enzyme and jest
- How to conditionally import a SCSS stylesheet in Next.js?
- In React, how do I retrieve information from the database after Authentication but before Authorization?
- Uncaught TypeError: Super expression must either be null or a function
- How can i change name of a btn after login in react?
- Warning: React.createElement: type should not be null, undefined, boolean, or number
- How to ensure state is not stale in React hook
- HTTPS redirect with Express and React