Can't get DHTML to align correctly

I’ve tried using the Center() function, SetPos(), etc but nothing seems to make it align with the panel correctly…
[lua]function Page()
local Page1 = vgui.Create(“DFrame”)
local Page = vgui.Create(“DHTML”, Page1)
Page1:SetTitle(“Page”)
Page1:SetPos( ScrW()/2-50, ScrH()/2-50 )
Page1:SetTall(1000)
Page1:SetWide(1000)
Page1:ShowCloseButton(true)
Page1:MakePopup()
Page1:Center()

    Page:OpenURL("http://google.com")
    Page:SetPos(ScrW()/2, ScrH()/2)
    Page:SetTall(900)
    Page:SetWide(1000)
    Page:MakePopup()
    Page:SetParent(Page1)

end
concommand.Add(“page”, Page)[/lua]

The child of a vgui element is positioned based on it’s parent. So if you have x position of the parent set at ScrW()/2 - parent:GetWide()/2 (the center), and set the x position of an element parented to it to 5, the x positon will be ScrW()/2 - parent:GetWide()/2 + 5