0
I’m suffering from a code where I need to leave a particular banner with a predetermined size in the browser when opening the page, but every time I open the page, it gets the full size of the browser. I don’t know exactly how to determine this parameter in CSS (or HTML) and from where to do it.
Below, follows a model of what I want to do.
1 - Image with adjusted banner:
2 - Image with full screen (what I do not want)
Is there some kind of div
with the predetermined size?
Can someone help me? Follow my CSS code:
header {
position: relative;
}
header .overlay {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: url(../img/slider-overlay.png) repeat;
}
header .carousel,
header .item,
header .active {
height: 100%; /* Aqui se eu colocar 1024px, o css nao assume o tamanho determinado */
}
.carousel-inner {
min-height: 500px;
height: 100%;
}
That background is to be on the same overlay?
– RafaelTSCS
Please show the html code
– RafaelTSCS
but the one you sent is already working OK. For your problem, it takes the code you are using.
– RafaelTSCS
Ola Rafael, it’s the same code. If you open the code in a browser, you will see that the banner will open in full, I would like to have control of the banner size so that it can be viewed with the other content of the page below. I would not like the banner to be in full screen in the browser.
– user33011