Just an addendum to the other responses, if you want your <a>
tags to inherit the colour from their parent you can use
a {color: inherit; }
More Related Contents:
- Which CSS properties are inherited?
- Why doesn’t my child element inherit color from its parent when parent has more specific selector?
- Working with CSS in React [closed]
- Change a HTML5 input’s placeholder color with CSS
- Border Gradient with Border Radius
- Is there a CSS selector by class prefix?
- Position Relative vs Absolute?
- Remove padding from columns in Bootstrap 3
- External CSS vs inline style performance difference?
- How can I center elements horizontally or vertically with Twitter Bootstrap?
- Style disabled button with CSS
- Slanted Corner on CSS box
- How to center absolute div horizontally using CSS?
- How to get “position:fixed” css to work in IE 7+ with TRANSITIONAL doctype?
- How to specify an element after which to wrap in css flexbox? [duplicate]
- How to force re-render after a WebKit 3D transform in Safari
- How to link a CSS file from HTML file?
- Build list of selectors with LESS
- Changing an input’s HTML5 placeholder color with CSS does not work on Chrome
- How can I transition height: 0; to height: auto; using CSS?
- Is there a “subgrid” feature, to position “grandchildren” of a grid container?
- how to rotate text left 90 degree and cell size is adjusted according to text in html
- CSS fill remaining width
- Does LESS have an “extend” feature?
- Fading out text at bottom of a section with transparent div, but height stays under section after overlaying div
- What CSS selector can be used to select the first div within another div
- Contain an image within a div?
- CSS: How to change colour of active navigation page menu
- using a div to blur an image behind it? [duplicate]
- CSS: clean solution to the margin collapse issue when floating an element