permaculture playing cards
The moose likes HTML, CSS and JavaScript and the fly likes Background image in different resolution 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 "Background image in different resolution " Watch "Background image in different resolution " New topic

Background image in different resolution

Sapan Shah

Joined: Jan 01, 2010
Posts: 25
I am having a problem because of resolution.

Basically i am displaying an background image in a .jsp file and using standard resolution 1024*768. In that image there are different labels(names) surrounded to this image.Every labels(names) has its unique value, I am displaying that value from database and the values come perfectly below there respective labels(names) in the above resolution.

But when i change my resolution to 1280*1024 the values doesn't display below there respective labels(names), it goes towards right side of there respective labels(names).
I am using <table> tag to display value.
Below is the example.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

If you want things to be absolutely positioned, don't use relative values. In other words what 10% means changes with the size of the window.

By the way, I think the whole approach of using a background image to supply the labels is one that will cause you not end of frustration. I'd use label elements,

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Background image in different resolution
jQuery in Action, 3rd edition