Ameer
Ameer

Reputation: 600

How to create a webpage in JSP which adjusts itself to different window size?

I created a webpage in JSP and when I run it with mozilla the page is normal. But when I run it with chrome or opera the alignment of the lists and text are out of pageview. How to set my page to adjust to different browsers.

Upvotes: 1

Views: 503

Answers (1)

Roman C
Roman C

Reputation: 1

This could be done definitely by specifying the CSS property width:100%;. This will extend layout to the browser width. Note also if you specify height:100%; it will adjust the height to the browser height. Apply it to the topmost element of the body. Child tag properties works to layout to the parent tag. And don't forget to use correct doctype as it meaningful for browsers.

Upvotes: 1

Related Questions