Venturing into API, and off the path we go

So I’m going to take a temporary (maybe one week) break from html and css to dive into some API learning. I found a nice starter course on it here. I know the concept of what an API does (I tell customers that it lets two applications talk to each other), but beyond that I know just close to nothin’.

The first thing they described to me in the video was that API is resource based, or noun based, instead of action based, or verb based. Not entirely sure what means just yet, but I’m hoping as I bash my brain into this over the next few days that becomes more clear.

I went a bit further into the video, but my brain is fairly fried at the moment and I’m having trouble taking my notes and making them coherent concepts, both for myself and for you, random internet friend.

No worries though, tomorrow is another try.

Advertisements

Padding property is aight

Nah j/k it’s pretty sweet, I’m just pooped. It’s been a long couple days of being busy at work then coming home and doing a lot of studying and prepping a release for a mixtape I worked on. Anywho, today I learned about the padding property, and completed my training of the box model, which I’m pretty proud of.

Let’s review that now. My way to remember the order of the properties here is My Big Pussy Comes, reflected in the diagram below:

box-model

So, padding is the little section here that lives right between the border and the content of the element itself. Something I forgot when messing around with this, is that padding affects the total size of the element. It actually pushed my two divs here together when I first adding the padding in for them:

before margin

I didn’t want this, so for the first div element I popped in the margin-top and margin-bottom property, which cleaned things right up.

after margin

.list
{
color:black;
background-color:rgba(0,118,188,0.5);
margin-top: 10px;
margin-bottom: 10px;
margin-left:50%;
padding: 5px 15px;
}

Ok good talk, time to drink whiskey and play chrono trigger.