As I delved into web development, my fascination with positioning grew. In the beginning, my novice websites were structured like this:
<body>
<h1> Welcome to my website. </h1>
<br> <br> <br> <br> <br> <br> <br> <br> <br><br> <br> <br>
<p> Copyright 2016 </p>
</body>
However, I soon realized that this approach was not in line with professional standards as it limited additional markup and lacked semantic value.
In search of a better way, I experimented with position: absolute
, resorting to manually positioning every element on the page. Unfortunately, this method proved to be rigid and led to layout issues upon resizing.
Seeking an alternative, I began using margin
for positioning instead of excessive <br>
tags. Despite this workaround, I still feel uneasy about my current approach.
I am seeking guidance on best practices for CSS positioning, as I have explored various resources without fully grasping the concept. How do experienced developers tackle this aspect of web design? Any advice would be greatly appreciated.