multiple css files not overriding properly
-
Hi,
I have multiple css files linked through my header.php. I am having a problem whereby the subsequent files (i.e. styles.css and custom.css) are not fully overriding the parent properly (i.e. bootstrap.min.css). They seem to override some elements but not all.
I have tried linking through header.php AND through functions.php but i get the same result, some css applies but not all.
I need them to strictly apply, and override, in this order (last being most important)
1. bootstrap.min.css
2. styles.css
3. custom.cssAny direction would be greatly appreciated.
links for reference:
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/styles.css" />
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/custom.css" />
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/responsive.css" />
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/colors/orange.css" />ps install/environment is local install so cannot provide live link. sorry.
The topic ‘multiple css files not overriding properly’ is closed to new replies.