kayla's profile picture

Published by

published

Category: Web, HTML, Tech

help with coding (css i think)

can someone help me idk the code to make all the text on my page be highlighted. i tried to search it up but that didnt help. you cant see my text because of the background and i want to highlight my text so it is easier to see


0 Kudos

Comments

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

Pawtals!

Pawtals!'s profile picture

Use a element to highlight text or inline elements, also give it a class of `highlight` so you don't apply it to every on the page.

https://www.w3schools.com/tags/tag_span.asp


Report Comment

MOB [&]

MOB [&]'s profile picture

hi hi!! there's probably a fancier way to do this but:


mark {
background-color: yellow;
color: black;
}


and then put < mark > around the text you want highlighted. mark >


Report Comment



ohhhhh okay, thank you!!!! ill try that out :DDD i love your mob pfp btw!!!!!

by kayla; ; Report

i hope it works okay!! if not, lemme know.
or you could check out w3schools which is like, the holy book of css (to me).
also thank you!!! :)

by MOB [&]; ; Report

aww i tried but it didnt work! ill go check out the website you mentioned lol

by kayla; ; Report

oof, sorry!! it could require some messing around with it. here, lemme drop this link: https://www.w3schools.com/TAgs/tag_mark.asp <-- i think it'll explain it better

by MOB [&]; ; Report