Bexter (Bec)'s profile picture

Published by

published
updated

Category: Web, HTML, Tech

HTML/CSS simplified! resources and tips from a fellow noob

coding's hard. i've got 1 brain cell but i figured it out the basics - so can you, i believe in ya


here's some resources/links/and some coding ^__^

this may be updated as i find (or create) more coding snippets, but for now you've got the basics, resources, tips, and how i decoded & figured out how to do a custom font for your profile name (full credit to Cory for the original code)

TUTORIALS/PREMADE CODE SNIPPETS:

RESOURCES:
TIPS:
  • use the live Spacehey CSS Preview and BACK UP YOUR CODE (just in case!) trust me, you don't want to lose a ton of work, or even a little bit of work
  • when using any images in coding, i recommend uploading to imgur or another exterior site - just in case whatever site that's hosting your image goes down (also save and don't lose it)
  • crediting other user's work is important! put credits somewhere on your profile, or if using an image, directly link to the artist's work using the image as a hyperlink itself
  • have fun, be patient, and sip your favorite beverage while coding away
  • please don't forget to hydrate
*Cory has a wonderfully done coding snippet here that makes your username on your profile neon, blinking, and extra fancy - i loved it, but i wanted to see if i could customize it or decode it and figure out how it works

CUSTOM FONT FOR PROFILE NAME:
here's example CSS taken from my layout, customize as you like, use as a base, etc

<!-- custom profile name font -->
<style>
@import url('https://fonts.googleapis.com/css2?family=Turret+Road:wght@200&display=swap');
.profile .left h1{
    font-family: 'Turret Road', cursive; transform: rotate(0deg); font-size: 42px;
    text-shadow:
    0 0 5px #6c5ca4, 0 0 10px #6c5ca4,
    0 0 10px #6c5ca4, 0 0 42px #6c5ca4;
</style>

this uses one of the fonts above, from the "Several Google Fonts" link. i'm using the Turret Road font for my own profile and using it as an example. image by image tutorial below...
  1. let's say you like this font while browsing - click it! (img #1)
  2. now, you're going to want to click "select this style" (img #2)
  3. on the rightside of the page, you'll see "selected family" in a column. click "import" (shown in yellow highlight on the image) and select the highlighted (blue) text for your font code - this starts in https://fonts and ends in =swap. (img #3)
  4. now the highlighted text (in blue) from img #3 is what you'll be replacing my code with. replace "https://fonts.googleapis.com/css2?family=Turret+Road:wght@200&display=swap" with whatever font you've chosen
  5. not done yet! some fonts have different families with their code. in the same column you found the link for your chosen font, you'll see "CSS rules to specify families". (img #4)
  6. in this example, you'll replace 'Turret Road' with 'Syne Tactile' (the new font name) and in this case, leave the 'cursive' coding piece alone. sometimes you'll have to replace 'cursive' with something else
  7. make sure everything works nicely first in the live CSS Preview before importing your code onto your profile (or anywhere else)
  8. if something is being buggy, comment here for help - or alternatively use the "trial and error" method (either is fine)
a few more things - you may have noticed the neat glow effects. cool, right? full credit goes to Cory for this idea, as well as the transform: rotate CSS code. unless you like the same color i'm using for my custom profile name, follow the instructions below to spice it up
  1. wherever you see #6c5ca4, change this color to your preferred color (using Live Color Palette or something similar) to change the glow around your name
  2. you may have noticed the transform: rotate(0deg); coding piece - this can be used to rotate your name by so-and-so degrees. experiment with the number (0 originally) until you're happy, but by default the (0deg) does not have it rotating, the code is just there for ease of access
  3. use the font-size: 42px; code piece to change the size of your font
  4. if something is being buggy, comment here for help - or alternatively use the "trial and error" method (either is fine)
  5. enjoy (optional)


30 Kudos

Comments

Displaying 0 of 0 comments ( View all | Add Comment )