3
I’m riding a label
+ input text
personalized.
The problem is that each browser interprets the code differently.
My final intention is to get the border-bottom
appears to be a single line.
Chrome and Opera is correct.
Already in IE and Firefox is fully visible the "error" that occurs.
I’m not using css reset, and not even the tag form
.
At first, I believe that the solution is to elaborate different CSS for each browser, but if you have another solution to this problem, you will be very welcome!
Follow 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>
Which IDE do you use? Visual Studio?
– Marco Antonio Quintal
@Marcoantonioquintal The IDE does not matter, the question is the navigator. To create a page you don’t even need to use Ides, notepad + a browser and bye!
– Renan Gomes
I know, but each browser implements some of its own csss and there are tools in Ides that help you find errors and incompatibilities in css. E.g.: your css has padding-right:0px; and when the value is zero we should not put unit of measure. I tested your code in firefox and Chrome and it worked.
– Marco Antonio Quintal
Landmark, regarding the IDE... Do they point out what is incorrect in the CSS or compatibility with each browser? E is working, but the question is about the design that is not the same in browsers. E am using Brackets, no IDE.
– Wesley Redfield