simplify page boundary calculation to <html> width