
Originally Posted by
Beverleyh
The template uses Bootstrap so maybe first research that in order to work *with* the foundation. Probably not a good idea to change the markup in the template - concentrate on manipulating the CSS instead.
Thank you for the answer Beverleyh. I'm not sure if I understand you correctly, but I think you're saying the developer didn't use Bootstrap but CSS, if thats what you mean, the developer actually used bootstrap on the rest of the page, just on the portfolio items he didn't, don't know why. Here some part of the original template code using bootstrap:
Code from the Services Section
Code:
<div class="row">
<div class="features">
<div class="col-md-4 col-sm-6 wow fadeInUp" data-wow-duration="300ms" data-wow-delay="0ms">
<div class="media service-box">
<div class="pull-left">
<i class="fa fa-line-chart"></i>
</div>
<div class="media-body">
<h4 class="media-heading">UX design</h4>
<p>Backed by some of the biggest names in the industry, Firefox OS is an open platform that fosters greater</p>
</div>
</div>
</div><!--/.col-md-4-->
Code from the Features Section
Code:
<div class="row">
<div class="col-sm-6 wow fadeInLeft">
<img class="img-responsive" src="images/main-feature.png" alt="">
</div>
<div class="col-sm-6">
<div class="media service-box wow fadeInRight">
<div class="pull-left">
<i class="fa fa-line-chart"></i>
</div>
<div class="media-body">
<h4 class="media-heading">UX design</h4>
<p>Backed by some of the biggest names in the industry, Firefox OS is an open platform that fosters greater</p>
</div>
</div>
Code from the Process Section
Code:
<div class="row text-center">
<div class="col-md-2 col-md-4 col-xs-6">
<div class="wow fadeInUp" data-wow-duration="400ms" data-wow-delay="0ms">
<div class="icon-circle">
<span>1</span>
<i class="fa fa-coffee fa-2x"></i>
</div>
<h3>MEET</h3>
</div>
</div>
<div class="col-md-2 col-md-4 col-xs-6">
<div class="wow fadeInUp" data-wow-duration="400ms" data-wow-delay="100ms">
<div class="icon-circle">
<span>2</span>
<i class="fa fa-bullhorn fa-2x"></i>
</div>
<h3>PLAN</h3>
</div>
</div>
Code from the Pricing Section
Code:
<div class="row">
<div class="col-sm-6 col-md-3">
<div class="wow zoomIn" data-wow-duration="400ms" data-wow-delay="0ms">
<ul class="pricing">
<li class="plan-header">
<div class="price-duration">
<span class="price">
$39
</span>
<span class="duration">
per month
</span>
</div>
I'm assuming that when he uses stuff like "col-sm-6 col-md-3", he's using bootstrap. Which is one of the thing I had to search on the internet an learn a little bit in order to make the changes to my website.

Originally Posted by
Beverleyh
When box-sizing: border-box; is applied to elements, padding is absorbed by the box model (maybe read up on the box model if you don't know what that is), but margin isn't. This may help shed some light on why certain widths are used (e.g. 32% instead of the more obvious 33.333% for thirds) and indicate what you can target to fix layout problems. For example, in the mobile view when you say the single column of images is not centered, try zeroing the margins (margins push/pull things sideways when their horizontal values are mismatched). Likewise, when the images break their grid in wide(r) screen view, the margins will probably be to blame; Element width + horizontal margins + borders must total 100% or less in order to occupy one line (and not shunt elements into other rows). This logic will be further expanded on when/if you read about the box model though.
That makes sense, thank you and I'll search on the internet about box model and try to learn about it.

Originally Posted by
Beverleyh
Sometimes it's just better to go to the source
Already did that, don't know if they will do something about though.
Bookmarks