i AM new to web development (1 month) and for some reason, a simple CSS issue i am finding hard to understand.
I have 2 DIVs:
<div class="full">
<div class="banner">
My Company logo/slogan
</div>
</div>
With CSS:
.full {
width: 100%;
}
.banner {
background: red;
height: 45px;
}
What i don't understanding is, why does DIV with banner not consume the entire page width? Even though its parent, full, has width: 100% ??
I have had to apply margin-left and right to take full width e.g:
Thanks