Question:
CSS style sheet help PLEASE!?
desginrkid
2008-06-25 13:09:42 UTC
I really need help using a css style sheet. Iv searched, and iv tried, and iv literaly been beating my head against the wall trying to figure it out.
I need a css external style sheet, i dont know how to make one and i really need one for the layout website im making. Iv read the www.w3schools.com but i Dont get it. I dont know how to put the codes together! Please help me! Iv been trying for a long time now, I have alot of knowledge on html, and none on css. Thanks alot! =]
Four answers:
exevior
2008-06-26 09:38:27 UTC
Hi



I believe that firstly you need to understand what CSS does and then jump in the lake.



So here goes.



I believe that so far you have been writting HTML using Table.

Ok, a bit unorthodox to reccomend this but try this out.

Lets assume that CSS is supposed to replace your styling and put it in an external file, thus cleaning up your messy code.



Let's say you have a table with 1 column and 1 row and some text inside it.



So you would have this code













some text here

some more text here







If you understand this so far, then keep on.



Now lets replace some staff with CSS



You should then have













some text here



some more text here







Now, create a file called style.css and save it in the same location as your html file.

link this file from your tags like this:





Then use this code as an example in the style.css file



.table1 { width: 100px; background: #eeeeee;}

.row1 {width: 100px; height: 50px; text-align: center;}

.blacktext {font-style: bold;}





This should have the same effect as the first code. Notice the change of the = sign with : and the end of each command with ;



If you study the w3schools now, you should be able to understand what the commands to and play with them.

Next step is to learn how to replace the Tables with
tags and so on.



Try to find a website that uses CSS and right click - View Source. Study a bit how they are using CSS and eventually you will understand more staff and learn more commands with CSS.



Good luck and hope this puts you in the right direction
urbi();
2008-06-25 20:29:42 UTC
I hate how so many people are making myspace sites when they don't even understand something as easy as html/css.



If you don't even get that yet, then you shouldn't be setting up a website. You should wait til you have a good command of everything you need to be successful.
dave_h4
2008-06-25 20:18:15 UTC
In the tags of your HTML page put this :





Create a file called styles.css and upload it to the root of yuor server. i.e. :

public_html/



In the styles.css file put this in :

body {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 24px;

color: black;

}
Paultech
2008-06-25 20:15:33 UTC
first time i heard anybody not able to understand w3, well try this

http://www.html.net/tutorials/css/introduction.asp


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...