This is my tribute page which I tried to mirror exactly from the original tribute page as made by Quincy Larson. The part which bugs me is his use of class row. He used only one row and in it he put the entire content like lists, headings, images, paragraphs, etc. Also, inside one col-xs-12(just after row) he inserted another col. So col inside col. This has got me confused as to his method.
What I understand from Bootstrap is, you have a container then inside you have a row and inside that row you have cols which may or may not filled the entire row. Then only you can start a new row after the previous row ends and so on. But his(Quincy’s) is one row, inside it one col then inside that col another col.
Unlike containers and rows, Bootstrap columns are nestable and the part of the code that you mentioned, as far as I can tell, is perfectly valid.
If I’m not mistaken, the effect of structuring it this way is two-fold:
Since columns have left and right paddings of 15px, nesting a column inside a column would mean that content in the nested column can take advantage of that padding (a row has -15 px left and right margins, so content inside a column that is immediately inside a row would be at the edge of a container)
Nested columns scale with respect to the width of its parent column. While it’s not apparent/irrelevant in the example tribute page, nesting columns allow you to create more complex layouts, consider the following code:
The row class is meant to be a wrapper for columns and content should be placed inside columns. If I remember correctly, you can have any number of columns inside a row and they will just stack according to their order and how much space they fill up.
Jumping into the conversation. Why does he use row at the beginning? I didn’t use it until I got to the timeline and wanted to add columns to offset where the timeline was place on the screen and it doesn’t seem to have affected anything.
I’m definitely missing something. I tried copying Quincy’s code, but I’m not getting any of the centering or background coloration. Am I missing some hidden code?