CSS noob questions

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

CSS noob questions

Post by Calimero »

I never used CSS so just a few of noobies Q's:

1. Is CSS used to insert graphic design code (fonts, background colors, styles etc...) / if not, is there any way to store graphics and styles code separately from the page and "call it" when the page loads

2. Can the CSS be stored in a separate file to be called in the html or php file in the same way as php include function (I don't mean the exact syntax, just the same method of inserting it into the page (file) that needs it)

3. The idea is to put all graphics on to a "strong" link because I host my own site and all data in the CSS I would put on good but cheap hosting with strong links so my visitors pull this balast of kb from there instead from me. Is this good point to consider.

4. I had some other Q's but writing these pushed out others :) when if I remember them, I'll post'em in reply

If replying, please reffer to the number you reply to, Thanks !
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

CSS is client-side.

Moving to Client-side
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post by Calimero »

Sorry, thats my knowledga about CSS :D
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

  1. CSS can ask the browser to show some graphics, change fonts, alter the positioning of elements, quite a few things.
  2. yes, CSS can be stored in a seperate file

    Code: Select all

    <html>
    <head>
    <meta rel="stylesheet" href="somefile.css" />
    </head>
jtc970
Forum Commoner
Posts: 38
Joined: Sun Jan 18, 2004 11:49 pm

Post by jtc970 »

1. yes
2. yes
ex:

Code: Select all

<style type='text/css' media="all">
@import url(http://site.com/style.css);
</style>


don't know about 3?
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

I might sound stupid but what is a "strong" link?
User avatar
johnperkins21
Forum Contributor
Posts: 140
Joined: Mon Oct 27, 2003 4:57 pm

Post by johnperkins21 »

User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

...

Post by Calimero »

weak VS strong link

weak from 64 kb/s till 512 kb/s

strong links above 512 kb/s till 1 gb /s on very good hosting's and ISP's

:wink:
Post Reply