TehByte
Active Members
Okay, so firstly to code CSS we need to open up the CSS tags
In between the tags we can now start styling our web pages
Firstly, to style a certain part of the website you need it's ID or Name. If we are editing for example a div that uses ID="Main" we would have to write the code like this
But if we are using the name="Main" tag we would write the code like this
To style anything else like the body of the page you would write the code like this
Our styling codes then go in between the { and }.
So I will now write a list of different definitions
Styling fonts
Adding a border
Backgrounds
Links
I shall add more as they come to my mind, if you know any more please reply and I shall add. Sorry for the bad grammar, I'm tired, I'll correct when I wake up if I have time...
Code:
<style type="text/css">
</style>
Firstly, to style a certain part of the website you need it's ID or Name. If we are editing for example a div that uses ID="Main" we would have to write the code like this
Code:
#Main {
}
Code:
.Main {
}
Code:
body {
}
So I will now write a list of different definitions
Styling fonts
Code:
font-family: FONTNAME;
font-size: 12px;
color: HEX/COLOURNAME;
font-weight: bold/none;
text-decoration: underline/none;
Code:
border: 1px solid #000000;
Code:
background-color: HEX/COLOURNAME;
Code:
a:link { }
a:visited { }
a:active { }
a:hover { }