How do I make a div position coordinates relative to the header? Or should I position everything relative to the bigger wrapper?
Ofc it's something it can be done in several ways but I thought it'd be best to know how is usually done.
Also, to not be opening another question, and since this can be easily answered,
To position and structure things in the website I use div right. To position a title for a block, should I used a div inside it? like you see below,
<div id="LatestQuests"> <div id="LatestQuestsTitle"> Latest Quests </div> </div> CSS
#LatestQuests { display: block; position: relative; width: 240px; height: 190px; top: 68px; left: 18px; border-top-style: outset; border-right-style: outset; border-bottom-style: outset; border-left-style: outset; border-top-color: #000; border-right-color: #000; border-bottom-color: #000; border-left-color: #000; } #LatestQuestsTitle { background: #C0C0C0; }
<div>s are semantically meaningless. You should generally use more appropriate html elements when possible. Depending on what you're trying to do, the "title" for a "block" of content could be a<p>, a<header>, or even atitle="..."attribute or a pure css::before. Relative/absolute positioning is pretty straightforward once you read up on it. There other techniques to do css layout as well.bordersyntax can probably be greatly simplified.border-style: outsetandborder-color: #000will set these properties on ALL sides. You can perhaps even use theborder: 1px outset #000shorthand to set allborder-properties at once.display: blockon a<div>is generally redundant, as<div>s are block-level elements by default