Solved

saving a file

Posted on 2003-11-24
2
268 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now