Previous Message
Next Message

a name anchor tags

Sent by Andrew Gregory on 6 July 2004 13:01


On Tue, 6 Jul 2004 04:29:00 -0400, Kim Brooks Wei [EMAIL-REMOVED]>  
wrote:

> I'm having a spot of beauty trouble with my <a name=   anchor tags.
>
> 1    First off [this may sound silly] > how do I modify their look?
>       I have a header "Attractions and Services" at
>       http://carolisol.com/amenities.html#moreamenities
>       On hover it acts like a link and I don't wish it to.

Instead of:

<h1><a name="moreamenities">Attractions and Services</a></h1>

Do:

<h1 id="moreamenities">Attractions and Services</h1>

> 2   My "to top" links bring user to top of page BUT
>       not all the way to the top. Is there a better way to code
>       to get more control over the landing location of in-page links?

I solved that by adding:

<div id="top">&nbsp;</div>

to my page code, then adding:

div#top {
   position: absolute;
   top: 0;
}

to my styles, but you could roll it all up into one, I suppose:

<div id="top" style="position:absolute;top:0">&nbsp;</div>

HTH,
-- 
Andrew Gregory, <URL: [EMAIL-REMOVED] >
<URL: http://www.scss.com.au/family/andrew/ >
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: