@pikapikamart
Posted
Hey about your question in position: relative
well, we usually use them when we want a child element of it, to be relative to its parent, especially when the child is absolute. If you want more pixel tweaking like adjusting right, well you could just make use of transform: translate
property, to align your element in the x and y-axis, that way you could avoid positioning it relative. Well nothing wrong with that, margin also is one way of aligning. One more thing, upon seeing your markup, we only use 1 h1
tag per page and I saw you use a few of them and that is not recommended. 1 h1
per page so that semantic of our markup will be clear ^^
@MoranGuy
Posted
@pikamart Thank you kindly for your suggestions!
So, if it's considered a bad practice to use more than 1 h1
element per page, should I better use p
with span
for styling? I'm talking about 80K 803K and 1.4K text in this matter.
@pikapikamart
Posted
@MoranGuy div is just fine since p is for paragraphs right but we can use of course. For span well I don't usually use span when I want to style an independent element, I use span when there is part of my paragraph that I want to be style. But still you can use them^