FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

general css page for a site

 


alalex
if you want to create a css page and link it to other pages, you would create it like styles.css for exaples, and then in the other page you would write <link .. and then what?? >
Ranfaroth
Read this tutorial, step 7...
mariohs
Code:
<link rel="stylesheet" type="text/css" href="styles.css" media="screen, projection" />


media indicates the media type you want your stylesheet to be applied on.
alalex
thanks a lot!! Razz
User_f_ps_other
You can also use the following code as shown below too.

Code:
<style type="text/css" title="currentStyle" media="screen">
@import "css_style.css";
</style>



but i do not use the above method i use the following in all of my websites.

Code:
<link rel="stylesheet" type="text/css" href="styles.css" media="screen, projection" />


Last edited by User_f_ps_other on Thu Oct 05, 2006 4:17 pm; edited 2 times in total
alalex
so in that way you could write more than one @whatever.css and have more than one vss page linked with the same <link> thing?? Its cool
thanks! Very Happy
htmlrules
i woul not use the import option stated above its not very proven to be accurate at loading it in different browsers
Marston
Ranfaroth wrote:
Read this tutorial, step 7...
I dunno if you noticed, but... that tutorial is in french.
Ranfaroth
Well, the XHTML code is international Wink
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.