How to stop breaking tables border when page is spliting?

Tags: html,css,,frontend

Problem :

I want to have on my website cards with border made in CSS and showing 3 cards per column. The problem is that i don't want to split cards. My CSS:

.card {
    border-style: ridge;
    border-width: 3px;

Cutted Cards

How to stop spliting cards?

Solution :

Add break-inside: avoid; to .card element:

.card {
    border-style: ridge;
    border-width: 3px;
    break-inside: avoid;

    CSS Howto..

    How can I keep my CSS transform (rotate & skew origin) from moving a few pixels to the right?

    How do I optimize a very loooong page with TONS of images on it?

    How to add or create an illusion of movement to a fixed div?

    How can i learn CSS easily?

    specifiy UL properties for nested class (sociallinks) but still it is working as a property of parent class (header) how can i solve it?

    How to slow down the last few frames in a CSS sprite animation?

    How to customize devise login and signup forms created using the simple_form gem?

    How to apply different image styles to the same image used on main html page and pop up modal

    How to add CSS class dynamically to html element

    How to push a div from the top in percentage with css?

    How to add vertical scrolling to Windows 8 app in snapped view

    How to include CSS for a specific part of the page

    how to remove xlink default styling

    How to hide specific text from content wihtout calling any CSS?

    How to override Zurb Foundation css properties using rails 3.1?

    How to hide overflow on slideshow without hiding arrows?

    Why are div's not staying in row and how to get them to?

    How to strongly force line-height in css, with no streches?

    How to generate CSS using Garden with ClojureScript (lein-garden)

    How to change inline css using jquery in joomla

    Angular. How to set css properties for “after” and “before” DOM psuedo elements

    how to center a box using blueprint css framework

    how to create proportional image height/width

    How am I supposed to address elements that are not a direct child of a given element in CSS?

    Openlayers Map is shown only if the CSS contains a syntax error

    how to change some css Properties according to text length

    How to pop a dialog box /iframe/Lightbox like one below above the webpage content [closed]

    How to control the postioning of a fieldset with css?

    How to make CSS flex properties compatible with older browsers?

    How to apply css styles in embed widget