The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Firefox won't use my CSS; other browsers do
Hffz217
post Oct 10 2024, 05:33 PM
Post #1





Group: Members
Posts: 3
Joined: 10-October 24
Member No.: 29,260



This is the HTML:

<head>
<link rel="stylesheet" type="text/css" href="../css/rpbname.css">
</head>

I open the same code file in each browser.
Chrome, Edge, and DuckDuckGo browsers use my style sheet.
Firefox does not.
I would like to find out why, so I can make it work with Firefox too.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 11 2024, 04:23 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,805
Joined: 10-August 06
Member No.: 7



QUOTE(Hffz217 @ Oct 11 2024, 12:33 AM) *

This is the HTML:

<head>
<link rel="stylesheet" type="text/css" href="../css/rpbname.css">
</head>

Is that all? What does the CSS look like? unsure.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
coothead
post Oct 11 2024, 09:33 AM
Post #3


Serious Coder
*****

Group: Members
Posts: 257
Joined: 12-January 23
From: chertsey, a small town 25 miles south west of london, england
Member No.: 28,743



QUOTE

Is that all? What does the CSS look like? unsure.gif



Also, what does the Full HTML look like? unsure.gif

Both are actually required, simply to see what one is doing to the other. IPB Image

Also note that type="text/css" is no longer required in the link element. IPB Image

coothead

This post has been edited by coothead: Oct 11 2024, 09:34 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Hffz217
post Oct 15 2024, 10:17 PM
Post #4





Group: Members
Posts: 3
Joined: 10-October 24
Member No.: 29,260



I added a path to the font directory to the CSS references to font-family. That fixed the font part of the problem.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Hffz217
post Nov 30 2024, 03:23 PM
Post #5





Group: Members
Posts: 3
Joined: 10-October 24
Member No.: 29,260



Adding the path in the CSS fixed the problem in Firefox, but broke the connection in other browsers. I deleted the path so it would still work in the more popular browsers, Chrome and Edge, and decided to live with the problem in Firefox.

However, I noted that Firefox obeys some of the other instructions in my CSS. I don't have the time to sort it all out. So, let's close this thread.

Thanks to those who participated.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 17th May 2025 - 08:35 PM