Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Css Basics, Just for those who know nothing about css yet.
KansukeKojima
post Dec 13 2007, 10:38 PM
Post #1


Privileged Member
*********

Group: [HOSTED]
Posts: 525
Joined: 13-October 06
From: Alberta, Canada
Member No.: 31,584



A tutorial on some of the basics of css.... I wrote if for my site, may as well post it here too tongue.gif

CSS Basics

Description
For those of you that don't know, CSS stands for Cascading Style Sheets. The whole point of it is to easily edit all of the pages on your website, so you don't have to edit each on individually. In this tutorial, you will learn some of the basics.

Try It Out
Css Syntax has three parts to it. The object (where you want to edit), the property (what part of the object to edit), and finally the value (what you want to edit).

Example
CODE
body
{
color: #3B3B3B;
}


In the above case body is the object, color is the property, and #3b3b3b is the value. (This would cause all the font in your body to be the color #3b3b3b).

As shown above, you state the object first, and then state the property, finally, you state the value. Note: As shown above, all properties must be in the "{" brackets and the values must end with a semi-colon ( ; ).
Now for something more complex.

Example
CODE
body, td
{
font-size: 8pt;
color: #3B3B3B;
}


This time, we have two objects! The objects are body and td are both edited by separating them with the comma ( , ). (Note: you can have three, four, etc. objects as long as they are separated by commas.)

When you have a property with more than one word, you must place a dash ( - ) in between each word. In this case font size is our property, so we will place a dash in between the words: font-size.

Those are some of the basic rules to CSS, I will cover more later.
Go to the top of the page
 
+Quote Post
musicmaza
post Dec 18 2007, 04:52 PM
Post #2


Super Member
*********

Group: [HOSTED]
Posts: 238
Joined: 10-December 07
From: India
Member No.: 54,553



hi KansukeKojima
can u plz help me out I have actually some problem with css ...I uploaded style.css a template which I got from freewebtemplates.com ...to my public_html folder and I also uploaded images to images folder but when i open my site the images aren't displayed and the setting of the template is also not good

Please check my site out ..here and then suggest me the possible causes for it....

greetz
Go to the top of the page
 
+Quote Post
midnightvamp
post Dec 18 2007, 05:00 PM
Post #3


Privileged Member
*********

Group: [HOSTED]
Posts: 597
Joined: 9-May 05
From: Oshawa, Ontario, Canada, North America, Planet Earth, Our Sun's Orbit, Milky Way Galaxy, The Universe, Beyond
Member No.: 6,839



Just from a quick look myself musicmaza, it looks like your style sheets are in the wrong file. In the source code for the page, I see that it is calling for two style sheets:

CODE
<!-- **** layout stylesheet **** -->
<link rel="stylesheet" type="text/css" href="style/style.css" />
<!-- **** colour stylesheet **** -->
<link rel="stylesheet" type="text/css" href="style/colour.css" />


Therefore there should be a file named style.css and another named colour.css inside a folder named style to have them display properly. Right now, I've found your style.css in the public_html folder like you've said, but for the page to be able to find it, you'll have to put it into a folder with the path public_html/style/style.css

Does that make sense? Hopefully that helps!

This post has been edited by midnightvamp: Dec 18 2007, 05:00 PM
Go to the top of the page
 
+Quote Post
musicmaza
post Dec 18 2007, 05:25 PM
Post #4


Super Member
*********

Group: [HOSTED]
Posts: 238
Joined: 10-December 07
From: India
Member No.: 54,553



yes thanks for that I did the same step which you instructed now almost everthing is getting displayed
but the images aren't displayed....please check it out
can you please help me with the images also...like the top header images is not being displayed...so where do I have to uplaod the images
Go to the top of the page
 
+Quote Post
KansukeKojima
post Dec 18 2007, 07:08 PM
Post #5


Privileged Member
*********

Group: [HOSTED]
Posts: 525
Joined: 13-October 06
From: Alberta, Canada
Member No.: 31,584



It would appear you fixed it while I was figuring out what was wrong.... good job...
Go to the top of the page
 
+Quote Post
musicmaza
post Dec 18 2007, 07:38 PM
Post #6


Super Member
*********

Group: [HOSTED]
Posts: 238
Joined: 10-December 07
From: India
Member No.: 54,553



yes thanks
But I didn't did that myself ...I am still new to the world of making websites and know very little about css templates

Without the help of other members it wouldn't have been possible for me........smile.gif
Go to the top of the page
 
+Quote Post
calwolf
post Dec 18 2007, 08:57 PM
Post #7


Newbie
*

Group: Members
Posts: 7
Joined: 18-December 07
From: Logan, UT
Member No.: 54,971



Thanks for your CSS tutorial... I'm currently in the process of learning HTML and CSS. If you'd like to post more, you've certainly got an audience. If you know of any other good online tutorials, I'd love to hear about them. Thanks.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Visual Basics 6 Installation Problem(7)
  2. Accessibility Basics(1)
  3. Css Basics Tutorial(9)
  4. Assembly Tutorial Part I(3)
  5. Php Tutorial - Basics...up To Mysql/file Commands(1)
  6. php tutorial - basics...up to mysql/file commands(6)
  7. Php - The Basics(44)
  8. Learning Vb(5)
  9. What Is A Proxy?(5)
  10. Make Money Online 101 ::new Blog::(0)
  11. An Indepth Look At The Winsock Control(1)
  12. [tut/mod]functions Learning The Basics(0)
  13. How To Play The Guitar And Basics For Any Instrument(0)
  14. Some Mysql Basics(4)
  15. Starting Gunz(1)
  1. Php Variable Basics(9)
  2. Dog Care Basics(9)
  3. Want-to-start Html Tutorials(2)
  4. Css Basics No.2(0)
  5. Connecting Two Computers With A Crossover Cable(7)


 



- Lo-Fi Version Time is now: 12th October 2008 - 08:58 PM