Learn HTML step-by-step from A to Z or improve your professional skills.  Home HTML and CSS Tutorials CSS Basic, CSS Codes

CSS Basic, CSS Codes


CSS Basic, CSS Codes Here i will teach you the basics of CSS (Cascading Style Sheets) and will make a list of many many CSS codes for you to use :D

Ok, CSS codes are written like this:

<style type="text/css">
All of the CSS code goes in here
</style>

And the code is inserted into the <head> and </head> tags of the page.

These are just some CSS codes that I picked up somewhere or other over the internet, I didn't make them, I am just showing you them so you can use them :)

Hope you find what you need!

Colourful scrollbar

<style type="text/css">
body{scrollbar-face-color:#EEEEEE; scrollbar-shadow-color:
#000000;scrollbar-highlight-color: #EEEEEE;scrollbar-3dlight-color:
#000000;scrollbar-darkshadow-color: #EEEEEE;scrollbar-track-color:
#EEEEEE;scrollbar-arrow-color: #000000;} </style>

Add a background

<style type="text/css">
body {background:url(http://www.yoursite.com/the)} </style>

Add a background and have it fixed

<style type="text/css">
body {background:url(http://www.yoursite.com/thebackground.gif) fixed} </style>

Change link text

<style type="text/css">
a:link,a:visited{color:gold;font:9pt verdana}
a:active{color:red;font:9pt verdana}
</style>

Change link background on mouseover

<style type="text/css">
a:hover{background:gold}
</style>

Text to capitols on mouseover

<style type="text/css">
a:hover{text-transform:uppercase}
</style>

General font size, type and colour

<style type="text/css">
body{font-family:verdana;font-size:8pt;font-color:red;}
</style>

Get rid of all the white stuff in images

<style type="text/css">
img{filter:chroma(color=white)}
</style>

Get a crosshair as a cursor

<style type="text/css">
body{cursor:crosshair}
</style>

Put a picture anywhere you want

<style type="text/css">
i.anypic1 {background:url(http://www.yoursite.com/theimage.gif);
height:80;width:80;position:absolute;top:200;left:300}
</style>
<i class="anypic1"> </i>

Change table borders

<style type="text/css">
table {
border-style: solid;
border-color: #CCCCCC;
border-width: 1px;
}
</style>


Author's URL: Adam Priestley
Learn HTML step-by-step from A to Z or improve your professional skills. More Tutorials: Featured Materials | Fresh Materials | More HTML Tutorials at Markuptutorials.com

Reader's comments
comments nikita December 20, 2011 says:
these all are fuckin....
Reply
comments zdmktcvplm December 13, 2011 says:
2hSi9h , [url=], [link=],
Reply
comments iytlsvlycuh December 13, 2011 says:
iMuJ85 <a href=">
Reply
comments jmgyvyz December 12, 2011 says:
3Ixnyn , [url=], [link=],
Reply
comments wwpycltzis December 11, 2011 says:
1nPckn <a href=">
Reply
comments Nelda December 11, 2011 says:
Oh yeah, fabuulos stuff there you!
Reply
comments Ah Bond November 01, 2011 says:
I love this.
Reply
comments HernandezROBBIE September 30, 2011 says:
Set your own life easier get the <a href=" loans</a> and all you want.
Reply
comments Bakekang August 15, 2011 says:
F*ck you all
Reply
comments Alam July 14, 2011 says:
fantastic
Reply
comments a July 14, 2011 says:
a
Reply
comments arshad July 13, 2011 says:
awesome
Reply
comments HPH February 18, 2011 says:
HPH
Reply
comments Justine33Marsh February 09, 2011 says:
I had a desire to start my own commerce, however I didn't earn enough of money to do it. Thank God my mate advised to use the <a href=">. Therefore I used the short term loan and made real my desire.
Reply
comments Shane December 23, 2010 says:
Perfectly executed, very helpful and easy to navigate coding.
Reply
comments dumb September 29, 2010 says:
dumb site
Reply
comments lala September 13, 2010 says:
its a good article, its could be better if there were actual picture of what is going on.
Reply
comments Asanka May 05, 2010 says:
Good Article, Thx

www.webdesigncompany.lk

Reply
comments VEASNA March 29, 2010 says:
VEASN
Reply
comments PHP March 29, 2010 says:
PHP
Reply
Add comments to "CSS Basic, CSS Codes"

Captcha