I'm building a custom%% of% +% with custom%.
The problem is that each browser interprets the code differently.
My final intention is to make the label
appear to be just a single line.
Chrome and Opera are correct.
Already in IE and Firefox is fully visible the "error" that occurs.
I'm not using css reset , and not even the input text
tag.
At first, I think the solution is to build different CSS for each browser, but if you have another solution to this problem, you will be very welcome!
Follow the CSS and HTML code:
.style-select{
margin-bottom: 15px;
}
.style-select select {
background: transparent;
-webkit-appearance: none;
width: 213px;
font: 13px;
color: #444444;
height: 28px;
padding-right:55px;
padding-left: 8px;
border: none;
}
.style-select {
width: 183px;
height: 21px;
overflow: hidden;
background:url(arrow.jpg) no-repeat right;
}
.style-select select {
padding-right:0px;
text-align:left;
line-height:21px;
height:auto;
vertical-align:top !important;
}
.style-select {
border-bottom: 1px solid #C9D3DD;
}
/*Formatação label*/
.label-formulario{
font: 12px HEINEKENCore;
color: #444444;
padding-bottom: 6px;
padding-right: 30px;
padding-left: 10px;
border-bottom: 1px solid #C9D3DD;
border-right: 1px solid #C9D3DD;
float: left;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="estilo.css" >
</head>
<body>
<label class="label-formulario">Pilar T&D</label>
<div class="style-select">
<select>
<option>lorem</option>
<option>Ipsum</option>
<option>Dolor</option>
</select>
</div>
<div>
<label>Treinamento </label><select>
<option>lorem</option>
<option>Ipsum</option>
<option>Dolor</option>
</select>
</div>
</body>
</html>