|
|
|
#1 (permalink) | |||||||||||||
|
4.0ghz
![]() |
HTML 4.01 and XHTML 1.0 use CSS to control how things look on a webpage. No CSS does not stand for Counter Strike: Source. It stands for Cascading Style Sheets. It is very useful for changing the look of webpages. Heres an example of how to make a page with a black background, green heading text and blue paragraph text. It also shows how to set the size and font.
__________________Code:
<html>
<head>
<title>CSS Example</title>
<style type="text/css">
body {background-color: #000000; font-family: arial}
h1 {font-size: 24pt; color: #00ff00; text-align: center}
p {font-size: 12pt; color: #ff0000; text-align: center}
</style>
</head>
<body>
<h1>Green Heading</h1>
<p>Red Paragraph Text.</p>
</body>
</html>
You can also control all the values in one line: Code:
<html>
<head>
<title>CSS Example</title>
<style type="text/css">
body {background-color: #c6c6ff; font-family: arial;font-size: 24pt; color: #0000ff; text-align: center}
</style>
</head>
<body>
<h1>Blue Heading</h1>
<p>Blue Paragraph Text.</p>
</body>
</html>
To test these, copy each into Notepad and save as cssexample1.htm and cssexample2.htm, then open it in a browser. You dont have to use those names but you HAVE to add the .htm or .html at the end of the name before you save. This is just some basic CSS but it gives you an idea how to use it.
|
|||||||||||||
|
|
|
#3 (permalink) | |||||||||||
|
New rig again :s
![]() |
I would have to argue, it stands for Counter Strike Source, only the #1 video game in the USA. JK, great guide. Thanks.
__________________
|
|||||||||||
|
|
|
#4 (permalink) | ||||||||||||
|
Overclocked N00bLaR
![]() |
I think I read something about CSS 2 the other day? Lol
__________________
|
||||||||||||
|
|
|
#5 (permalink) | |||||||||||||
|
Rep/ Post # = worthless
![]() |
CSS ≠ CS:S... :P ... and yes, http://www.w3.org/TR/REC-CSS2/
__________________
|
|||||||||||||
|
|
|
#6 (permalink) | ||||||||
|
Audiophile
![]() |
LOL I actually clicked this thinking it was about CS:S xD good faq though ;).
__________________
|
||||||||
|
|
|
|
#7 (permalink) | |||||||||
|
Case Modder
|
Quote:
|
|||||||||
|
|
|
|
#8 (permalink) | ||||||||||
|
Audiophile
|
Quote:
same here =P
|
||||||||||
|
|
|
|
#9 (permalink) | |||||||||||||
|
The Foxiefluff
![]() |
I must be the fourth to think that :P
__________________
|
|||||||||||||
|
|
|
#10 (permalink) | ||||||||||
|
New to Overclock.net
|
Very cool! Thanks for the info.
__________________
|
||||||||||
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|