简体   繁体   中英

With only CSS can I make an element cover an entire DIV?

To make it more simple, i'm working on this site https://webdev02.amontagnana.it/ and on the 4th row we can see a text block and an embedded video.

I need to make the video's height just like the block on the left. (it has to be relative too because it has to be responsive to desktop and mobile)

Your site are loading and loading If you are cover an entire DIV. you need to fixed position and increase z-index as much as possible.

you can simply add a custom class on tatsu-column-inner and add the background color black on it

See the attached screenshort

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM