Jul 25, 2008

Css Basics - Just for those who know nothing about css yet.

Free Web Hosting, No Ads > CONTRIBUTE > Tutorials

free web hosting

Css Basics - Just for those who know nothing about css yet.

KansukeKojima
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.

 

 

 


Reply

musicmaza
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

Reply

midnightvamp
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!

Reply

musicmaza
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

Reply

KansukeKojima
It would appear you fixed it while I was figuring out what was wrong.... good job...

Reply

musicmaza
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

Reply

calwolf
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : css basics css

  1. Css Basics No.2 - More basics of css (0)
  2. Want-to-start Html Tutorials - An HTML tutorial that covers the basics (2)
    NOTE: Don't use a rich text editor* for writing HTML code! Use Notepad in Windows,
    SimpleText in Mac or TextEdit in OSX, but you must set the following preferences for the HTML code
    to work! In the Format menu, select Plain Text. Open the preferences window from the Text
    Edit menu, then select "Ignore rich text commands in HTML files." Start Creating Your Own HTML
    File You can either use HTM or HTML file extensions. For more information, visit:
    http://filext.com/file-extension/htm for HTM or http://filext.com/file-extension/html for HT...
  3. Php Variable Basics - Where would PHP programmers be without the variable? Learn all about t (9)
    CODE <?php $var= "This is a variable"; echo $var; ?> Outcome This is
    a variable Using what we know about the echo function, we can see that we have created a
    variable, and then used the echo command to display it. This is fairly simple, and can have many
    uses, but there is much more too it! CODE <?php $var1 = "This is variable
    one"; $var2 = "This is variable two"; $varall = "$var1. $var2.
    You just combined three variables in one!"; echo $varall; ?> Outcome This is...
  4. How To Play The Guitar And Basics For Any Instrument - introductory musical instruction focused on the guitar (0)
    So, you've had your guitar for years and it just sits around collecting dust. But you don't
    have the money to get lessons and you don't think you can play anyway. Well, most likely you
    can play, all you need is practice and little tolerance for pain in the first two weeks. Pain? Why
    pain? Pain because you must condition your fair fingertips for the constant bombardment of pressure
    from metal strings. (Nylon strings are a bit easier and I like them, but it is best to practice on
    the worst strings possible...accoustic, high action and thick gauge so that ...
  5. Learning Vb - Part 1 -- The Basics (5)
    NOTE: This guide assumes you know how to operate your compiler, meaning create objects and forms.
    This guild will only teach you the scripting. Almost all program users and game players alike want
    to create their own software, whether it being a massive game, an easy-to-use calendar, or maybe
    even a hack. However, they must master, or at least know much about a programming language. If
    you've ever seen a Source Code , a text code written by a programmer and execute tasks by a
    computer, you'll know how much time and effort it takes to learn these nevertheless ...
  6. Php - The Basics - Learn the basics of PHP (44)
    I should point out that I originally put this tutorial together for another site, but decided
    against it and to place it here instead (because I love you guys... ~sniffle, wipe a tear away~).
    This tutorial should help get you started if you are just setting out into the big bad world of eb
    development. I have been coding in PHP for a little over a year now, and have worked on several
    large projects in the language - but whilst I certainly don't know everything about it, I would
    like to share some of the basics that hopefully will give you a bit of a kick start. ---...
  7. Assembly Tutorial Part I - The basics through "Hello world" (3)
    Okay, because assembly is an awesome language that is being viewed as archaic in the face of high
    level languages, I'm writing this series of tutorials. Note: This tutorial assumes a working
    knowledge of binary and hex. If you don't have a working knowledge of these number systems, and
    you are interested in learning assembler, let me know and I'll write a brief introduction to
    binary. Currently, until I can do some testing, this tutorial also only works for Windows and
    MS-DOS computers. If anyone with a Linux box is willing to test a routine for me, pleas...



Looking for css, basics, css,

Searching Video's for css, basics, css,
advertisement



Css Basics - Just for those who know nothing about css yet.



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE