Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[HTML] Changing Font

Figured it out. Figured it out. Figured it out.
Leave your question so people with the same question can search for it. It's very rude to edit it and pretend like we all didn't have to ask such a nooby question at one point. Or at least lock your thread with the question unanswered.

To answer your question (assuming, since I can't SEE IT)

CSS:
Code
.special-text {
   font-family: sans-serif;
}

HTML Inline:
Code
<div style='font-family: sans-serif'> text goes here </div>

Je t'aime
[Image: fpZ5a5g.png]

(Apr 22, 2022 04:39 PM)-Scrub Wrote:  Jokes on you, I'm not smart enough to know what he's talking about.
Why not put a way for Javascript too :D

Code
<p id="myText">This is a paragraph.</p>

<button type="button" onclick="changeFont()">Change font</button>

/open script
function changeFont() {
    document.getElementById("myText").style.fontFamily = "Arial,sans-serif";
}
/close script
Web Designer / Developer & SEO Expert.

View Work
Earn 10% of the job you refer me to!

Skype aerox.design




Possibly Related Threads...
Thread / Author Replies Views Last Post
by SeiferAug 19, 2017 01:04 PM 2 284 Aug 19, 2017 01:04 PM
Last Post: Seifer
by priluxDec 10, 2016 11:18 AM 1 236 Dec 10, 2016 11:18 AM
Last Post: VirtualFrost
by youngbandzAug 30, 2016 04:17 PM 6 122 Aug 30, 2016 04:17 PM
Last Post: youngbandz