Okay guys... Time for another blog. This one should be helpful to users who want to change their font and text's looks! On a side note Rofl, a buddy of mine, pointed out that it would be a great idea to tell you guys that this is CSS styling. Not only is it CSS styling for wikia, it also works on other websites that allow you to code the font/text styling! Happy reading!
We're going to start with font: One thing that people want to do, is make their font darker or lighter. Well, using the property "
font-weight:insert stuff in here;", we can change the weight of our font. Font's range from font-weight:normal;, font-weight:bold;, font-weight:bolder;, to font-weight:lighter;. Now these would be the stylings that you would probably see most often. Two other stylings that you might see in your travels around wikia, would be
font-weight:initial;. Inherit makes the font take on the weight of the previous text, and Initial makes the text take on its predetermined weight.
So one of the next stylings we're able to do to font, is called
Normal looks like this, small caps looks like this. Initial and inherit act the same way as the initial/inherit do on font-weight, except they change the font-variant.
The New Way To Style
Next up in the customization of fonts we have
font-style: normal|italic|oblique|initial|inherit;. Again, initial and inherit work the same way as the other initial and inherit options do. However, normal looks like this, italic looks like this, and oblique looks like this. Oblique and Italic look similar, and for most instances you'll want to use italic.
Get Me An Extra Small!
Wow, an extra small you say? Well it's helpful in some cases to have small font or to have biiig font So for
font-size:medium|xx-small|x-small|small|large|x-large|xx-large|smaller|larger|length|initial|inherit; we have a lot of options to choose from! Here they are in the same order: Medium, XX-Small, X-Small, Small, Large, X-Large, XX-Large, Smaller, Larger, and you also have the ability to use numbers followed by, %, pt or px, which will specify a size for the font as well.
Well, as surprising as it seems, you can have a
font-family:name of the font here;. And that's about how that one works, you put the name of the font after
font-family: and you put a ; after the exact name of the font.
Guess what! You just completed a simple run through of all the options for font styling! Next up are text stylings. :D
Alright, you made it through the font portion of the blog, so now let's get on with the text portion. With the CSS text "stuff" you can changes things like the indent, the spacing, the height or even add a shadow, among a few others.
Color for text is pretty much the same as it is for the font value.
color: color|initial|inherit;. This too will change the color of the font in the area inside of your coding's range.
White space is just that, the white space around the font, and how it looks can be specified with the following:
This is normal, this is pre, this is pre-line, this is pre-wrap. Then, Initial and Inherit work the same way as they did for all the other styling options.
For vertical align we have... "
This is normal text, this text is on the baseline, we're going to come back to
length, this text has sub, this text has super, this text has top, this text has text-top, this text has middle, this text has bottom, this text has text-bottom. Length works like this: Raises or lower an element by the specified length. Negative values are allowed; the specified lengths can be % or px.
This one, I'm not really going to go over, because it has few practical uses. Yet, it is one of the text stylings and I feel obligated to let you know that it's out there to be used: "
Wait, the font... Its transforming!!! D: Sometimes this can be a great attribute to use when going for a specific look.
This font is using "capitalize", this font is using "uppercase", THIS FONT IS ACTUALLY TYPED WITH CAPSLOCK ON, BUT USING "LOWERCASE" CAUSES IT TO SHOW UP AS LOWERCASE LETTERS.
Text From the Shadows
Well, Shadowing is important when it comes to drawing, so why not let it be important when it comes to text styling! c: Here's our code
text-shadow: h-shadow v-shadow blur color|none|initial|inherit;
Now this one is pretty simple, we put either PX or %, with numbers that create the desired effect in place of h-shadow, v-shadow, blur, and we put a color name or a #hexcolor in place of color. H-shadow stands for the horizontal part of the shadow, and v-shadow stans for the vertical position of the shadow. Blur tells how blurry to make the font, and color is just color.
- This font uses a wiki style indent. using a : before the text. However if you want to achieve this through CSS, then you can use the following:
This is text decoration, and can be helpful for making links look just right. c:
This text has "underline", this text has an overline, and since I skipped "none" I'll tell you about it here. None makes it so that the text doesn't have any decoration. Line-through allows me to put a line through my text, Initial and Inherit, work the same way as they do for all the other stylings.
We all have a favorite side, right? Well, maybe left, but what about the people who like the center, or have the ability to justify having it all. c:
The code we have for text alignment is simple:
Getting the Height In-Line
You may have guessed, this little section has to do with making sure that the text has the right line height. So without further ado here's our code:
This has a normal line height. This text uses the number portion of the code, to use it, simply put a numerical value in place of X in the following:
style="line-height:X;". This text uses the length portion of the code, and we can use a numerical value with PX or % to get our desired looks.
Spacing Out Your Letters
So spacing out your letters might be helpful from time to time. So, using the following: "
letter-spacing: normal|length|initial|inherit;" We can tell our text to give the other letters some elbow room!
This font has normal letter spacing, Wooohoo! This font has 5px font spacing.. To use this we can place a numerical value with PX or % in the place of the X in the following:
Are You Headed In the Right Direction?
Okay so this is all about your text's direction, and it's pretty much the same as Bidicode for font. Anyways, here's our code:
direction: ltr|rtl|initial|inherit; LTR stands for left to right. RTL stands for right to left, and seeing how that would be pretty explanatory, I'm not going to give an example. c:
|Hope this helps you all with your Font/Text styling!|