- Get the width of the screen.
- Then make margin left 25%
- Make margin right 25%
In this way the content of your container will sit in the middle.
Example: suppose that container width = 800px;
if ($("#myContent").parent === $("updatedContent"))
{
$("#myContent").css({
'left': '-(device-width/0.25)px';
'right': '-(device-width/0.225)px';
});
}