• Hey all, due to some issues with false DMCA takedown requests, we've had to remove and censor a few things until the situation is resolved. Sorry for any inconvenience.
  • Be sure to join the discussion on our discord at: Discord.gg/serebii
  • If you're still waiting for the e-mail, be sure to check your junk/spam e-mail folders

CSS - Help

Haku

Beginning Trainer
Hello,

I would like to know if it is possible to use CSS set the default font. This would make creating web sites alot easier since I wouldn't have to keep specifying the font unless I set it to use that color. This would also make changing layouts easier since i'm going to need to change the font. Is this possible with CSS? I've never used CSS before. I have looked up tutorials before on the internet but it just doesn't seem it can do what I want it do. I have tried creating a CSS in Microsoft FrontPage but its not working unless i'm doing some thing wrong and/or don't understand it. My site has a banner at the top, navigation bar on the left (under the banner), content goes in between the bars, navigation bar on the right(under the banner). Kind of like the layout Serebii.net uses. Can anyone help me do this.

- Haku
 
Of course. If you'd like to specify a "global" font for all text on your web page, that is, anything between the <body> tags, you would do this:
Code:
body {
font: *something*;
}
You can of course make specific tags have specific text fonts and colours (for example, the <fieldset> tag):
Code:
fieldset {
font: *whatever you want*;
color: *whatever you want*;
}
And that's basically how css works. You can give classes or id's specific properties too, eg.
Code:
#main {
text-align:right;
}

.signature {
font-style: italic;
color: orange;
font-size: 13px;
}
and then on your page, you can do...
Code:
<div id="main">Hello and welcome to blah blah blah...</div>

<span class="signature">~Somebody</span>
to make the text between those tags have the properties you specified in css. You can manipulate images too, of course, and there are other cool thngs you can do, which you can learn in the many tutorials available on the 'net.
 
Back
Top