Hey there! I am new to the world of html/css and working on my very first webpage.
I'm facing an issue with setting the background color for a div with the class inner
. Currently, it is displaying the background color set in the banner-bottom
class.
Here is the snippet of my html code:
.banner-bottom{
background:#F7F7F7;
padding:1em 1em;
text-align:center;
position: relative;
}
.floatleft {
float:left;
width: 25%;
height: 100%;
}
.floatright {
float:right;
width: 75%;
background-color: #EEE;
position: relative;
text-align: center;
}
.inner{
position: absolute;
height:100%;
text-align: center;
background-color: #1b1b1b;
width: 100%;
}
<div class="banner-bottom" width="100%" >
<div class="floatleft"><input type="button" class="pink_btn" value="Who?"/></div>
<div class="floatright"><div class="inner"> some values here</div></div>
<div style="clear:both;"></div>
</div>
Any tips on where I might be going wrong? Thank you for your help! :)