Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 9:22 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ]  Bookmark and Share
Author Message
 Post subject: Basics
PostPosted: Tue Nov 23, 2004 3:02 am 
Offline
250+ Club
User avatar

Joined: Thu Aug 26, 2004 5:06 pm
Posts: 289
Location: PS7+C4D=Love
I will now list the basics of Cascadding stylesheets ( or commonly, CSS)
anything in italics defines the action of the script (remember this all goes in the <head> of your html document

<style type="text/css"> (states you'r about to use css)
<!-- (hides the css code from browsers that dont support it)
Body (indicates the section to be stylized)
{ (starts the styling code for the section)
Background-color: ######; (indicates background color of section, always remember if more than one style is being used seperate by a ; mark)
Border: 1px solid ######; (indicates border width, style, and color)
Font-size: #px; (indicates font size of section)
Font-Family: *insert font*; (indicates font of section, *note each sections font should be defined, not just in the Body section* )
color: ######; (indicates color of font of section)
--> (stops hiding the script)
</style> (ends the css script)

any questions PM me


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 06, 2006 11:14 pm 
Offline
250+ Club
User avatar

Joined: Sun Jun 11, 2006 2:53 pm
Posts: 420
Location: SFRJ
Or you can make separate file - filename.css, and in head put this
<link type="text/css" rel="stylesheet" href="url" />

But what is the difference between these two ways?

I use the second one because the html source code is shorter, and you can use the same .css file on many pages.

which browsers don't support css?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 9:26 am 
Offline
Site Admin
User avatar

Joined: Tue Aug 17, 2004 2:07 pm
Posts: 2554
Location: Sweden
nighthawk wrote:
Or you can make separate file - filename.css, and in head put this
<link type="text/css" rel="stylesheet" href="url" />

But what is the difference between these two ways?

I use the second one because the html source code is shorter, and you can use the same .css file on many pages.

which browsers don't support css?
The difference between having the CSS included or excluded in the file is that if you exclude it to a file. The users gets faster browsing because their browser caches the .css-file. If it's included in the header, it gets loaded for each pageview on the site. So if you do a CSS/DIV layout, and use as much CSS as HTML code in your documents. You can reduce the loadingtimes to 50% for all pageviews except from the first one.

_________________
Make sure to check out our TNX Review and Link Vault Review


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley