-1

I have this situation:

enter image description here

In the left I have a tree with my companies and in the right a DIV with div which I will draw my matCard (angular material).

I would like that MyCard div can fill all with margin of 30px.

If I set two matCards second one will be under MyCard with 30px of margin between them.

How can I do it using CSS? to fill MyCArd to all myMainDi vwith 30px of margin. If I change width length that card change the with automatically.Thx

TylerH
  • 20,799
  • 66
  • 75
  • 101
Dave
  • 7,028
  • 11
  • 35
  • 58

1 Answers1

0

You should be able to set the width of the card to 100% which will make it fill in the space. Then also set the margin to your 30px to keep the space on the edge.

I think it would help if you shared your html and current css.