css - how to set a div to 100% width within a parent div that has 40px padding -


i may have asked question in confusing way.

basically need this: http://www.jayflood.com/layout.jpg

i'm sure there ton of ways this, problem lies in working within preexisting structure. parent container not have set width, have 40px of padding.

i need content div considered width 100% can divide divs within.

the question - possible have smaller containing div have 100% width.

set margin -40px

div {    margin:-40px; } 

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -