Topic on Project:Support desk

86.173.52.65 (talkcontribs)

Hi can I have some help to change these css codes

.mp_header {
 width: 100%;
 clear: both;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png');
 background-color: #008FCC;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -moz-linear-gradient(top, #000, #f9f9f9, #ddd);
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-gradient(linear,
            left top, left bottom, from(#ddd), to(#000));
 filter: progid:DXImageTransform.Microsoft.Gradient(
            StartColorStr='#008FCC', EndColorStr='#f9f9f9', GradientType=0);
 padding: 1px 10px 1px 10px;
 color: #000;
 border: none;
 margin-bottom:0px;
}

I need to change it where it say moz to support what it does on WebKit because when visiting this http://simple-random-wikisaur.tk on chrome it has a black background on the header but when visiting http://simple-random-wikisaur.tk on internet explorer it has a blue colour header. Please help so that every browser will show the black header please. Thanks

Ricordisamoa (talkcontribs)

To use the gradient defined for WebKit:

.mp_header {
 width: 100%;
 clear: both;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png');
 background-color: #333;
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -moz-linear-gradient(top, #ddd, #000);
 background-image: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png'), -webkit-gradient(linear,
            left top, left bottom, from(#ddd), to(#000));
 filter: progid:DXImageTransform.Microsoft.Gradient(
            StartColorStr='#ddd', EndColorStr='#000', GradientType=0);
 padding: 1px 10px 1px 10px;
 color: #000;
 border: none;
 margin-bottom:0px;
}

The gradient fallbacks to a dark gray.

Reply to "Css code help"