Search code examples
cssinternet-explorer-11

IE11: <link> not working


I insert the following between the <head> tags:

<link rel="stylesheet" type="css/stylesheet" href="fileadmin/css/konsensusempfehlung.css">

This stylesheet does affect my HTML code in Firefox. However in IE11 it does not.

konsensusempfehlung.css:

tr.hauptzeile {
    background-color: #FFFFFF;
    text-align: left;
}

tr.tr-even{
    background-color: #edf7f9;
}

th {
    padding: 0.5em;
}

td.td-0 {
    font-weight: bold;
}

td {
    padding: 0.5em;
}

.table-scrollable {
    width: 100%;
    overflow-y: auto;
    margin: 0 0 1em;
}

.table-scrollable::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
}

.table-scrollable::-webkit-scrollbar-thumb {
    border-radius: 8px;
    border: 3px solid #fff;
    background-color: rgba(0, 0, 0, .3);
}

How do I fix this?


Solution

  • Use the proper type.

    <link type="text/css" rel="stylesheet" href="yourLink">