Well
@strawbs. You've read all the critics. And sorry to say that, but that's true.
Bad habit and shuldn't be done nowadays is something like that:
Code:
<div style="mystyle and so on and so on"></div>
which you did several times on your site.
Should be something like that
Code:
<div class="mycssclass"></div>
But that's just minor issues.
First of all you really shoul learn a little bit of CSS.
Im not even talking about media querys because it looks like you give a damn about mobile devices and responsivity. Im talking about the basics only. And in your state of knowlege it's kind of hard to tell you where to start. Because you already did a "site" which for sure used a lot of effort and time. So by basics im talking about position, padding, margin.
Anyway, ill give it a try. Maybe you learn a bit out of it.
There's a bunch of position types that can be used. But i will stick with the BIG THREE if you will.
relative, absolute, fixed. Those are the most common used types of position.
relative: It's in it.s name. Relativ position to it's parent element (your body is a element to)
absolute: It's in it.s name too. Absolute position to it's parent element (your body is a element to)
fixed:And again, as it says. Fixed position (kind of) over all.
Short example:
Code:
<style>
#myMaindiv{position:relative; width:100%; text-align:center; background-color:green; color:red; font-size:1.8rem;}
.myBlackball{position:absolute; cursor:pointer; top:100px; left:50%; width:30px; height:30px; border-radius:30px; border:2px solid #CCCCCC; background-color:black; box-sizing:border-box; transition: background-color 1s;}
.myBlackball:hover{background-color:white;}
.imfixed{position:fixed; left:30%; top:70%;}
</style>
<div id="myMaindiv">#myMaindiv requires a element with the id of myMaindiv and can be used (or should be used) only once
<div class="myBlackball"></div> <div class="imfixed">Im inside myMaindiv, but can be anywhere on the site.</div>
</div>
Try it, google it and then, if you want to, come back for more.