Home» Forum» Web & Tech» CSS/HTML Layout Shenanigans Uberthread

CSS/HTML Layout Shenanigans Uberthread

Back to Web & Tech

so this thread is a (hopefully) global q&a thing

solely for sharing html/css tweaks n tricks

and ofc for helpin others with profile layout stuff

feel free to weigh in or smthn :postwhore:

hello! i made a profile using the layout generator and i want to add a new font for my headings, im finding it hard... any help to learn HTML/CSS is welcome!!!!

pronouns: she/her, refer as ariadne [brazilian]
night-owl

@ariadne you can go about this a couple of diff ways tbh

google fonts has a fairly decent selection of fonts you can add into your page

just pick a font on there, then select "embed"

this brings up a few tabs

go to "web" and choose "import"

which'll give you the thing you add into your css stylesheet

e.g. 


@import url('https://fonts.googleapis.com/css2?family=Limelight&display=swap');

if you want to then use it

say globally across your whole profile

<style>
body {
font-family:Limelight !important; }
</style>


the alternative route is downloading fonts yourself, hosting them somewhere

and using a similar approach to google fonts

this is an example of a hosted font taken from my profile rn

@font-face { 
font-family: cutepixel; 
src: url("https://file.garden/aMuL0oRhjDKbkUNC/CutePixel.ttf") format("truetype");
}

im using filegarden to host all my fonts btw

with hosting your own fonts, this is something you'll need to know

the file extension itself for the font (e.g. .ttf or .otf - truetype or opentype)

this must mirror the format (see the example above)


tl;dr the google route is the easiest of the two

self hosting fonts has a higher initial learning curve

but you get far more creative freedom

hope all that helps (i'll prob make a post about this in further detail later)

:star:


Could you please also link Profile Elements in your post? I didn't realized it existed until a couple weeks ago. And it looks like a lot of questions could be answered using that feature. (Less emotional labor for everyone involved) 😁


https://friendrewind.com/layouts/elements.php

@Kayla⟡ ig we can't edit our posts after a certain period of time has elapsed :gasp:

i'm writing up a few posts later after work btw

one will be all about using inspect mode to make yr own layouts

:3

bumping this post with stuff some ppl might not be aware of but

did you know you can add alt text to html tags for images and links

e.g.

<a href="linkgohere" alt="description of the link">a weblink</a>

<img src="path2image.jpg" alt="description of image">

basically, when bots crawl sites for metadata or whatever, they pick up on stuff like alt text

this in turn can have a positive impact re: search engine rankings


let's say that you're posting your artwork in a blog or thread

use the alt text feature to give a fairly accurate description of your content

so that ppl actively searching for it are more likely to wind up here :hyper:

the more you know


hello its me agein!! i came with a few things i need help with

:i want to change my blog preview title color and font! i think i will make both the title and blog posts below white since the background is dark blue

:i want to add a header! i know i can do it with the layout generator but im really scared of breaking what i alreday done... (might look into ways to save it outside of friend rewind) 

this are less important: add custom contact gifs

any way of helping would be nice! and if any brazilians read this pls recomend rescorses for learning html in portuguese! a lot of it is in english and i cant understand it well sometimes

pronouns: she/her, refer as ariadne [brazilian]
night-owl

Sensei...! 🙇

helllau i was wondering if i could get some help with changing the contact box icons!!! it looks super complicated from the code i've seen around when i'm trying to do it myself, i was wondering if there's a way you could explain what each little section means (at least by labeling) or if there's just a simpler way to go about it. thanks in advance!

.icon {

display: none;

}


@steph stabwound (|\\\|)

hii i idk much about code but i did change mine! i used the code from a video of dollcrds on youtube. hold on im going to figure out a way to put a image to help you

[EDIT SO I DONT FLOOD THE THREAD: add this code too so the sites icons dont appear along the custom ones!]

pronouns: she/her, refer as ariadne [brazilian]
night-owl
.contact .inner .f-row:nth-child(1) .f-col:nth-child(1) a:before {

            content: url("IMAGE LINK HERE")

    }

    .contact .inner .f-row:nth-child(1) .f-col:nth-child(2) a:before {

            content: url("IMAGE LINK HERE")

    }

    .contact .inner .f-row:nth-child(2) .f-col:nth-child(1) a:before {

            content: url("IMAGE LINK HERE")

    }

    .contact .inner .f-row:nth-child(2) .f-col:nth-child(2) a:before {

            content: url("IMAGE LINK HERE")

    }

    .contact .inner .f-row:nth-child(3) .f-col:nth-child(1) a:before {

            content: url("IMAGE LINK HERE")

    }

    .contact .inner .f-row:nth-child(3) .f-col:nth-child(2) a:before {

            content: url("IMAGE LINK HERE")

    }


@steph stabwound (|\\\|

ok so, if you copy the code from her video (or anywhere else) it will look like this ^ , the number on the front (1, 2, 3) is the line they are and number behind it (1, 2) is the position of that specfic contact link. i made this picture to be a little easier

image i made on ibis paint


pronouns: she/her, refer as ariadne [brazilian]
night-owl

@⌗ !! ꒰ Ariadne ꒱ omg tysm i was trying so hard to figure out what those numbers meant!!!!! eternally grateful ^_^

@steph stabwound (|\\\|)

omg thank you!!! i was worried i wasen't making any sense lol

pronouns: she/her, refer as ariadne [brazilian]
night-owl

@⌗ !! ꒰ Ariadne ꒱ no that was awesome :3 ty

Have Two questions 


1. how do i change the color of headers on my profile like the one's that say Furby's bio, furby's friends furby's comments

2. how do i add a border / box around things like my bio, and within that box how do i change the back ground of the box i add . right now, it has no box around it and it looks awkward to me . 

shock
.heading {
  background: blue !important;
}

.profile .blurbs {
  border: 1px solid blue;
  background: #122661b5;
}

@furby

remember: right click any part of a profile, click "inspect" and you can view the css for it

:postwhore:

@GOAT

thank you once again goat ! you are truly the goat . . 

shock

i kind of want to change my layout to match with the current CSS of my website, but i'm a little worried the intended primitiveness of its design isn't going to translate well for this site's audience, not to mention i might just straight up change it soon. alternatively i might do something more abstract, but i'm not sure of the details on that exactly, so the first one is the one on the table for now.

that's what i think, anyway...

You must be logged in to reply.