Image goes beyond column width in Bootstrap 4 - html

I’m using Bootstrap grid incorrectly and I’m can’t for the life of me work it out!
I designed this page so that it would split the image alongside the copy. I thought a simple split col-6 row in “Over 40 years Media Experience” would do it but it looks like the image is over 50%.
I want the image to go the width of the column. I’ve tried img-fluid and img-responsive but nothing is working as well as the HUGE (and inelegant!) workaround (written in the following two containers.
If anyone could take a look and see if I’ve missed anything crashingly obvious. I’d be forever grateful.
<div class="container container-head">
<div class="row">
<div class="col-12">
<h2>Over 40 years’ <span class="spotlight">media experience</span></h2>
</div>
</div>
<div class="row">
<div class="col-6-md media">
<div class="fsm-about-pic image-fluid">
<img src="images/about-joncorrinenew640.jpg"
alt="Jon and Corinne from Full Story Media">
</div>
</div>
<div class="col-6-md media-body">
<p><i class="far fa-circle"></i> Full Story Media is led by us: Jon Card
and Corinne Card. <!-- this could be a subtitle now with bit below as a testimonial like the client quotes -->
</p>
<p><i class="far fa-circle"></i> With over 40 years’ media experience between
us, we have written for every national newspaper in the UK, plus many other titles
worldwide.</p>
<p><i class="far fa-circle"></i> We are entrepreneurial, media savvy and believe
in the power of storytelling.</p>
<p><i class="far fa-circle"></i> We ensure our clients get the best advice. In fact, we
insist on it. </p>
<p><i class="far fa-circle"></i> We are also completely transparent about our
methods and tend to give away all of our knowledge.</p>
</div>
</div>
</section> ```

Related

BEM structure feedback

I'm not sure if SO is the right place to ask such question. Let me know if it is not so.
I'm learning the BEM CSS methodology recently and I like how it solves many of the CSS problems like specificity issues. It makes our CSS more maintainable.
As I'm new to it, I'm having a hard time creating correct HTML layout with proper BEM class. I've created a module using BEM and would like experts on opinion on what could be the correct layout according to the best practices of BEM.
Here is the screenshot of what I'm trying to using BEM CSS methodology.
Here is HTML layout that I've come up with so far, please let meknow what would be right way to achieve the same.
<section class="content">
<div class="step-nav">
<div class="step-item">
<div class="step-item__left">
<div class="step-item__progress">
<div>
<i class="fa fa-lightbulb-o" aria-hidden="true"></i>
<span>Step 1</span>
</div>
<div>100%</div>
</div>
<h2 class="step-item__title">General Information</h2>
</div>
<div class="step-item__right">
<i class="fa fa-angle-right" aria-hidden="true">
<span class="screen-reader-text">Next</span>
</i>
</div>
</div>
<div class="step-item"></div>
<div class="step-item"></div>
</div>
</section>
Looks about correct, but you should have just a step-nav block, and all the subsequent child components are simply elements, i.e.:
step-item should really be step-nav__item, since item is an element of step-nav
step-item__left should really be step-nav__item--left since left is a modifier. With that in mind, you should combine them so that you will be using <div class="step-nav__item step-nav__item--left"> in the same nesting level, removing that extra unnecessary level of <div> nesting
Of course, if you think step-nav is too long of a word, you can use step instead.

Image link in angularjs/iconic mobile application not working

I'm trying to get these dumb image links in my mobile app to work, I have 3 different ones.. Email, Phone and Website. All fed dynamically. I got them at least able to do something, but it seems to like try to find it within the application itself.. can anyone help me figure out what I'm doing wrong? I'm really new to mobile applications, this is my first shot so it's rather different than everything else i've done.
<div class="row text-center" style="margin-bottom:20px;">
<div class="col">
<a style="display:block;text-decoration:none;" ng-href="tel:{{data.company.phoneNumber}}">
<div class="well bluegrad-Box">
<i class="fa fa-phone white-Icon"></i>
</div>
</a>
</div>
<div class="col">
<a style="display:block;text-decoration:none;" ng-href="mailto:{{data.company.emailAddress}}">
<div class="well orangegrad-Box">
<i class="ion-email white-Icon2"></i>
</div>
</a>
Thank you!!!!

How to have multiple font-icons in one data-icon declaration or div

Using font icons I put
<div data-icon="r"> </div>
to have an icon display for example.
Now if I like two or more of the same icon to display next to the first one can I only use multiple divs for that like so
<div data-icon="r"> </div>
<div data-icon="r"> </div>
<div data-icon="r"> </div>
or can one somehow write
<div data-icon="r" "r" "r"> </div>
or
<div data-icon="r,r,r,r"> </div>
or something along those lines?
Naturally all these tests fails so I wonder if this is generally possible in HTML and if so how please?
How about this?
<div>
<i data-icon="r"></i>
<i data-icon="r"></i>
<i data-icon="r"></i>
<i data-icon="r"></i>
</div>
This should create 4 inline icons. Im basing this on how font awesome works.

how to make a division on html page responsive?

http://ebullience-tech.com/services.html link to the website
this is my code and have two diferent section left with detail and right with index of the detail, and I want these to get aligned in straight coloumn when opened on mobile, but its not getting aligned, please help
<section id="tabs" class="element">
<div class="container">
<div class="element-sec">
<h3>Domains we have <i>EXPERTISE</i></h3>
<div class="theme-tabs2">
Software Development
</ul><!-- Selectors -->
<div id="myTabContent" class="tab-content aligned">
<div class="tab-pane fade active in" id="software_development">
<div class="col-md-3">
<img alt="" src="images/resource/aligned2.jpg" />
</div>
<div class="col-md-9">
<h3> Software Development</h3>
<h2 style="font-size: large">Softwares plays the key role in maintaining records, data, accounts, ledger, stocks
in a corporate or in an Industry with ease and accuracy. Holding and maintaining large data was a challenge for
human from years but after the evolution of technology its not a big deal now very complex calculations are
now solved in milli seconds. This evolution has increased the efficiency and accuracy of Industries and their
work.
We Provides software development for all types of business need list of softwares we are providing is:</h2>
<ul class="theme-list">
<li><i class=""><img></i>✓ Inventory and Stock Management</li>
<li><i class="icon-check-sign"></i>✓ Account Manager</li>
<li><i class="icon-check-sign"></i>✓ Billing Solution</li>
<li><i class="icon-check-sign"></i>✓ Invoice and Purchase Order</li>
<li><i class="icon-check-sign"></i>✓ Employee Management</li>
<li><i class="icon-check-sign"></i>✓ Payroll Manager</li>
<li><i class="icon-check-sign"></i>✓ Business Analytics</li>
<li><i class="icon-check-sign"></i>✓ ERP</li>
</ul>
</div>
</div>
<div class="tab-pane fade in" id="web_development">
<div class="col-md-4">
<div class="progress">
<div style="width: 85%;" class="progress-bar"><span><HTML /></span> <i>85%</i></div>
</div>
<div class="progress">
<div style="width: 45%;" class="progress-bar"><span><?PHP</span> <i>45%</i></div>
</div>
<div class="progress">
<div style="width: 90%;" class="progress-bar"><span>{CSS}</span> <i>90%</i></div>
</div>
<div class="progress">
<div style="width: 70%;" class="progress-bar"><span>DESIGN</span> <i>70%</i></div>
</div>
</div><!-- Progress Bars Simple -->
<div class="col-md-8">
<h3> Website Development</h3>
<p>Maintaining your presence globaly is a deed now a days in terms of business expansion in which a website gives you
the best result. Website can also be used as applications where you can maintain your data and make mathematical
operations to obtain results. Websites are mainly of two types <i>Static</i> and <i>Dynamic</i>. A static website is an informational website which
contains all the business and contact informations about the organizatoin or individual , no changes can be made in
run time on a static website. whereas a dynamic website contains more flexibility where you can intereact with database
and make changes to your profile and data on run time. Dynamic websites are widely used because they can
be used as a application which can be operated from anywhere in the world without any installation or specific
requirements. We are developing websites on all the major languages like .Net, Java, Php. and back end on SQL Server and MYSQL.</p>
</div>
</div>
<div class="tab-pane fade in" id="mobile_app">
<div class="col-md-3">
<img alt="" src="images/resource/mobile.png" />
</div>
<div class="col-md-9">
<h3>Mobile Apps Development </h3>
<h2 style="font-size: large">Softwares plays the key role in maintaing records, data, accounts, ledger, stocks
in a corporate or in an Industry with ease and accuracy. Holding and maintaining large data was a challenge for
humen from years but after the evolution of technology its not a big deal now very complex calculations are
now solved in mili seconds. This evolution has increased the efficiency and accuracy of Industries and their
work.
We Provides software development for all types of business need list of softwares we are providing is:</h2>
<ul class="theme-list">
<li><i class="icon-check-sign"></i>✓ Android Application</li>
<li><i class="icon-check-sign"></i>✓ Windows Phone Application</li>
<li><i class="icon-check-sign"></i>✓ IOS Application</li>
</ul>
</div>
</div>
<div class="tab-pane fade in" id="soft_web_testing">
<div class="aligned">
<div class="col-md-3">
<img src="images/resource/testing.png" alt="" />
</div>
<div class="col-md-9">
<h3>Testing</h3>
<h2>We evaluate an attribute or capability of a program or system and determine that it meets its required results.</h2>
<p>Testing is an important part of a successful running product, Without testing the development is not completed.
We provides testing services to companies which are working in development field. <i></i></p>
</div>
</div>
</div>
<div class="tab-pane fade in" id="seo">
<div class="aligned">
<div class="col-md-3">
<img src="images/resource/seo.jpg" alt="" />
</div>
<div class="col-md-9">
<h3>Search Engine Optimization</h3>
<h2>Help your site to get placed at good rank in a search engine.</h2>
<p>Positioning <i>your website on top rank</i> in search engine(Google, Yahoo, Bing) search result is termed as SEO.
SEO is one of the most useful service for anyone who is running web based business, products and services are mostly searched on Search engines so if you
have a good rank their you will have get a better response among all the other rival sites.<i></i></p>
</div>
</div>
</div>
<div class="tab-pane fade in" id="graphic_design">
<div class="aligned">
<div class="col-md-3">
<img src="images/resource/graphic.jpg" alt="" />
</div>
<div class="col-md-9">
<h3>Graphic Designing</h3>
<h2>We Believe in developing Best Graphics according to our client's need.</h2>
<p>Graphic design is the art of communication, stylizing, and problem-solving through the use of type, space and image.
Our graphic design include identity (logos and branding), publications (magazines, newspapers and books),
print advertisements, posters, billboards, website graphics and elements, signs and product packaging.<i></i></p>
</div>
</div>
</div>
<div class="tab-pane fade in" id="marketing">
<div class="aligned">
<div class="col-md-3">
<img src="images/resource/marketing.jpg" alt="" />
</div>
<div class="col-md-9">
<h3>Advertising & Marketing</h3>
<h2>Experience the Power of Advertising & Marketing</h2>
<p>Social Meadia has a great reach to people, it connects people and group of people, and marketing you product on social media means
marketing directly to the end user. Most visited websites now a days are social media websites like facebook, twitter, google+
they are connected to billions of people. We are providing social media marketing on Facebook and Google+.<i></i></p>
</div>
</div>
</div>
</div>
<div class="list-group nav-tabs" id="myTab">
Software Development
Web Development
Mobile Apps Development
Software/Web Testing
Graphic Designing
Social Marketing & Advertising
</div>
</div>
</div>
</section>
It's not a problem of alignment of sections and divisions , your whole layout needs to be configured for mobile .
You can use media tag in css3 :
#media (max-width: 1024px){}
for tablet layout
and :
#media (max-width: 770px){}
for mobile layout
And in those tags you can use the same classes and IDs to override your styles to fit mobile and tablet layouts.
I also recommend you resizing then uploading the software development image (since it's original size "1200px*1179px" is really disturbing on mobile ) and to give to your containers :
width:100%;
max-width:1024px;
in order to get a better structured and responsive ready layout .

Making Twitter Bootstrap cells unstackable

I'm working on a new project that's mainly based on Twitter Bootstrap. Problem is, I've been trying for days to figure out how to get the cells (from the grid) not to stack themselves on small resolutions.
I'd like instead that the content of my cells resizes itself, so everything is kept on one single row.
I use the .col-md-3 and .col-md-6 classes, here is my code:
<header>
<section id="left" class="col-md-3">
<i class="fa fa-circle greendot"></i>
<span>ALARM: OK</span>
<br/>
<i class="fa fa-circle orangedot"></i>
<span>DETECTION: SENSORS ISSUE</span>
<p id="logintext">
<?php
if(empty($_SESSION['user']))
{
echo('NOT LOGGED IN /// LOG IN');
}
else {
$uppercaseusername = strtoupper(htmlentities($_SESSION['user']['username']));
echo('WELCOME ' . $uppercaseusername . ' /// LOG OUT');
}
?>
</p>
</section>
<section id="banner" class="col-md-6">
<img src="banner.png" alt="FireGuard Main Banner" id="headerlogo" />
</section>
<section id="right" class="col-md-3">
<h3 id="time"></h3>
</section>
</header>
I hope that you understood what my problem is, I can provide screenshots if needed!
Thanks a lot in advance ;)
Ok I think you need to read the docs well before asking this question but let me sum it up for you.
Bootstrap 3+ has three different grids small(sm)- medium(md)- large(lg) each targeting a different screen size with a mobile first approach.
I will give you the solution but to really understand the mechanism of the framework invest sometime in reading it very well.
Change all of the (md) to (sm) and that should work for you, ex: col-md-3 => col-sm-3