You just give it a percentage width. Given the width in percentage, it will always be the percentage of the width of the parent container. If the parent container has no definite width, it will revert to being 100% of the viewport (browser window). Or are you trying to find out something else?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.