- 1

How to do the header align?

26th Aug 2017, 11:30 AM
pamodha wickramarathna
pamodha wickramarathna - avatar
3 Antworten
+ 3
"header" or "heading" in web can refer to <head>, <header> or <h?> elements... or even any container element used as "header" in a layout context... Need also the code context, and knowing if you want to align the "header" itself (relatively to its parent) or its own content (relatively to the element used as "header"). In the first case, you need to use an inline type element, otherwhise a block one will be center by itself, as its width take all available space in its parent (so, you need to make it inlined to set a specific width, or rather to center its content)...
26th Aug 2017, 4:20 PM
visph
visph - avatar
+ 2
What is the context? What kind of alignement? Targeting what and relative to what? What kind of 'header'? @@
26th Aug 2017, 12:52 PM
visph
visph - avatar
- 1
header mean a heading and want to align the header to center?
26th Aug 2017, 4:13 PM
pamodha wickramarathna
pamodha wickramarathna - avatar