#pager { width: 1100px; height: 500px; background: #000; margin: 0 auto; } #header { height: 93px; width: 100%; background: #fdd; } <div id="pager"> <div id="header"> </div> </div> How do I rotate the pink part of the entire width of the page?
#pager { width: 1100px; height: 500px; background: #000; margin: 0 auto; } #header { height: 93px; width: 100%; background: #fdd; } <div id="pager"> <div id="header"> </div> </div> How do I rotate the pink part of the entire width of the page?
#pager { width: 1100px; height: 500px; background: #000; margin: 0 auto; } #header { height: 93px; width: 100%; background: #fdd; } body { margin: 0; } <div id="header"></div> <div id="pager"></div> *{ padding: 0; margin: 0; } body { background: #000; } header { min-height: 93px; width: 100%; background: #fdd; } .container { max-width: 1100px; margin: 0 auto; } <header> <div class="container"> </div> </header> Make the cap positioning absolute and set the initial zero position to the left:
position: absolute; left: 0; #pager { width: 300px; height: 200px; background: #000; margin: 0 auto; } #header { height: 93px; width: 100%; background: #fdd; position: absolute; left: 0; } <div id="pager"> <div id="header"> </div> </div> pager fun "leaves" for the title, hiding out of sight. - ߊߚߤߘКак мне развернуть розовую часть на всю ширину страницы? - where is the overlap of the underlying content? - ߊߚߤߘSource: https://ru.stackoverflow.com/questions/540594/
All Articles