Home › Forums › JavaScript › Adjust content margin when div doesn’t exist › Reply To: Adjust content margin when div doesn’t exist
Hi JeroenR, thanks for taking your time to reply. I’ll try to explain it better.
The old one has a different structure. but it has he same concept: side and bottom ads.
When the side ad image wont load, it was suppose to adjust margin to 0 15% to stick at the center, without this, it would look like the content is stick to the left.
It was something like this
Im still using old site structure, the new one doesnt have the .content-area nor the IfBanner function as showed in the codepen i sent here, it adjust itself
Here is the site im using as referece: bit.ly/2DcxTaL
And here is the one i’m having issues: bit.ly/2OhvqCd
Am I missing something in the javscript? Sorry for the long reply though