Set an arbitrarily large negative margin and equal padding on the block element and overflow hidden on the parent.
td {
overflow: hidden;
}
td a {
display: block;
margin: -10em;
padding: 10em;
}
More Related Contents:
- Why does my design elements look different in all browsers? UPDATE [closed]
- Set width on div
- How to Make columns in row [closed]
- Is it wrong to change a block element to inline with CSS if it contains another block element?
- How to position text over an image with CSS
- CSS selector by inline style attribute
- :last-child not working as expected?
- Horizontal list items
- HTML/CSS – Best practice for preserving white space on certain elements?
- Input size vs width
- Stretch background image css?
- Bootstrap – align button to the bottom of card
- Weird effect when applying transparent border over an element with a gradient background
- Why does CSS work with fake elements?
- padding is not working in Safari and IE in select list
- Deploying just HTML, CSS webpage to Tomcat
- Loading an external font via inline CSS
- Center form submit buttons HTML / CSS
- Center align container and left align child elements
- CSS object-fit: contain; is keeping original image width in layout
- Remove scrollbar from iframe
- Flexbox on IE11: image stretched for no reason?
- CSS animate custom properties/variables
- How to see an HTML page on Github as a normal rendered HTML page to see preview in browser, without downloading?
- Firefox 30 is not hiding select box arrows anymore
- click link below a higher z-index div [duplicate]
- Img’s max-height not respecting parent’s dimensions
- Setting the image `width: 0` hides it, while `width: 0%` makes it occupy the space, too
- How to play CSS3 transitions in a loop?
- HTML canvas with scrollbar