Skip to content
Advertisement

HTML CSS -zooming div in center of table cell like popup

I am using Angular. In table cell I am using div but I need to show the div like a popup in click event. I made it click event logics but how to show div element like a popup which is placed in between a table cell without using any library like bootsrap or angular material

JavaScript

ts part

JavaScript

css part

JavaScript

I need to this div like a popup in the center of the page is that possible

sample image from internet

https://wisepops.com/wp-content/uploads/2017/12/Nike-popup-1.png

Advertisement

Answer

A simple pop-up which is centered using flex.

You can trigger it by click of button defined to show it and close it using display: none.

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement