Font Colors
This page will focus specifically on Font COLORS.
When writing a blog, you can either use the websites default settings.
OR, you may implement a CSS code which changes the size of your text.
In our case, we'll try different sizes of our links.
THIS BLOG IS STILL UNDER CONSTRUCTION
We'll begin with The original list (using HTML).
This is not using any CSS Class selector or enhancements.
It's relying upon the website's default settings.
- - - - - - - - - - -
example 1
.
.
the class="font17" is added to each and every link.
THEN,
Code must also be added within the CSS.
(the .font17 in the CSS is the same name as class="font17" within the HTML link).
NOTICE:
a complete code is often used to identify all features. But, we won't do that here.
.font17:link /* a normal, unvisited link */
.font17:visited /* a link the user has visited */
.font17:hover /* a link when the user mouses over it */
.font17:active /* a link the moment it is clicked */
- - - - - - - - - - -
example 2
(Our chosen class="TheUsefulLinks" is added to each and every link).
THEN,
Code must also be added within the CSS.
(C)
NOTICE:
You'll notice that I have a separate column for [my special section] and [normal, unvisited link].
Take Notice that I'm the ONLY person who does it this way.
-Programmers would leave out the first row-
.TheUsefulLinks {font-size:18px; }
-------------
and they would begin here, using all elements-
.TheUsefulLinks:link {font-size:18px; color:#00000f;}
---
So, you might ask.. why I add the first part .TheUsefulLinks {font-size:18px; }
I do it this way simply because-
I'm separating elements which I plan on changing, and those which might be altered in the future.
AND, once I've added nine different elements, it starts to get confusing.
(D)
Needless to say:
[ .TheUsefulLinks Classname in the CSS is the exact same as class="TheUsefulLinks" within the HTML link ].
It's case-sensitive.
So, .theusefullinks differs from .TheUsefulLinks since the latter has capital letters.
Ther's also a difference between .TheUsefulLinks and .The-Useful-Links
- - - - - - - - - - -
example 3
- - - - - - - - - - -
example 4
using RGB colors
example: rgb(48,69,77)
- - - - - - - - - - -
example 5-
My favorite color method
rgba colors
such as rgba(120,94,104,0.8)
- - - - - - - - - - -
example 6
- - - - - - - - - - -
example 7
each Link can be different colors.
- - - - - - - - - - -
example 8
using HSL colors and hsla
- - - - - - - - - - -
No comments:
Post a Comment