Bootstrap causing issues with my CSS -


so i've looked @ other questions on here bootstrap overriding original css files none helped fix problem. put css file last , no luck. have hamburger in top right corner , becomes black square, works when click on slide menu goes behind grid instead of in front of it. google fonts , sizing of text not working. links now. script file @ bottom of body.

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">   <link href='https://fonts.googleapis.com/css?family=cabin:400,700|arvo:400,700' rel='stylesheet' type='text/css'>   <link rel="stylesheet" type="text/css" href="aos-gallery.css"> 

https://jsfiddle.net/vrrfd1gx/4/

below in aziz's answer fix issue menu showing behind grid claimed bootstrap wasn't overriding css. if go inspector view page can see is. result demo aziz supplies indeed work font bs not 1 put in , font size wrong too. other pages website design without bs didn't need added margin inner divs aziz suggests, again makes me thing bs affecting css. thoughts?

i don't think problem bootstrap, inner divs have no gaps between them, can space them out using margins:

.button div {     height: 10%;     margin-bottom: 10%;     background: #000;     cursor: pointer;     transition: .5s; } 

also, if want element positioned right side of viewport, use right: 50px instead of left: 1000px ensure consistency across different screen sizes

.button {     position: absolute;     top: 30px;     right: 50px;     width: 45px;     height: 50px; } 

and lastly, menu showing behind gallery, apply higher z-index make sure it's on top:

 .menu-in {    -webkit-animation: menu-in .9s forwards ease;    z-index:2;  } 

working jsfiddle demo


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -