Solved

saving a file

Posted on 2003-11-24
2
280 Views
Last Modified: 2013-12-03
How can I save a section of my HTML page in a file that I use on every page and include it in my file,
with #include file... or something.

Eg I want to save:
<style type="text/css">

/* for the td style*/
td  {font-family: Arial; color:black;font-size:12px;}
 
 /*for the links*/
a:link    { color: #000000; }    
a:visited { color: #666666; }
a:hover   { color: #FF0000; }
a:active  { color: #FF0000; }

/*for the style of your text boxes*/
.textbox  {font-style:Arial; color:red;font-size:15px;width:300px;}  

/*For the style of the Title pages*/
H1  {font-style:Arial; color:#996600;font-size:15px;}  

/*For the style of the Question names*/
H2  {font-style: Arial; color:#CC0000;font-size:15px;}

/*For the style of the routing instructions*/
H3  {font-style:Arial; color:#99CCFF;font-size:15px;}  
</style>
 and include it in my page
0
Comment
Question by:PieP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 30 total points
ID: 9814510
Like this:
<link rel="stylesheet" type="text/css" href="style.css">

You just need to adjust the location depending on where it is in reference to the page.

And style.css contains what you have above, but without the style tags:

/* for the td style*/
td  {font-family: Arial; color:black;font-size:12px;}
 /*for the links*/
a:link    { color: #000000; }    
a:visited { color: #666666; }
a:hover   { color: #FF0000; }
a:active  { color: #FF0000; }
/*for the style of your text boxes*/
.textbox  {font-style:Arial; color:red;font-size:15px;width:300px;}  
/*For the style of the Title pages*/
H1  {font-style:Arial; color:#996600;font-size:15px;}  
/*For the style of the Question names*/
H2  {font-style: Arial; color:#CC0000;font-size:15px;}
/*For the style of the routing instructions*/
H3  {font-style:Arial; color:#99CCFF;font-size:15px;}  
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9817292
Thanks, and good luck with your project!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question