Hi Shawn,

The books on the same page (<h3> headings as well) had the same problem - these 
are linked from the front page, so it was really noticeable.  I fixed the 
problem for the books by directly specifying <h3 class=“offset”>title</h3> 
(instead of markdown syntax ### Title ###) - you can see that class in 
base.css: http://lucene.apache.org/solr/assets/styles/base.css - it shifts 
content down far enough that you can see it below the floating header.

I didn’t apply the fix everywhere in that file because the markdown flavor used 
by the ASF CMS doesn’t have the ability to specify HTML tag attributes, and 
many parts of resources.mdtext are still just markdown, so I didn’t want to 
make it messy (well, messier really) by including more HTML.  But since 
markdown auto-creates anchors for all <h3> headings, it makes sense to make 
them not look terrible when people link directly to them, so I’ve just 
converted all the H3 headings from:

### Heading ###

to:

<h3 class=“offset>Heading</h3>

Steve
 
> On May 4, 2015, at 9:59 AM, Shawn Heisey <[email protected]> wrote:
> 
> When I try to use a URL with an anchor link on the Solr website, it
> doesn't work right:
> 
> https://lucene.apache.org/solr/resources.html#mailing-lists
> 
> On both Firefox and Chrome, this URL doesn't quite go to the right spot.
> It would be the right spot if the floating header at the top of of the
> page wasn't there.  I'm guessing some CSS trickery is required to get it
> to anchor below that floating header.  I did find the following, and
> when I have time to digest it, I may be able to try and fix the problem,
> but finding that time is the hard part.
> 
> http://stackoverflow.com/questions/10732690/offsetting-an-html-anchor-to-adjust-for-fixed-header
> 
> If somebody knows exactly how to fix it and has the time, feel free to
> take this problem!
> 
> Thanks,
> Shawn
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to