• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 410
  • Last Modified:

How can i position my link properly?

My site is www.icqmontreal.com
On my side bar i have the "html version" link beside prayer times positioned using absolute position
When i resize my browser or use a different screen size this link changes position.How can i position this link so it is not affected by the screen size??
0
falfouli
Asked:
falfouli
  • 2
  • 2
1 Solution
 
Lukasz ChmielewskiCommented:
Try to use:
top: -25px; left: 100px; position: relative;
instead of position: absolute
0
 
falfouliAuthor Commented:
it works but now there is an unwanted space between prayer times and performing marriages!!
0
 
Lukasz ChmielewskiCommented:
You would have to add td id="MPT" and combine the links inside. I just can't get it to work with both of the links inside that td with a different properties...
0
 
falfouliAuthor Commented:
is there any other solution or alternative??
0
 
SaigonJeffCommented:
Are you using tables or Div's?

If you are using Div tags then perhaps you could try putting the entire sidebar into a div with relative positioning, and then create another div inside the sidebar dive for the HTML link and give it absolute positioning. This ways the sidebar will float with the change in window size, but the div with the link will retain its absolute positioning within the sidebar div.

Give a try... it might just do the trick.

You can see a great tutorial on CSS Positioning here...
http://www.elated.com/articles/css-positioning/

Good luck!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now