This is a discussion on "Positioning a link" within the Starting Out section. This forum, and the thread "Positioning a link are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Positioning a link
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Positioning a link
If you go to http://www.webtutorialz.com/article.php?article_id=28, and scroll to the bottom, you should see a "back to top" link.
I want to get this link to appear in the brown sidebar. However, I don't know how to get the link to stay at the bottom of the sidebar. Does anyone have any suggestions on how I could do this? Thanks, Pádraig |
|
|
|
#2
|
|||
|
|||
|
Re: Positioning a link
I would create a bottombar div to clear the main content and navigation divs, and place the link text-aligned left, and put your view counter aligned right. Dunno if this is how it should be done though!!
|
|
#3
|
|||
|
|||
|
Re: Positioning a link
If you put the text in the 'container' div (underneath everything but within the div), apply a clear to it and float it left, it may work. Try it and see what happens.
Pete. |
|
#4
|
|||
|
|||
|
Re: Positioning a link
I tried what I suggested with firebug and it seemed to work but it drops lower than the content (because it is clearing it). However, if you give it a negative margin-top of about 65px, it comes back up to roughly level with the bottom of the content. (margin-top:-65px
Pete. |
|
#5
|
|||
|
|||
|
Re: Positioning a link
First solution (a bit hacky): since your content is fixed width, just offset the position of "back to top" to the left:
You will probably need to trigger hasLayout for IE/Win, on the sidebar. For example, set the sidebar height: 1%; in an IE-specific stylesheet. Yuck. Last edited by MikeHopley; Aug 13th, 2007 at 13:32. |
|
#6
|
|||
|
|||
|
Re: Positioning a link
Thanks for the suggestions. We will try them out to see which one is the most effective!
|
![]() |
| Tags |
| link, positioning |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with icon/link positioning | mcnkevin | Web Page Design | 1 | Jun 1st, 2008 12:27 |
| Making a link non-link when on the page. | mcdanielnc89 | Web Page Design | 1 | Nov 16th, 2007 08:05 |
| positioning of my logo - link inside | danny322 | Web Page Design | 4 | Nov 7th, 2007 10:19 |
| [SOLVED] Link Color and problem with Image positioning! | Ed | Web Page Design | 33 | Oct 10th, 2007 11:17 |
| Positioning an image with a link | pregnantNproud | Web Page Design | 8 | Aug 12th, 2007 01:33 |