Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6081315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:09:42+00:00 2026-05-23T11:09:42+00:00

I am beginning to make my first website and I so far have a

  • 0

I am beginning to make my first website and I so far have a menu and all but the problem is I don’t know how to use an external css for formatting….

What I mean by that is, I DO KNOW in an external css if I put body { background-color: yellow} and use <link rel="stylesheet" type="text/css" href="style1.css" /> it will apply yellow to background color of my website.

What I can’t figure out is how can I use a css file to apply the menu and fonts to all of the web pages I make….I don’t want to post this same css code in every web page as the tutorial I am following says it is good programming to just import a css file into all the web pages you want to apply the format to instead of pasting that css code into each and every one….

Here is my code, basically what I want to know is how can I put the css part of the code into a css file so I can call it for all my web pages instead of putting it into my code directly, beware the css changes according to what browser you are using for blur etc.

In short: What will my CSS file look like and what will my htm file look like for code?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blurry Menu</title>
    <style type="text/css">
        body {
            background: #1a1a1a url(bg.jpg);
        }

        #blur {
                position: relative;
                top: 50px;
                width: 100%;
                border: 2px solid #000000;
                border-style: solid none;
        }

        #blur:before {
                     position: absolute;
                     top: 0px;
                     width: 100%;
                   height: 100%;
                   border-top: 2px solid #212121;
                     content: '';
                 }

                #blur:after {

                    position: absolute;

                    width: 100%;

                    height: 100%;

                    top: 1px;

                    border-bottom: 2px solid #212121;

                    content: '';

                }

                #blur ul {

                    position: relative;

                    top: 0;

                    width: 960px;

                    margin: 0 auto;
                   list-style-type: none;

                 overflow: hidden;

                }

                    #blur li {

                        float: left;

                        position: relative;

                    }

                      #blur a {

                            position: relative;

                            float: left;

                            padding: 20px 25px;

                            margin-left: 10px;

                            text-decoration: none;

                            font-family: "trebuchet ms";

                            font-variant: small-caps;

                           color: transparent;

                            text-shadow: 0 0 2px #cacaca;

                            z-index: 100;

                        }

                /* normal styles */
                    #blur a:hover, #blur a:focus {

                       color: #ffffca;

                      text-shadow: 0 0 0 transparent;

                   }

                /* active styles */

                    #blur .active a, #blur .active a:hover {

                        color: #cacaca;

                        text-shadow: 0 0 2px #cacaca;

                    }

    </style>
    <!--[if IE]>

        <style type="text/css">

           #blur {

               -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(color=#212121,direction=180,strength=0)";

                filter: progid:DXImageTransform.Microsoft.Shadow(color=#212121,direction=180,strength=0);

            }

            #blur ul li a {

                color: #ffffca;

                -ms-filter:  "progid:DXImageTransform.Microsoft.Blur()";

                filter:  progid:DXImageTransform.Microsoft.Blur();

            }

            #blur ul a:hover, #blur ul .active a, #blur ul a:focus {

                position: relative;

               margin: 2px 0 -10px 10px;

                -ms-filter:  "progid:DXImageTransform.Microsoft.Blur(enabled = false)";

                filter:  progid:DXImageTransform.Microsoft.Blur(enabled = false);

            }

        </style>

    <![endif]-->

    <!--[if lt IE 8]>
        <style type="text/css">

           #blur ul a:hover, #blur ul .active a {

                position: relative;

                margin: 2px 4px 0 10px;

                filter:  progid:DXImageTransform.Microsoft.Blur(enabled = false);

           }

        </style>

   <![endif]-->

</head>



<body>

    <div id="blur">

        <ul>

            <li>

                <a href="http://dev.icalapp.rogersdigitalmedia.com.rogers-test.com/website.php">Home</a>

            </li>

            <li>

                <a href="http://dev.icalapp.rogersdigitalmedia.com.rogers-test.com/How-to.htm">How-to</a>

            </li>

            <li class="active">

                <a href="http://dev.icalapp.rogersdigitalmedia.com.rogers-test.com/Edit.php">Edit</a>

            </li>

            <li>

                <a href="#">Features</a>

            </li>

            <li>

                <a href="#">Services</a>

            </li>

            <li>

                <a href="#">Contact</a>

            </li>

        </ul>

    </div>

</body>

</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:09:42+00:00Added an answer on May 23, 2026 at 11:09 am

    Move your CSS to a new file, say, “style.css” and import the stylesheet in your webpages. To do this, add the following tag to the HEAD section of your HTML:

    <LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen>
    

    For more details, I recommend you go through this page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since beginning to use VB.NET some years ago I have become slowly familiar with
I am programming my first real PHP website and am wondering how to make
I'm trying to make my first game, a console tetris. I have a class
I tried tackling my first project, an accordion menu. I have set to each
I don't know exactly how to design a project. It's my first year at
I am just beginning to learn SQL and have stumbled at the first hurdle,
This is is my problem: - I need to make a horizontal menu -
Ok First have all i'm sorry for my poor english :) Now for my
I'm just beginning to use Regex so bear with my terminology. I have a
I want to make an App Engine connected Android app, and I'm beginning with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.