File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes how to resize everything in HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to resize everything in HTML" Watch "how to resize everything in HTML" New topic
Author

how to resize everything in HTML

Anthony Karta
Ranch Hand

Joined: Aug 09, 2004
Posts: 342
I created a simple html page, mostly text and table.

It looks nice in smaller size firefox/IE window, but when the window is maximized, looks odd/ugly, especially the gap.

how to make the content layout looks the same in small/big window? such as the text will be centred in either, no scrolling bar.

hope make sense.

thanks all


SCJP 5
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Well without knowing your HTML. You need to use either a fixed width or use ems or use percentages. margin: auto on the body,html is also helpful.

Eric
Gail Mikels
Ranch Hand

Joined: May 07, 2001
Posts: 634
Originally posted by Eric Pascarello:
Well without knowing your HTML. You need to use either a fixed width or use ems or use percentages. margin: auto on the body,html is also helpful.

Eric


Curious - what's "ems"?


Gail Mikels
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can read about the wonderful world of M here. http://www.awprofessional.com/articles/article.asp?p=397663&rl=1

Eric
Gail Mikels
Ranch Hand

Joined: May 07, 2001
Posts: 634
Thanks, Eric - it's SO interesting - I'd never heard of it! Cool stuff!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to resize everything in HTML