I am having hard time understanding bootstrap (http://getbootstrap.com/ ). You guys might laugh but it's true :)
I know how to add navigation and almost any components that they provide
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">
<img alt="Brand" src="...">
</a>
</div>
</div>
</nav>
Copy and Pasting can do the job but how do we style it? Is it pure Overriding the class?
.navbar {
my override style
}
.navbar-default {
my override style
}
or we create our own class maybe if i have blog i call it blog-nav and then style to make it looks like what I preffer?
<nav class="navbar navbar-default blog-nav">
</nav>
I can't get and wrap with the idea of styling in Bootstrap, I know that bootstrap follow OOCSS (Object Oriented CSS) Architecture and I found out this idea can be super effective when styling.
So back to the question How to style bootstrap? For example i want to create an interactive panel in a page
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="panel panel-default></div>
</div>
<div class="col-md-3">
...
</div>
<div class="col-md-3">
...
</div>
</div>
</div>
How can I customize the panel?.. Do I have to override the panel class, or create a new class and add it beside panel?
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="panel panel-default my-panel<!-- Like this? -->></div>
</div>
</div>
</div>
And how can I follow the OOCSS, I get the concept already but separating class means each class will have specific style and the other class will work/styled based on the parent class(base/object) . How can I identify each class have this and that styling? This is hard for me :(
If anyone have tips regarding this and best practices on how to style bootstrap or anything related please share it with me :) and Peace.
Thank you