Jump to content

Can I link to external CSS menu


SmokingMan
 Share

Recommended Posts

Make a file called stylesheet.cssIn this file, put all the css info you want, without the <style> tags. Just plain css info in the format ofselector { css-info }Then, in the <head> section of your html documents, you write this:<link rel="stylesheet" type="text/css" href="stylesheet.css" />

Link to comment
Share on other sites

An important thing to note is that the method Jonas describes is going to style your menu through every page. However, if you want to change data, you would have to use some third language that would force a single data to appear everywhere. It could be a server side include, XSLT executed with JS and so on.

Link to comment
Share on other sites

Whoops, you're talking about the actual html code for the menu. Sorry about that. In that case, like boen said, a serverside language would be best to include a file. Or, if your host supports SSI (ServerSide Include), that's good enough.Include function in ASP (Active Server Pages):http://www.w3schools.com/asp/asp_incfiles.aspInclude function in PHP (Hypertext PreProcessor):http://www.w3schools.com/php/php_includes.asp

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...