Mobile app version of vmapp.org
Login or Join
Phylliss660

: How do I generate this layout? I want to create a template like the below image. The yellow block displays a transparent background colour over the top of the header block. How can I do this

@Phylliss660

Posted in: #Css #Html

I want to create a template like the below image.

The yellow block displays a transparent background colour over the top of the header block.

How can I do this using HTML & CSS?

Thanks.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Phylliss660

1 Comments

Sorted by latest first Latest Oldest Best

 

@Lengel546

Absolute positioning inside relative objects in CSS will give you the ability to position an object outside of the normal flow and to overlap items.

The outer element (which holds the object) should be set to position: relative and the object inside it that you want to control freely should be set to position:absolute.

The position of the absolute object can then be controlled by the left, right, top and bottom properties.

Also, you may find z-index helpful as this specifies the order that objects are layered on top of each other.

Read more here: css-tricks.com/absolute-positioning-inside-relative-positioning/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme