I made an button with this code:
I already added some CSS code:
.btn { width: 100%; height: 50px; background-color: #3f9a39; color: white; border: none; text-transform: uppercase; letter-spacing: 2px; } fieldset{ padding:0; }
<fieldset> <button type="submit" class="btn btn-lg" id="submit" value="Submit">Ihre Nachricht absenden</button> </fieldset>
At the moment it looks like this: https://i.stack.imgur.com/JSxKG.png
You can see that I have a border but how can I remove the border ?
I already tried it with:
border: none;
outline: none;
Sincerely yours
This is because of fieldset
not with the button. Try this
fieldset {
border: none; // or use border:0;
}
Live DEMO
.btn { width: 100%; height: 50px; background-color: #3f9a39; color: white; border: none; text-transform: uppercase; letter-spacing: 2px; } fieldset{ border:none; }
<fieldset> <button type="submit" class="btn btn-lg" id="submit" value="Submit">Ihre Nachricht absenden</button> </fieldset>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.