I have a table which has a certain style due to the CSS file for the page (it has blue borders, etc...).
Is there a simple way to remove the CSS for that specific table? I was thinking something along the lines of a command like:
style="nostyle"
Does anything like this exist?
Set the CSS border Property to none to Remove Border From a Table in HTML. We can set the border property to none to remove the border from an HTML table. The property is short-hand of different border properties. Those different properties are border-width , border-style and border-color .
Use the revert keyword to reset a property to the value established by the user-agent stylesheet (or by user styles, if any exist). Use the revert-layer keyword to reset a property to the value established in a previous cascade layer.
Identify the element with inherited style by right-clicking the element and select Inspect Element within your browser. A console appears, and the element is highlighted on the page. Right-click the element and select Copy > Copy selector. You will paste this selector into your variation code.
Using the wildcard * selector in CSS to override inheritance for all attributes of an element (by setting these back to their initial state).
Try this.
From Eric Meyer's Reset CSS
table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With