Posts Tagged with percent

Displaying 1-2 of 2 results.
Resolved: HTML CSS youtube vimeo video width 100 perccent
posted by admin on May 22, 2016
I want to stretch my youtube and vimeo video embed or iframe.Read more
Resolved: How do I horizontally center an absolute positioned element inside a 100% width div?
posted by admin on January 1, 2016
In the example below, #logo is positioned absolutely and I need it to be horizontally centered within #header. Normally, I would do a margin:0 auto for relatively positioned elements but I am stuck here. Can someone show me the way?

HTML

<div id="header">
<div id="logo"></div>
</div>


CSS

#header {
background:black;
height:50px;
width:100%;
}

#logo {
background:red;
height:50px;
position:absolute;
width:50px
}
Read more