Forums

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

Home Forums CSS Header with border alignment and background help Re: Header with border alignment and background help

#106469
Paulie_D
Member

The background on CSS Tricks is done with a repeating background image.

Regarding your h1 tag (which is not a header by the way), most people don’t apply borders to them but if that’s your design then so be it.

You should be aware, however, that borders increase the dimensions of elements (unless specifically told not to…but that’s another story) and so if your h1 is positioned that precisely with CSS (which seems odd) then then you can expect some odd effects.

A link to a like site would be easiest to examine and advise but failing that, put the relevant code on Codepen and we can tinker with it.