From last week:
We learnt
We learnt
Cascading Style Sheets
or
CSS
or
CSS
These style sheets can be used to clean up an html file, make rounded corners and font colours etc.
pretty much the same sort of language as html, but instead the brackets are not done by a
< >
they are done like this:
{ }
{ }
To add css to your html file you write:
<link href="css/main.css" ref="stylesheet" type="tect/css"/>
<link href="css/main.css" ref="stylesheet" type="tect/css"/>
To reset your webpage so that there are no browser settings involved:
*{margin:0;
*{margin:0;
padding:0;
border:0;}
To reference something from an html file you use a hash tag # to retrieve id tags. For example id i wanted to get a big picture from the html file and position it I would write:
#bigPicture {margin sizes etc}
Margins are written in the brackets clock wise like this:
{margin: top; right; bottom; left;}
{margin: top; right; bottom; left;}
Its always good to leave yourself comments when you're writing code.
for html you leave comments like this:
<!-comment-!>
and in css:
/*-comment-*/
This helps you keep track of everything.
for html you leave comments like this:
<!-comment-!>
and in css:
/*-comment-*/
This helps you keep track of everything.
FONTS
Size:
{font-size: 12px;
{font-size: 12px;
Type:
{font-family: georgia;
{font-family: georgia;
Colour:
{color:blue;
{color:blue;
No comments:
Post a Comment