CSS seems to be functioning properly in Chrome but is not displaying correctly in Internet Explorer and Firefox

Having an issue with the website jgimprinters.com. It loads and functions properly in Chrome, but not in Internet Explorer or Firefox. I have confirmed that Internet Explorer is downloading the style sheet, however it is not applying many of the styles. In IE, elements like the menu button that should be hidden in full size are visible and oversized, none of the menu styling is taking effect, and background colors are not displaying correctly. Even though the stylesheet is being recognized by IE, the styles are not being applied.

Any assistance would be greatly appreciated.

Thank you

EDIT: Here are some snippets of code that are not working - most notably, the entire navigation bar is dysfunctional and the header is missing from below the navigation bar.

#nav-wrapper{
max-width:900px;
margin:0 auto;
}
#nav{
list-style:none;

}
#nav li{
float:left;
}
#nav li a{
webkit-border-radius: 6px 6px 0 0;
-moz-border-radius: 6px 6px 0 0;
border-radius: 6px 6px 0 0;
padding: 0 17px;
margin: 0 auto;
position: relative;
display: block;
height: 30px;
cursor: pointer;
text-decoration: none;
color: #FFFFFF;
line-height: 30px;
text-align: center;
font-size:12px;
font-weight:bold;

}
#nav li a.active, #nav li a.better-active{
background: #EDEDED;
color: #5D5F5D;
}
#nav li a:hover{
background:#5D5F5D;
color:#ffffff;
}
#menu-button{
display:none;
width:36px;
cursor:pointer;
}
#menu-button img{
margin:0px;
}
#head-wrapper{
height:150px;
background:url('/wp-content/uploads/2015/02/header.png') no-repeat;
background-position:center;
width:100%;
display:block;

}
#head-inner{
width:100%;
max-width:900px;
margin:0 auto;
}

#logo{
margin-left:30px;
float:left;
}
#head-right{
float:right;
width:270px;
margin-top:30px;
margin-right:15px;
}
#callout{
font-size: 14px;
font-family: Verdana, Geneva, Arial, Helvetica, Sans-Serif;
font-weight: bold;
font-style: normal;
text-decoration: none;
text-transform: none;
font-variant: normal;
text-align: left;
color: #ED1D2E !important;
width:280px;

}
#phone{
font-size: 30px;
font-family: 'Trebuchet MS', Arial, Helvetica, Sans-Serif;
font-weight: bold;
font-style: normal;
text-align: left;
vertical-align: middle;
color: #000000 !important;
text-decoration:none;
}

Internet Explorer and Firefox seem to be ignoring all of the above code.

Current appearance:

Desired appearance:

Answer №1

Your styles.css file has a syntax error on line 385, causing some browsers like Chrome to automatically correct it while others do not.

… url(/wp-content/uploads/2015/02/nav.png') …

There appears to be a closing apostrophe without an opening one, leading to parsing issues with the rest of the CSS code.

How was this issue discovered?

By examining the stylesheet in my preferred editor, all content beyond line 385 appeared highlighted in yellow—a sign of string text.

Furthermore, validating the CSS would have also pinpointed the error along with others:

386 #main-nav   Value Error : background top is not a color value ) no-repeat, …

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

Prevent clicks from passing through the transparent header-div onto bootstrap buttons

I have a webpage built with AngularJS and Bootstrap. It's currently in beta and available online in (German and): teacher.scool.cool simply click on "test anmelden" navigate to the next page using the menu This webpage features a fixed transparent ...

What steps can I take to satisfy Chrome's rendering of inputs (an image and a text input)?

Visit to see a text input field and an image submit input. Initially, these elements were arranged inline without any formatting issues. However, a recent change has caused the text input to appear on the left of the image input. This alignment is still ...

The scroll function remains unchanged when using overflow-y scroll and border radius

I need help with styling a div that will contain a large amount of text on my webpage. I want to use the overflow-y property for scroll, but the issue arises when trying to style the scroll bar with a radius. Check out this jsfiddle link for reference: ht ...

Use the $.get() method in JavaScript to send a parameter to my controller function

My objective is to showcase the event details in a modal. To achieve this, I am running a JavaScript script that calls the "GetEventsDetails" method in my "Event" controller with the event ID. While debugging in Chrome, I can see the ID being passed corre ...

The functionality of Jquery dynamic form is not functioning properly

I attempted to create a dynamic form using Jquery based on the code provided at http://jsfiddle.net/pixelentity/aABLD/24/. I have implemented the HTML file accordingly. However, the form does not work as intended - it displays the HTML page but fails to sh ...

Tips for aligning two divs on top of each other

I'm trying to figure out how to have divs start drawing from the same point. Essentially, I want to be able to add new divs and have them appear stacked on top of each other, so that they can all move together based on a single reference point. Here& ...

Tips for achieving accurate encoding when using groovy's HtmlParsing on a website

I am currently working on a Groovy script that involves parsing HTML from a Swedish website, and I need to extract the special characters Å, Ä, and Ö. Although this is just an example and not the actual site I am scraping, the problem remains the same. ...

Show off a sleek slider within a Bootstrap dropdown menu

Is there a way to display a sleek slider within a Bootstrap dropdown element? The issue arises when the slider fails to function if the dropdown is not open from the start, and the prev/next buttons do not respond correctly. For reference, here is my curr ...

The CSS counter fails to increment

In this unique example: h3 { font-size: .9em; counter-reset: section; } h4 { font-size: .7em; counter-reset: subsection; } h3:before { counter-increment: section; content: counter(section)" "; } h4:before { counter-increment: subsection 2; ...

How can we stop the jumping of images in the grid? Is there a way to eliminate the jump effect?

Here is a script I am working with: <script src="http://static.tumblr.com/mviqmwg/XyYn59y3a/jquery.photoset-grid.min.js"></script> <script> $(document).ready(function() { $('.photoset-grid').photose ...

Implementing a jQuery for loop to iteratively print my function with increasing values

I'm currently facing a perplexing issue, but the solution should be straightforward. My mind is completely stuck and I can't figure out where I'm going wrong. Simply put, I want to repeat my function three times as illustrated below: If my ...

Is it possible to hide a fixed header on scroll in a mobile device?

I am facing an issue with my Wordpress site where I want the header to hide when the user scrolls. Despite trying various codes, I have been unable to make it work. The reason for wanting to hide the header is that on mobile devices, it causes scroll prob ...

Show a concealed dropdown menu within a CSS grid column utilizing clip-path styling

Working on a Django admin header that makes use of CSS grid to create two columns. I have added a JavaScript dropdown effect to the user icon for displaying options like "Change Password" and "Log Out". However, encountering an issue where the dropdown rem ...

What is causing the QJsonValue(undefined) to be returned?

After sending a request to the API for bid price, I am receiving an undefined QJsonValue and unable to display it later. Can anyone help me pinpoint where I might be going wrong? { QApplication a(argc, argv); MainWindow w; w.show(); QNetwor ...

What methods can be used to create a sitemap for unlinked HTML or PHP pages that do not have an index file?

Imagine a scenario where there is a directory containing 100 files, some PHP and some HTML. None of these files are interconnected or linked together, and there is no index file present. This setup exists within a shared hosting cPanel environment. The q ...

Elevate the HTML progress bar's location using javascript

I am working on a website that features a progress bar. Here is an excerpt from its CSS styling: .progress-bar span { display: inline-block; height: 25px; width: 78%; //this determines the actual position -moz-border-radius: 3px; -web ...

Deciding between Document.createElement() and Document.createTextNode() in Javascript

I'm currently exploring the distinctions between these two code snippets: // first one var h1 = document.createElement('h1'); var t = document.createTextNode('hello'); h1.appendChild(t); document.body.appendChild(h1); // second o ...

What can I do to eliminate the excess white space within my div element?

I've built this app using the create-react-app CLI, but I'm struggling to remove the extra white spaces surrounding my main container. Check out the screenshot below for reference. Currently, the only div in my app has the following CSS: .main ...

Python button Selenium

I am new to using selenium and need assistance with clicking a button located between button tags. I attempted to use find_element_by_tag_name, but it did not work because there are other button tags scattered around before. If I try by_class_name or by_xp ...

Adding an attribute to the last item of an Angular / NGX Bootstrap component

I am working with a dynamic list that utilizes NGX Bootstrap Dropdowns to showcase 4 sets of dropdown lists. However, the Dropdowns in the final list are getting obscured off-page. Thankfully, NGX Bootstrap offers a solution in the form of a dropUp option ...