Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS floating links

Status
Not open for further replies.

TIURIC

Programmer
Jul 5, 2004
3
CA
I am using CSS to position links over text on a background image.

Only problem is from screen to screen the resolution is different so the links appear on different parts opf the screen for different people.

Is there any way I can get the links to stay over the proper text no matter what the resolution??

TIU RIC
 
Tiuric,

I'm not sure I understand the question. Could you post the code or a link to the site in question?

Thanks.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 

If you use absolute values for all your positioning, and furthermore, use the same origin for all of those values, then screen resolution will have no effect on your layout.

For example, switch all percentage-based values to pixel-based ones, and switch any "right" and "bottom" origin values to be "left" and "top" - then your layout will pretty much always work no matter what the resolution.

Of course, these are drastic steps given in order to fix a problem that is of an unknown quantity. Given the source code, the problem could probably be fixed with less of a panacea ;o)

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top