View Full Version : CSS Linking


4eva_wishes
07-07-2004, 09:23 AM
I don't get CSS linking, I've read eveything in the CSS section, but I still don't get it, is it like frames or something?

pb&j
07-07-2004, 01:47 PM
no.
frames and iframes will change the contents of an area or window.
css stuff can only format how things look.

linking to an external css page is more similar to SSI coding or PHP includes.

simply put...
one full page of css codes.
whatever webpages link to that page so they can use the styles on that page.

4eva_wishes
07-07-2004, 11:07 PM
So I put 1 page full of the css codes in the 'What does a style sheet look like?' section with my navigation on it and I make the other pages link to that? Or am I way off? ><

Death
07-08-2004, 04:23 AM
The ecternal style sheet can only consist of CSS (I think), so your nabigation wouldn't be able to be included. The style sheet simply changes the look of the page; the background, scroll bar, ect. It can't add content to it. To add the navigation and everything, it has to be on the page itself, not the external CSS.

I hope I'm making sense o.0
Also, when making an external CSS style sheet, be sure not to include the

<style tpye="text/css">

</style>

Tags.

salomeyasobko
07-08-2004, 05:13 AM
So I put 1 page full of the css codes in the 'What does a style sheet look like?' section with my navigation on it and I make the other pages link to that? Or am I way off? ><
you can't put the actual navigation code in the CSS [like Death said] but if you're using a CSS layout, you can put the corresponding CSS coding in the style sheet.. does that make sense?

Death
07-08-2004, 05:18 AM
you can't put the actual navigation code in the CSS [like Death said] but if you're using a CSS layout, you can put the corresponding CSS coding in the style sheet.. does that make sense?


It doesn't realy make sense to me 0.o I'm no good with computers XP Could you explain it slightly? +is curiouse+

salomeyasobko
07-08-2004, 05:25 AM
ahah it doesn't make sense to me anymore either :lol:

okay lets say you're using a DIV for navigation and this is your code:

<DIV ID="navigation">blahblahblah</DIV>

then in your CSS you might have:

#navigation {
position: absolute;
left: 0px;
top: 0px;
height: 400px;
width: 100px;
}

what i meant is, you should include that blue CSS part in your external style sheet but don't include the red DIV code in the style sheet.. does that make sense now? :D

kicker91
07-08-2004, 05:25 AM
CSS does not include content, just styles that change colors, fonts, sizes, etc.

Death
07-08-2004, 05:29 AM
+ponders+ I don't understand why my other signature was inapropriate +ponders some more+


That makes much more sense, salomeyasobko ^.^ And oddly enough, I acctualy knew that XD Though it is a good thing to remember when making external style sheets for CSS layouts ;)

4eva_wishes
07-08-2004, 06:16 AM
So css is all about making content more attractive right?

salomeyasobko
07-08-2004, 06:21 AM
it can make the content look better, but that's not it's main purpose.. it's mostly used so that you can specify the colors, font styles, background image, link decorations, and other properties of your page. it's cool because you can specify how the font looks for your whole page and for different sections without having to use potentially messy coding like <font asldhjasl> [of course you won't use "asldhjasl" :lol:] and <b> and things like that. it's less work for you later on becase you can change a style sheet without having to change the whole page.

4eva_wishes
07-08-2004, 09:25 AM
Ok, thanks for your help eveybody :lolol: