News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

CSS: How to give an anchor display (bookmark) a certain position when displayed

Started by sangham.net, June 23, 2015, 02:48:21 AM

Previous topic - Next topic

sangham.net

Valued SMF Supporter,
valued SMF-Friends,
and Html specialists,

is there a way, and how, to give the display for an anchor link let me say 200px under the normal position on the top in css (existing site)? Anchor (maybe useful: they have no unique id just like fn1 - fnxy)


.















Anchor Display here!

Thanks for hints and tips in advanced.

Kindred

no.

anchor links are links. they must be in the HTML... not the CSS
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

sangham.net

Just for the case that later one might search for a possibility. There is actually one and a total simple if one knows:

The "target" tag is fine to address the layout of a revered active HTML anchor and a certain style. More here on WC3.

:target {
    padding-top:65px;
    border-bottom:2px solid #4d94ff;
}


Sample: http://accesstoinsight.eu/tipitaka/kn/dhp/dhp.02.than_en.html#dhp-29

More about this CSS Selector Reference. Some great possibilities to select what seems to be not select-able.

Advertisement: