Positionig menu elements in percentage doesn't work
Hi, i've a simple code of a web page formed by a body, a menu and nested titles inside the menu..
What i want is that elements inside to te menu are vertically positioned at centre of it, so, margin-top of title should is 50%
The problem is that the code doesn't work, and seems that percentage always refers to the body height element instead of menu height..
My doubt is: positions setted in percentage, always refers to direct parent of an element, or deep hierarchies are not supported, so, it alway refers to the body?
questo è il CSS
background: rgba(0, 102, 206, 0.5);
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)