CSS Practice Page ~ at Runboard.com


Temple of Illusia
 »  Illustrated Secrets of Design .
 »  »  CSS Practice Page

SupportSearch Illusia

   Runboard       

 
Lesigner Girl
Minerva
Worldly Traveler (premium)
Runboard staff member

Registered: 11-2005
Province: SW MI, USA
Posts: 5128
Karma: 89 (+103/-14)
Avatar
Reply | Quote
posticon CSS Practice Page


I threw this practice page together for novices who want to see on-the-fly how CSS works. When you first load the page, it will look very ugly, with different objects having vastly different properties so you can see the difference.

Try sticking this code in there and see the changes:
body   { 

      background:#f4f3e9 url('http://img465.imageshack.us/img465/3052/contentbg1ls.jpg');
      font-size: 12px; font-family:verdana,arial,sans-serif;
      }
table { width: 90%; margin: 0 auto; }
td { vertical-align: top; }

/* Note: .master_table is the main table with the dashed green border */
.master_table { background:#EAEAE7 url('http://img85.imageshack.us/img85/4557/marblebg2hu.jpg');
           margin-top:1em; }
.master_table td { border: 2px solid; border-color: #fff #999 #999 #fff; }
td.master_table_header_td {
       border: 3px solid; border-color: #fff #999 #999 #fff; text-align: center; }
.first_list_td { width: 50%; }
td.second_list_td { border:1px solid; }

/* Note: .inner_table is the table with the dashed purple border. */
.inner_table { font-size: 12px; width:100%; }
.inner_table td { border: 1px solid; border-color: #999 #fff #fff #999; }

.firstspan, .secondspan, .thirdspan, .fourthspan { border: 1px solid black; }
.firstspan { color: #669;}

Now replace it with this in and view the changes:
body   { }

table { }
td { }

/* Note: .master_table is the main table with the dashed green border */
.master_table { }
.master_table td { }
td.master_table_header_td { }
.first_list_td { }
td.second_list_td { }

/* Note: .inner_table is the table with the dashed purple border. */
.inner_table { }
.inner_table td { }

.firstspan, .secondspan, .thirdspan, .fourthspan { }
.firstspan { }

Nothing is defined, so it's all just lumped together. Now try adding some of your own styles and see what you can come up with. If you come up with something that looks really good, feel free to post it here between the [code][/code] tags to show it off. emoticon

---
Image
Customization tutorials & Q&A
11/25/2005, 12:03 am PM Lesigner Girl Read Blog
 
dadog963
Citizen
Worldly Traveler

Registered: 08-2006
Province: Wolves Mountain
Posts: 6
Karma: 0 (+0/-0)
Avatar
Reply | Quote
posticon Re: CSS Practice Page


 emoticon it wont work because u yhave 2 edit it

---
<a href="http://com4.runboard.com/bwolvesunleashed">
<img src="http://img219.imageshack.us/img219/6888/wolvespv5.jpg"</img></a>
8/15/2006, 1:17 pm PM dadog963 MSN Read Blog
 
dadog963
Citizen
Worldly Traveler

Registered: 08-2006
Province: Wolves Mountain
Posts: 6
Karma: 0 (+0/-0)
Avatar
Reply | Quote
posticon Re: CSS Practice Page


nvm i found it emoticon

---
<a href="http://com4.runboard.com/bwolvesunleashed">
<img src="http://img219.imageshack.us/img219/6888/wolvespv5.jpg"</img></a>
8/15/2006, 1:22 pm PM dadog963 MSN Read Blog
 
dadog963
Citizen
Worldly Traveler

Registered: 08-2006
Province: Wolves Mountain
Posts: 6
Karma: 0 (+0/-0)
Avatar
Reply | Quote
Re: CSS Practice Page


heres a cool 1
body   { font-size: 12px; background-color:#f4f3e9; font-family:verdana,arial,sans-serif; }

table { width: 95%; margin: 0 auto; border: 1px solid #999; }
td { vertical-align: top; }

/* Note: .master_table is the main table with the dashed yello border */
.master_table { border: 5px dashed #0C0; }
.master_table_header_td {
       border: 1px solid; border-color: #fff #999 #999 #fff; text-align: left;
       font-weight:bold; background:#eee url('http://img85.imageshack.us/img85/4557/marblebg2hu.jpg'); }
.first_list_td { border: 1px solid #999; width:50%; }
.second_list_td { border: 1px solid red; background:#fff; }

/* Note: .inner_table is the table with the dashed purple border. */
.inner_table { font-size: 20px; width: 50%; border: 5px dashed #C9E; text-align: right; }
.first_inner_td { border: 1px solid gray; background-color: green; vertical-align:bottom; }
.second_inner_td { font-size: 25px; border: 1px dashed #ff0; background: green; color: blue; text-align: left; }
.third_inner_td { border: 1px solid black; background: #f03cd9; }

.firstspan, .secondspan, .thirdspan, .fourthspan { border: 1px solid black; }
.secondspan { color: #0C0; border-color:#00F; }
.fourthspan { display: block; margin: 1em 2em; background:#ccf; font: 150% georgia,'times old roman',serif; }


---
<a href="http://com4.runboard.com/bwolvesunleashed">
<img src="http://img219.imageshack.us/img219/6888/wolvespv5.jpg"</img></a>
8/15/2006, 1:27 pm PM dadog963 MSN Read Blog
 
dadog963
Citizen
Worldly Traveler

Registered: 08-2006
Province: Wolves Mountain
Posts: 6
Karma: 0 (+0/-0)
Avatar
Reply | Quote
Re: CSS Practice Page


coolcoolcoolcoolcoolcoolcoolcoolcoolcoolcoolcoolcoolcoolcoolcoolcoolcool


---
<a href="http://com4.runboard.com/bwolvesunleashed">
<img src="http://img219.imageshack.us/img219/6888/wolvespv5.jpg"</img></a>
8/15/2006, 1:29 pm PM dadog963 MSN Read Blog
 
Lesigner Girl
Minerva
Worldly Traveler (premium)
Runboard staff member

Registered: 11-2005
Province: SW MI, USA
Posts: 5128
Karma: 89 (+103/-14)
Avatar
Reply | Quote
Re: CSS Practice Page


Yikes! It's almost impossible to read the blue text on the green background. emoticon

I'm glad you're having fun with it, dadog. emoticon

---
Image
Customization tutorials & Q&A
8/16/2006, 9:28 am PM Lesigner Girl Read Blog
 
Morwen Oronor
Citizen
Worldly Traveler

Registered: 01-2008
Posts: 370
Karma: 13 (+14/-1)
Avatar
Reply | Quote
Re: CSS Practice Page


That was fun.
You are all very clever people.

 emoticon

---
Image
8/11/2008, 11:29 am PM Morwen Oronor Read Blog
 
Lesigner Girl
Minerva
Worldly Traveler (premium)
Runboard staff member

Registered: 11-2005
Province: SW MI, USA
Posts: 5128
Karma: 89 (+103/-14)
Avatar
Reply | Quote
Re: CSS Practice Page


Thanks, Mo! emoticon

I'm glad you enjoyed it. emoticon

---
Image
Customization tutorials & Q&A
8/11/2008, 7:42 pm PM Lesigner Girl Read Blog
 


Add to this discussion




Powered by AkBBS 0.9.5b  -  Link to us   -  Blogs   -  Hall of Honour   -  Chat
Click here to get your own free message board
You are not logged in (login)      Board's time is: 12/1/2008, 7:48 pm EDT