Imagine you have a webpage with a table containing <input>
elements within some of its cells.
Currently, the font-size attribute of the <input>
elements is set to 13px. Your goal is to change this font-size attribute to 12px.
To begin, you want to identify where the font-size attribute is currently set. By using Chrome and accessing the Inspect Element context menu for an <input>
element, you can navigate to the Styles tab and observe the following:
- The
<body>
element has a strikethrough on a font-size value of 14px. - The
<table>
element's class has an active font-size value of 12px. - No additional information is available about the font-size attribute of the
<input>
element, its classes, or its parents. - In FireFox,
input > -moz-use-system-font
is identified as the Best Match.
Your first question is: How can you locate where the 13px font-size value is set for the <input>
element in Chrome or FireFox?
Your second question is: Is it possible to apply a CSS style to the <table>
element with a font-size attribute that will affect every <input>
element within the table?