mysterious glitch within my code

Accidentally inserted the following code snippet

   <style type="text/css">

into my Top_menu.css file due to a copy and paste error, forgetting to remove it. Now trying to delete all the code will crash everything!!! Here is my Top_menu.css file:

        <style type="text/css>"
        #centeredmenu {
           float:left;
           width:700px;
           background:#fff;

           overflow:hidden;
           position:relative;

        }
        #centeredmenu ul {
           clear:left; 
           float:left;
           list-style:none;
           margin:0;
           padding:0;
        margin-left:330px;
        margin-top:72px;
           text-align:center;
        }
        #centeredmenu ul li {
           display:block;
           float:left;
           list-style:none;
           margin:0 10px 0 10px;

           padding:0;
           position:relative;

        }
        #centeredmenu ul li a {
           display:block;
           margin:0 0 0 1px;
           padding:20px 10px;

           color:#000;
           text-decoration:none;
           line-height:1.3em;
           border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        }
        #centeredmenu ul li a:hover {
           background:#369;
           background:#212121;
           color:#fff;
           padding-top:15px;
        }
        #centeredmenu ul li a.active,
        #centeredmenu ul li a.active:hover {
           color:#fff;
           background:#212121;
           font-weight:bold;
           padding-top:15px;

        }
        #spread
        {
            position:relative;
            top:128px;

            width:955px;
            height:340px;
            background-color:#212121;
        }

This is my style.css file:

    @charset "utf-8";
    /* CSS Document */
    @import 'reset.css';
    body
    {background:#e8e8e8   url(../images/Back.png) top repeat-x;

    }
    #outer
    {
        width:955px;
        height:1200px;
        margin:0 auto;


    }
    #header
    {
            background:url(../images/header.png) top  no-repeat;
            height:143px;

    }
    #logo h1
    {
        text-indent:-9999px;


    }
    #main_content
    {   
        margin-top:128px;
        height:400px;
        background-color:#ffffff;

    }
        #left_side {width:550px; height:auto; float:left; }
        #left_side h2
        {

            font-size:30px;
            color:#2d5a65;
            padding-top:30px;
            padding-left:30px;

        }
        #left_side span
        {

            font-size:12px;
            font-style:italic;
            color:#bbbaba;
            padding-left:30px;
        }
        #left_side h4
        {

            font-size:12px;
            font-weight:bold;
            color:#6f6f6f;  
            padding-top:30px;
            padding-left:30px;
        }
        #left_side div
        {
                font-size:12px;

            color:#6f6f6f;  
            padding-top:30px;
            padding-left:30px;
            line-height:20px;
        }
        #left_side a
        {
            font-size:12px;

            color:#6f6f6f;  
            padding-top:40px;
            padding-left:30px;
            text-decoration:none;
        }   
        #right_side
        {
            background-color:#f6f6f6;
            width:295px;
            height:300px;
            border:15px solid #e7e7e7;
            float:right;

            margin-top:30px;
            margin-right:40px;

        }
        #inside_right{ height:250px; margin:20px 10px 20px 10px; }
        #inside_right span
        {
            font-size:18px; color:#7c7c7c; 
        }
        #inside_right hr{width:200px; color:#dadada; margin-top:20px;}
        #inside_right img{padding-top:30px; padding-right:10px; float:left;}
        #inside_right div{width:250px; padding-top:25px; line-height:22px; height:150px; font-size:12px;}
        #inside_right a{font-size:12px; font-weight:bold; text-decoration:none; color:#6d6d6d; float:right; padding-right:10px;}

    /*Above footer*/
    #above_footer{height:300px; border-top:10px #5a5a5a solid; border-bottom:10px #666666 solid; background-color:#656565;}
        #f_left{width:230px; height:250px; margin-left:20px; margin-top:20px; float:left;}
        #f_center{width:230px; height:250px;margin-left:100px; margin-top:20px; float:left; ;}
        #f_right{width:230px; height:250px; margin-right:20px; margin-top:20px;  float:right; }
        .header_footer{font-size:20px; color:#ffffff; font-style:italic; margin-bottom:15px;}
        .bold_footer{font-size:11px; color:#ffffff; font-weight:bold; padding-top:10px; clear:left;}
        .reg_footer{font-size:11px; color:#FFF; line-height:15px; padding-top:5px; clear:left;  }
        .footer_line{width:200px; float:left; }
    #below_footer{background-color:#1a1a1a; height:50px;}
        .footer_color{color:#989898; font-size:11px;}
        #copy{  padding:20px; float:left;}
        /*footer menu*/
        #below_footer ul{float:right; padding:20px;}
        #below_footer ul li{float:left; }
        #below_footer ul li a{ text-decoration:none; color:#989898; padding-left:2px; padding-right:2px;}

This is my html file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link rel="stylesheet" href="css/Top_menu.css" />
    <link rel="stylesheet"  href="css/style.css" />
</head>

<body>
<div id="outer">
    <div id="header">
        <div id="logo">
            <h1>cleanfolio</h1>
        </div><!--End Logo-->
        <div id="centeredmenu">
            <ul>
            <li><a href="#" class="active"  >Home</a></li>
            <li><a href="#" >portfolio</a></li>
            <li><a href="#" >blog</a></li>
            <li><a href="#">About Us</a></li>
            <li><a href="#">Service</a></li>
            <li><a href="#">Contact Us</a></li>
          </ul>
        </div>  <!-- end Center menu-->
         <div id="spread">
          </div> <!-- End Spread -->




        <div id="content">
            <div id="main_content">
                <div id="left_side">
                    <h2>Welcome to our company</h2>
                    <span>Lorem Ipsum is simply dummy text of the printing and typesetting</span>
                    <h4>
                    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</h4> 
                       <div>
        It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus 
        PageMaker including versions of Lorem Ipsum.<br/><br/>

        It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. 

                        </div><!--end div-->
                    <a href="#">Read More>></a>
                 </div><!--End Left_side-->

                <div id="right_side">
                    <div id="inside_right">
                        <span>Testimonials:</span>
                        <hr />
                        <img src="images/unknown.png" alt="unknown"/>
                        <div>It is a long established fact that a        
                   reader will be distracted by the readable content of a page when looking at its layout. Content here, content here', making it look like readable English."</div><!--End Div-->
                         <a href="#">-John Smith, webdesigner</a>
                    </div><!--End Inside right-->
                </div><!--End right_side -->
            </div> <!--end main_content-->
        </div><!--End Content-->
    </div><!--End Header-->
    <div id="above_footer">
        <div id="f_left">
            <div class="header_footer">Events &lt; Updates</div>
            <hr class="footer_line" />
            <div class="bold_footer">
              Posted on 20 May 09
            </div><!--end div class bold footer-->
            <div class="reg_footer">Listuem Names ligula a blandit ornare ligula a quis bibendum elit anten ecm etus blandit
            </div><!--End Div with class reg_footer-->
             <hr class="footer_line" />
             <div class="bold_footer">
              Posted on 24 May 09
             </div><!--end div with bold footer class-->
             <div class="reg_footer">
             Nulla elit porttitor tellus quis bibendum elit ante nec metus.
            </div><!--end reg footer class-->
            <hr class="footer_line" />
        </div><!--End Footer left-->
        <div id="f_center">
                <div class="header_footer">What We Do</div><!--End header footer-->
                <hr class="footer_line" />

                <div class="bold_footer">
                        It has survived not only five centuries, but also 
                the leap into electronic typesetting, remaining essentially unchanged. 
                </div><!--End bold footered class-->
                <br />
                <div class="reg_footer">
                It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, 
                and more recently with desktop publishing software 
                like Aldus PageMaker including versions of Lorem 
                Ipsum.
                </div><!--End reg footer-->
        </div><!--End Footer center-->
        <div id="f_right">
            <div class="header_footer">Get in touch!</div><!--End header_footer class-->
             <hr class="footer_line" />
             <div class="reg_footer">
        Lorem Ipsum is simply dummy text of the printing and typesetting industry.
         </div><!--End reg_footer-->
            <hr class="footer_line" />
            <div class="bold_footer">+123456789</div><!--End bold one-->
            <div class="bold_footer">+123456789</div><!--End bold one-->
            <div class="bold_footer"><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="41222e2c31202f3801252e2c20282f2f202c246f222e2c">[email protected]</a></div><!--End bold one-->
        </div><!--End Footer right-->
    </div><!--End Above footer-->
    <div id="below_footer">
        <div id="copy" class="footer_color">© Copyright 2009. Your Site Name Dot Com.</div><!--End copy -->
        <ul class="footer_color">
            <li>All Rights Reserved      </li>
            <li><a href="#">Home</a><samp>|</samp></li>
            <li><a href="#">Contact</a><samp>|</samp></li>
            <li><a href="#">RSS</a></li>
        </ul>
    </div><!--End Below footer-->
</div> <!--End outer-->
</body>
</html>

Answer №1

Avoid placing that line within the css file. Instead, ensure to include your css file by using

<link rel="stylesheet" type="text/css" href="Top_menu.css" />
in your main html file between <head> and </head>.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the best way to align a single item to the right on the navbar in Bootstrap 5.3 (v5.3.0-alpha1)?

Attempting to position a dropdown link to the right in my Bootstrap 5.3 navbar proved to be challenging. The method that worked with Bootstrap 3, using navbar-right, and with Bootstrap 4, possibly ml-auto, did not work with Bootstrap 5 beta which uses me-a ...

Ways to extract dropdown selection into a .php script

I am trying to capture the selected dropdown value in my .php file, which is used for sending emails. When a user selects one of the 6 options from the dropdown menu, I want that selected option to be included as the email subject. Below is the HTML code ...

Using Android to Load HTML Content from a Database and Display in a WebView

I am currently facing an issue with loading HTML content from my sqlite database into a webview successfully. The HTML renders beautifully, however, the local file included in the HTML is not being loaded. I have placed it in the assets folder under this s ...

Code behind implementing a new System.Drawing.Font

Recently, I have been attempting to generate an image using the Black Rose font in c# but unfortunately, the output does not reflect the desired font. Below is the code snippet I used for creating the image: protected void Page_Load(object sender, Eve ...

Delete the browsing cache in Internet Explorer from an external source

Currently, I am working on developing an ASP.NET application using Visual Studio. However, a persistent issue I am facing is that every time I launch the application, Internet Explorer caches certain CSS and JS files. This forces me to manually clear the c ...

Executing a C# program that sends a web request without using JavaScript

My goal is to programmatically download the contents of a website, but it seems like this content is being loaded through ajax calls. Interestingly, when I disable javascript in my browser, only one request is made by the page and all the content is displa ...

What is the best way to create pages that showcase 10 posts each?

Currently, I am facing a challenge with displaying 100 posts using the Fetch API on one single page. I am looking for a way to create separate pages where each page would showcase only 10 posts. Below is my existing JavaScript code: fetch('htt ...

The CSS file cannot be found on the live XAMPP server

Here is the current structure of my project: https://i.sstatic.net/foUiy.png I attempted to link my CSS stylesheet by navigating to the project path, then /css, and finally /style.css. This setup works correctly when opening the .html file locally in a b ...

Adjustable text size to accommodate different cultural changes

My team is working on an MVC web application, with CSS stylesheets utilized in views. We are trying to achieve the following scenario: Whenever the language culture changes from English to another language, we want the font size of a specific class to ...

Accessing embedded component within an Angular template

I have a ng-template that I utilize to generate a modal with a form on top of one of my other components like this: <div> <h1>Main component content...</h1> <button (click)="modals.show(newthingmodal)">Create New T ...

Tips for ensuring browsers maintain the aspect ratio specified by width and height HTML attributes when CSS is applied

I am seeking a method to reserve space in my layout for images before they are loaded by adding width and height properties to the img element. This approach functions as anticipated: img { display: block; border: 1px solid tomato; } <img src="" ...

Arranging elements on a webpage using CSS grid placements

Currently experimenting with css grid, envisioning a scenario where I have a 2x2 grid layout. When there are 4 child elements present, they would form 2 rows of 2 elements each. My challenge is when dealing with an odd number of children, I aim to avoid al ...

Animate the appearance of list items sequentially using CSS animations

Is there a simpler way to achieve the effect of having list items slide in one after the other? The CSS method provided here seems quite intricate. #nav ul.is-visible{visibility:visible;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transfo ...

The bottom border of the HTML header does not properly wrap around the Table of Contents (ToC), although the text within the header does. What steps

I have created a Table of Content (ToC) using a Div element and styled it with the following HTML and CSS: h3.articletitle { font-weight: bold; font-size: 30px; border-bottom: 1px solid #4F120B; } h4.articlesubtitle { font-weight: bold; ...

Adjusting the size of the entire webpage using Bootstrap 5

My webpage is built using Bootstrap 5 and overall, I am pleased with how it looks. However, I'm finding that all the body elements are too large. View Elements too large The elements at the bottom of the page are getting cut off and I want the entir ...

Implementing various onclick button interactions using Vanilla Javascript

I'm looking to update the value of an input when a user clicks on one of my "li" tags, but I want to do it without relying on jQuery. The HTML below shows two sample list tags and I need help with determining how to differentiate between them in the i ...

Discover the procedure to alter date formats in MongoDB

I recently created a MongoDB collection using Node.js with the following code: var mongoose = require('mongoose'); var TTTUsersSchema = new mongoose.Schema({ username: String, password:String, active: Boolean, created_at: { type: Dat ...

Passing $index variable from a bootstrap modal window does not work in AngularJS

I'm running into a wall here. My issue involves using ng-repeat to populate a table with two buttons in each row - one for updating the row content and another for uploading files. The upload button triggers a bootstrap modal window where users can se ...

What is a simple way to export an HTML table to an Excel file in ASP.NET?

We need to create a report from the database and include an export button so users can download the report in an Excel-readable format. The priority is on simplicity of implementation, so using CSV is preferred over XLS if it's more straightforward. ...

table rows are styled with hover effects and alternating colors using CSS

Styles for even and odd table rows are set, but hovering over the table rows is not working. Test it out here: http://jsfiddle.net/w7brN/ CSS style : #table_even tr:hover { background-color:#fffbae!important; } /* hover effect */ #table_even tr:nth-ch ...