Log In · Register

 
external css
xbanana
post Mar 30 2008, 10:01 PM
Post #1


Senior Member
****

Group: Member
Posts: 167
Joined: Jul 2007
Member No: 541,143



okay hopefully this didn't already exist
because i tried putting a search on the forum search bar thingy and i couldn't find it.

but for external css files,
what portion of my css do i put it there? do i include the <style.css> whatever things in it? and what is the code for putting the .css file to use?
 
 
Start new topic
Replies
MissHygienic
post Mar 30 2008, 10:03 PM
Post #2


Resource Center Tyrant
******

Group: Official Member
Posts: 2,263
Joined: Nov 2007
Member No: 593,306



Are you talking about this? http://htmlhelp.com/reference/css/style-html.html

QUOTE
An external style sheet may be linked to an HTML document through HTML's LINK element:

<LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen>
<LINK REL=StyleSheet HREF="color-8b.css" TYPE="text/css" TITLE="8-bit Color Style" MEDIA="screen, print">
<LINK REL="Alternate StyleSheet" HREF="color-24b.css" TYPE="text/css" TITLE="24-bit Color Style" MEDIA="screen, print">
<LINK REL=StyleSheet HREF="aural.css" TYPE="text/css" MEDIA=aural>

The <LINK> tag is placed in the document HEAD. The optional TYPE attribute is used to specify a media type--text/css for a Cascading Style Sheet--allowing browsers to ignore style sheet types that they do not support. Configuring the server to send text/css as the Content-type for CSS files is also a good idea.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: