Currently, I am in the process of creating a website for a client who has requested that I integrate an order calculator onto every page as a pop-up div element. Initially, I implemented an iFrame solution to load the page within its own box but ran into some aesthetic and alignment issues due to iFrames not taking up the entire page.
Considering this feedback, I decided to explore using a div element with jQuery to load the page instead. However, I encountered a challenge with conflicting CSS styles between the main page and the loaded calculator page. Is there a way to isolate the css imports within the div to only impact elements within that specific div without having to rename everything?
Your assistance would be greatly appreciated!
CODE:
function po()
{
$("#calculator").load("/calculator/");
$("#calculator").fadeIn();
$("#modalbackground").fadeIn();
$("#closeCalc").fadeIn();
}
I am open to any alternative suggestions or solutions you may have!