Hamza Tanveer
Hamza Tanveer

Reputation: 321

Is there is anyone how make a four-column dynamic table by using HTML, CSS and JavaScript in Angular

Is there is anyone how make a four-column table by using HTML CSS Javascript in Angular? The table has a search, edit and delete button Data is store on browser only.

Upvotes: 1

Views: 411

Answers (1)

StepUp
StepUp

Reputation: 38134

You can use display:table to create CSS table:

.fooGrid
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1em;
    text-align: center;
}
<div class="fooGrid">
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
</div>

Upvotes: 2

Related Questions