user3894475
user3894475

Reputation: 149

CSS missing on Internet Explorer and Firefox

This looks perfectly fine on Google Chrome, so I did my research, and all I could find was changing the <!DOCTYPE HTML> to

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

but this didn't work.

What's causing my CSS to be missing on these browsers?

Website: http://www.doxingservices.com

Upvotes: 1

Views: 80

Answers (2)

Bhojendra Rauniyar
Bhojendra Rauniyar

Reputation: 85575

It should be: text/css not text/html

 <link rel="stylesheet" type="text/css" href="include/main.css" />

In html5 you can avoid using type attribute:

 <link rel="stylesheet" href="include/main.css" />

Upvotes: 2

TysonWolker
TysonWolker

Reputation: 436

The problem is you are declaring the wrong type.

<link rel="stylesheet" type="text/css" href="include/main.css">

Actually the type isn't required anymore so you can simply do

<link rel="stylesheet" href="include/main.css">

Upvotes: 2

Related Questions