Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Override CDN CSS with my own

Tags:

css

cdn

What is the best way to override CSS rules from a CDN stylesheet?

For example, I want text decoration on all anchored text would I just use:

a{text-decoration: underline !important;}

Since bootstrap has:

a{text-decoration: none;}

Is there a better way?

like image 861
user718229 Avatar asked Jan 04 '23 16:01

user718229


1 Answers

There's no need for !important with a selector like that. Just make sure your rules come after bootstrap's rules and you'll be fine.

<link rel="stylesheet" href="//bootstrap.cdn.url.wow.css">
<style>
  a {
    text-decoration: underline;
  }
</style>
like image 52
Bill Criswell Avatar answered Jan 21 '23 05:01

Bill Criswell