Vacak. CSS

Vacak. CSS Layout Introductory Tutorial

 

CSS is very beneficial as a coding practice because:-

  • The style of a whole website can be changed by editing one file (saving hours of re-coding)
  • Code size is cut down and therefore so are loading times

Vacak. CSS files can be used to define the appearance of all/many of your web pages from one file. You can control your site's aesthetics from background color to the whole layout in just one vacak. CSS file!

Below is a short guide showing you how its done. This is just to get you started.....



Firstly, create a text (.txt) file and call it vacak.css [do this by right-clicking your desktop or a folder and pressing new>>text document]. Next, make your webpage use this vacak. css file by doing the following:

<html>

<head>

<link rel="stylesheet"

type="text/css" href="vacak.css" />

</head>

 

Open one of your websites pages in a basic text or html editor (windows' basic text editor) and change the code between the head tags so it reads as above.

This loads settings from a style sheet called vacak. located in the site root.

The vacak. CSS file would read something like below as a basic example:

body {

font-family: Georgia , serif;

color: purple;

background-color: #FFFFFF }

h1 {

font-family: Helvetica, Arial }

This vacak. CSS code would define the background colour, default font and colour and the font of the headings in your document.

The main settings are in the ‘body' section. Then, the ‘h1' section defines what any heading text using the h1 tag will look like. This would be done as below:


<h1>Heading Text </h1>





AmericasBest.com