Improve Your side.profile: Easy Exercises and Posture Hacks

Date:

Share post:

Okay, so I wanted to mess around with creating a simple profile display, kind of like what you see on social media, but just the basics. I named it “*” because, well, it’s supposed to go on the side of a page.

Improve Your side.profile: Easy Exercises and Posture Hacks

Getting Started

First, I just sketched out what I wanted on a piece of paper. A circle for the avatar, a spot for the name, and maybe a short bio or status. Nothing fancy.

Then, I created a new HTML file. I’m keeping it super simple, no frameworks or anything, just plain HTML, CSS, and maybe a tiny bit of JavaScript if I needed it.

Building the Structure

I started with the HTML. I made a <div> to hold the whole profile thing. Inside that, I put another <div> for the avatar image, using an <img> tag and setting the source to some random avatar image I found online. Made it a circle using CSS later.

Under the avatar, I added a <p> tag for the name, just hardcoded my name in there for now. Then, another <p> for the short bio. Filled that with some “lorem ipsum” placeholder text.

  • created a container div
  • added a div and img for avatar
  • Hard code a name with a p tag
  • Fill bio section with lorem ipsum.

Styling It Up

Next up, the CSS. This is where the circle avatar happened. I gave the avatar <div> a fixed width and height, then used border-radius: 50%; to make it perfectly round. The image inside I set to fill the container, also making that a circle using width and height 100% with an object-fit cover, so I don’t get a stretched-out avatar.

Improve Your side.profile: Easy Exercises and Posture Hacks

For the name and bio, I just played around with font sizes and margins until it looked okay. I didn’t want to spend too much time on the styling, just wanted it to be presentable.

Making It (Slightly) Dynamic

I thought it would be cool to be able to change the name and bio without editing the HTML directly. So, I added a tiny bit of JavaScript. I’m talking tiny.

Basically, I gave the name and bio <p> tags unique IDs. Then, I wrote a couple of lines of JavaScript to let me update the text content of those elements. It’s not connected to any backend or anything, but I could, in theory, hook it up to a form or something later.

Final Touches

I added some basic styling to make sure all text is readable. A little padding, set the font-family to something common.

Result:

Improve Your side.profile: Easy Exercises and Posture Hacks

So that’s it! A very simple, very basic profile display. It’s not going to win any design awards, but it was a fun little exercise to go through the whole process, from planning to coding to a (somewhat) finished product. I’m keeping this basic version to mess around with more complicated components.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related articles

What Happened to 2012 Warriors A Look at Their Challenges

Why I Dug Into This Mess in the First Place Kept seeing folks online argue about the Warriors dynasty,...

Why Watch Benjamin Buck? Top Reasons You Should Know Him

Okay let’s talk about why Benjamin Buck got me hooked. Honestly? A few weeks ago, I had barely...

ROC35 Problems Solved Expert Tips to Fix Common Issues

Getting Annoyed With My ROC35 Machine Again So my ROC35 suddenly started acting like a grumpy old man last...

Ducati 916 Senna History Find Out Why Its a Legendary Motorcycle

So the other day I’m scrolling through old motorcycle ads online when this Ducati 916 pops up. Looked...