I was looking for a striped business theme similar to the one created by W3Schools. The topic can be found here . It is characterized by horizontal sections separated by different background colors.
The only problem I ran into was that the columns in the Services, Portfolio and Prices section covered almost the entire page width, which in my opinion looked great, especially for the three price boxes, which, in my opinion, should be much narrower and still focused. Let me take these price scales as an example for questions.
So, I started the task of compressing these three price boxes into a narrower form, concentrated on the page, while maintaining the full background color. I came up with three ways to do this:
1) Place the container inside the liquid container:
<div id="pricing" class="container-fluid"> <div class="container"> <div class="row"> <div class="col-sm-4 col-xs-12"> BlaBlaBla </div> ... </div> </div> </div>
2) Make the following changes / changes to css and html:
.fixed-width { display: inline-block; float: none; width: 300px; } .row-centered { text-align: center; }
-
<div id="pricing" class="container-fluid"> <div class="row row-centered"> <div class="col-sm-4 col-xs-12 fixed-width"> BlaBlaBla </div> ... </div> </div>
3) 3x col-sm-2, with empty columns on each side
Keep the layout of the fluid container, but instead of three col-sm-4 I have empty col-sm-3 , three col-sm-2 and finally empty col-sm-3 (12 columns total).
4) 3x col-sm-2 with offset-3 to the center
Instead of three col-sm-4, I have one col-sm-2 col-sm-offset-3 , then two col-sm-2 (this does not add to 12, but I'm offset). **
The problem with both (3) and (4) is that after I remove the browser window, the fields become too small before they are moved to the next line (i.e. the text goes out of the box). In (4), it seems like I'm using container (as opposed to container-fluid ), the boxes get too narrow even in full screen mode.
What is the right way to do this? I suppose this is a problem when almost everyone who makes business sites stumbles, but I could not find the answer on the Internet, working on it for several hours.
Thanks in advance,
Magnus