I have a div inside of another div. The outer div has a percentage width (80%), and I want the inner div to have 30px less width than the width of the outer div. How do I do this? I’m assuming I’ll need to use javascript?
Thanks in advance.
I have a div inside of another div. The outer div has a percentage
Share
Use margins :
demonstration