When trying to set the border width to 0px, I noticed that the border style doesn't seem to work when using a class selector. Oddly enough, the border width does work if an id selector is used!
Below is the HTML (Vue template) code:
<el-form-item label="Title">
<el-input type="text" id="title" name="title" placeholder="title" v-model="editForm.title"></el-input>
</el-form-item>
<el-form-item label="Tags">
<el-input type="text" class="edit-input" v-model="editForm.tags"></el-input>
</el-form-item>
Here is the corresponding CSS:
.edit-input, #title {
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
border: 0;
margin-bottom: 10px;
}
Resulting output:
https://i.sstatic.net/EAgt3.png
I'm puzzled by this issue. Why doesn't the border work with a class selector? Is there something wrong in my code?