Hey guys,
I think this is going to be an easy one for all you .css gurus here
I want my top and bottom div’s to completely stretch from left to right. I thought this was achieved by setting their width attributes to 100%
I’ve sort of remedied the issue by setting the margins as negative values, e.g. -20px.
Here’s what I’ve got atm.

My .css:
#top {
position: fixed; top: 0;
width: 100%;
height: 20%;
background-color: #000000;
padding: 0px;
}
#bottom {
position: fixed; bottom: 0;
width: 100%;
height: 20%;
background-color: #FF0000;
padding: 0px;
}
I want the colours to span right to the side (Left).
Cheers,
SW.
I think this is going to be an easy one for all you .css gurus here

I want my top and bottom div’s to completely stretch from left to right. I thought this was achieved by setting their width attributes to 100%
I’ve sort of remedied the issue by setting the margins as negative values, e.g. -20px.
Here’s what I’ve got atm.

My .css:
#top {
position: fixed; top: 0;
width: 100%;
height: 20%;
background-color: #000000;
padding: 0px;
}
#bottom {
position: fixed; bottom: 0;
width: 100%;
height: 20%;
background-color: #FF0000;
padding: 0px;
}
I want the colours to span right to the side (Left).
Cheers,
SW.