Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Page shifts when adding an ID to the body tag? Re: Page shifts when adding an ID to the body tag?

#76587
wolfcry911
Participant

@xpy – why would a browser ‘think’ that? That’s not how hrefs work. It’s a link to a page – the browser goes to the page. The similarly named id has no bearing on it. To link to the id, the octothorpe would need to be in the href. And why not id the body? It’s a very powerful construct. Chris wrote an article on it, but its usefulness goes far beyond that.


@mercyme
– how far of a shift is encountered? Are the two pages very different lengths? Do you have css for the body or #featured?