What's new

CSS file example

Sumesh

Member
Hi

what is a CSS file. any example ?. How can we connect Css to HTML?

sumesh
 
Last edited by a moderator:

Trinkets

Well-Known Member
CSS is the flesh and skin of a web page. HTML is normally called the skeleton.

You can add a css file into HTML using

link rel="stylesheet"
 
Last edited by a moderator:

Malcolm

Administrator
Staff member
CSS stands for Cascading Style Sheet, which helps style the appearance of an HTML webpage. The best way to remember this to think HTML as the structure, and CSS is the paint etc.

An example of a .css file:

h1, h2, h3, h4 {
color: red;
}

body {
background-color: grey;
}

Within your HTML document under <head> you can link an external .css file by inserting this in between your <head> tags.
<link href="css/stylesheet.css" rel="stylesheet" type="text/css"/>
Now just make the href="equals to your .css path".
 
Last edited by a moderator:

Jason

Well-Known Member
So no matter how the site is coded or developed, if we know the variables used can we design a good theme using CSS?
 
Last edited by a moderator:

Malcolm

Administrator
Staff member
So no matter how the site is coded or developed, if we know the variables used can we design a good theme using CSS?
I would assume so. I’m not completely experienced but I believe so!
 
Last edited by a moderator:

Jason

Well-Known Member
Okay, i currently use a forum script and i like to do some minor CSS changes in the style so asked the query.
 
Last edited by a moderator:

Malcolm

Administrator
Staff member
Okay, i currently use a forum script and i like to do some minor CSS changes in the style so asked the query.
Why don’t you make thread and we can help you out?
 
Last edited by a moderator:
Top