UGHGHIEWKGOJHUIFEJNHFJINHBEWB I NEED TO GET THIS OUT BUT THERE'S SO MUCH HTML JARGON
Ok so quick explanation so that you can actually understand my ramblings: HTML is the programming language used to make every single website- It is the structure of everything and the web would not exist without it. CSS is the programming language used for adding style to the basic HTML. Both of these are made by an organization called W3, which is meant to keep order in the functionality of the web. You write CSS by making things called "declarations".
Here is an example declaration:
p {
color: cyan;
background: black;
}
The "p" is a selector, and in this case, it will select every <p> element (which is for making a paragraph) in the HTML. Everything inside of the { } is color a declaration block, where all the rules are set. This declaration is saying that all paragraphs stated in the HTML will have a text color of cyan (CSS's preset for this is just #00ffff), and the "block" they are in- their background- will be colored black. I'm not sure how to explain blocks comprehensively, but basically every element is contained in one. As you can see from the example picture, its width spans across the whole webpage, and multiple elements cannot be within the same block. The things that say "background" and "color" are the properties- the things that say what thing will be affected, and the "cyan and "black" are the values- the things that specify what is changed.
OK! That's all the stuff I mean
One of the properties that you can change in CSS is position:. As the name suggests, it lets you affect the position of the selected element. One way to do this is with the :absolute value. Absolute position is great in theory! It lets you put the element anywhere in the webpage you want, and it will never move from that spot within the webpage. To ensure this, none of the other elements will even pay attention to its block, so it doesn't affect anything else. This is great for layering elements- and I will be layering elements A LOT in my webbed site. I also plan on having lots of elements in the same x (horizontal) position, so it's important for that too. Yeah, absolute is great. NOT! It is SUCH A PAIN TO USE OMG. Remember, CSS is a programming language, not a weird webpage designer thing like Wix or Squarespace (that would be dynamic which is limiting and often ineffective; im kewl [/j] and make static webpages). The way you actually set the position is by using the properties top: bottom: left: or right: whose values decide the distance of the selected element from that side of the webpage (or from that side of whatever margin limiters you have set for that section of the webpage). These values are set in integers, which can be followed by px (pixels) or % (percentage). both of these are terrible. using % is way too limiting and is hard to keep track of in this context- I don't wanna have to deal with ratios in my CSS positioning. using px is normally way better in this context, but.... ugh..... Now I have to keep track of so many random pixel values, and this can technically change depending on the screen, so I have to learn W3 standard. My brain doesn't work with this, but... I guess it's for the best. I've found a medium that works really well for me, and like one of the MOST IMPPORTANT THINGS FOR ME IS SO ANNOYINGGGGuggghhhhhhh.... There was a whole thing before the release of HTML5 (The current revision of HTML) where people campaigned against the <frame> element because it was annoying to use. Personally, I think that was stupid. if u don't like it just don't use it... And plus, it was actually pretty useful for amateur webmasters (like me) and honestly if it works for someone's intents and purposes, I'm fine with it. But regardless, I wanna do smth like that but instead of campaigning against px, bc it's still good for other stuff, but it can be campaigning FOR another measurement system that isn't totally relative like %, but also not totally absolutive like px. Ugh idk anymore I just wanna code in peace.... I don't want all my positional debugging being focused on the stupid pixel values..... But it's unfair if I can't figure out exactly how the new system would work, and I don't have a big voice anyways, so I couldnt get it out
Mehhhhhh
Sorry for the lack of paragraph breaks, I sort of wrote this all at once lol