0

I have two components called customer-details and customer-bookings which are called by their selectors in app.component.html file as shown in below code

     <app-customer-details></app-customer-details>
     <app-customer-bookings></app-customer-bookings>

The components should look like this(i,e one below the other).

enter image description here

But it is overlapping like this.

enter image description here

Here i am facing overlapping issues,I tried to solve it by setting height to 50vh for each component. But i want to solve this overlapping issue without setting the height manually.

Here is the stackblitz link.

2
  • 3
    Remove table{ position:absolute; } from your customer-details.component.css Commented Sep 25, 2018 at 9:43
  • Thank you so much. Commented Sep 25, 2018 at 9:44

2 Answers 2

1

You should remove this from your table style:

position:absolute;

in customer-details.component.css

Sign up to request clarification or add additional context in comments.

Comments

1

Noting to do with the component. Just modify the CSS.

table{
  /* position:absolute; */
}

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.