Standard PHP Page - incorporating Bootstrap.min.css AND original stylesheet // bootstrap is overriding main CSS -


I am adding a new page to an existing site - with php. I decided that for this new page, the ability to add the bootstrap was the addition of the column.

This issue is override the original style sheet and bootstrap.mans CSS / both original style sheets

What is the best way to keep the original style while integrating bootstrap capabilities? Basically, I do not want bootstrap to change the original style sheet - just increase it.

By importing your original style sheet by its sounds, you are importing bootstrap css.

The browser focuses on the stylesheet loaded order. You probably have something in your document

  & lt; Link rel = "stylesheet" href = "/ style.css" & gt; & Lt; Link rel = "stylesheet" href "/bootstrap.min.css" & gt;   

Because you are importing bootstrap css after your style.css

For example

You are in your style.css Can

  p {color: red; }   

and this bootstrap.min.css

  p {color: blue; }   

The end result will mean that your paragraphs will all be blue, and as you have not defined, the red will be there.

There are other factors that can come into play like how to target your CSS or use important but I do not think this is your problem.

You will also get an answer to a similar question

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -