Hi Chan,
You can put this code manually for every page or you can create custom template and use this custom template while generating the HTML code so that you need not do for every page.
https://help.sap.com/saphelp_nw04/helpdata/en/46/668d4b72255de4e10000000a1553f6/frameset.htm
Other option is to use industrial browser so that these alignment issues can be avoided with out coding.
Thanks,
Srikanth.A