I don't have any experience with html, so I am using a free template for my website that uses fadeInUp to display images. When the page is first loaded one section overlaps the images on top of each other and even on top of a contact form at the bottom of the page. Shown here:
Overlapping Images
This persists until the page is reloaded, then it all works like it's supposed to. I've tried for days to find a solution, but with my extremely limited knowledge, it's hard to even know what to look for. Here is what it should look like and what it does look like once the page is reloaded:
Correct Layout
I'm hoping someone can help me figure out why this is happening. Happens in Safari, Chrome, and Edge and each time it is fixed when I reload.
Here is the code from the free template (modified by me to add descriptions and the correct images):
<!-- Projects Start -->
<div class="container-xxl py-5">
<div class="container">
<div class="section-title text-center">
<h1 class="display-5 mb-5">Portfolio Samples</h1>
</div>
<div class="row g-4 portfolio-container">
<div class="col-lg-4 col-md-6 portfolio-item first wow fadeInUp" data-wow-delay="0.1s">
<div class="rounded overflow-hidden">
<div class="position-relative overflow-hidden">
<img class="img-fluid w-100" src="img/ShojiLamp.jpg" alt="">
<div class="portfolio-overlay">
<a class="btn btn-square btn-outline-light mx-1" href="img/ShojiLamp.jpg" data-lightbox="portfolio"><i class="fa fa-eye"></i></a>
<a class="btn btn-square btn-outline-light mx-1" href=""><i class="fa fa-link"></i></a>
</div>
</div>
<div class="border border-5 border-light border-top-0 p-4">
<p class="text-primary fw-medium mb-2">For Sale</p>
<h4 class="mb3">Shoji Lamp</h4>
<p>Japanese inspired shoji lamp in walnut with maple panels. Castle joinery throughout.</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 portfolio-item second wow fadeInUp" data-wow-delay="0.3s">
<div class="rounded overflow-hidden">
<div class="position-relative overflow-hidden">
<img class="img-fluid w-100" src="img/ChessBoard.jpg" alt="">
<div class="portfolio-overlay">
<a class="btn btn-square btn-outline-light mx-1" href="img/ChessBoard.jpg" data-lightbox="portfolio"><i class="fa fa-eye"></i></a>
<a class="btn btn-square btn-outline-light mx-1" href=""><i class="fa fa-link"></i></a>
</div>
</div>
<div class="border border-5 border-light border-top-0 p-4">
<p class="text-primary fw-medium mb-2">Custom Woodworking</p>
<h4 class="mb3">Chess Board</h4>
<p>Simple chessboard made from 19mm thick walnut with 4mm thick curly maple inlays. </p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 portfolio-item first wow fadeInUp" data-wow-delay="0.5s">
<div class="rounded overflow-hidden">
<div class="position-relative overflow-hidden">
<img class="img-fluid w-100" src="img/3dCuttingBoard.jpeg" alt="">
<div class="portfolio-overlay">
<a class="btn btn-square btn-outline-light mx-1" href="img/3dCuttingBoard.jpeg" data-lightbox="portfolio"><i class="fa fa-eye"></i></a>
<a class="btn btn-square btn-outline-light mx-1" href=""><i class="fa fa-link"></i></a>
</div>
</div>
<div class="border border-5 border-light border-top-0 p-4">
<p class="text-primary fw-medium mb-2">For Sale</p>
<h4 class="mb3">Bella Cutting Board</h4>
<p>50mm thick end grain cutting board crafted in walnut and hard maple. Featuring a 3D effect.</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 portfolio-item second wow fadeInUp" data-wow-delay="0.1s">
<div class="rounded overflow-hidden">
<div class="position-relative overflow-hidden">
<img class="img-fluid w-100" src="img/TableLamp.jpg" alt="">
<div class="portfolio-overlay">
<a class="btn btn-square btn-outline-light mx-1" href="img/TableLamp.jpg" data-lightbox="portfolio"><i class="fa fa-eye"></i></a>
<a class="btn btn-square btn-outline-light mx-1" href=""><i class="fa fa-link"></i></a>
</div>
</div>
<div class="border border-5 border-light border-top-0 p-4">
<p class="text-primary fw-medium mb-2">For Sale - 2 available</p>
<h4 class="mb3">Riley Table Lamp</h4>
<p>A tilted shade and bent body offers a twist on a tradional table lamp with the cord threaded through the body. Crafted in walnut.</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 portfolio-item first wow fadeInUp" data-wow-delay="0.3s">
<div class="rounded overflow-hidden">
<div class="position-relative overflow-hidden">
<img class="img-fluid w-100" src="img/EntrywayTable.jpg" alt="">
<div class="portfolio-overlay">
<a class="btn btn-square btn-outline-light mx-1" href="img/EntrywayTable.jpg" data-lightbox="portfolio"><i class="fa fa-eye"></i></a>
<a class="btn btn-square btn-outline-light mx-1" href=""><i class="fa fa-link"></i></a>
</div>
</div>
<div class="border border-5 border-light border-top-0 p-4">
<p class="text-primary fw-medium mb-2">For Sale</p>
<h4 class="mb3">Entryway Table</h4>
<p>A delicate live edge entryway table in spalted ash with walnut bowtie inlays. Cracks filled with black epoxy. Box joinery on the apron. </p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 portfolio-item second wow fadeInUp" data-wow-delay="0.5s">
<div class="rounded overflow-hidden">
<div class="position-relative overflow-hidden">
<img class="img-fluid w-100" src="img/GearShiftKnob.png" alt="">
<div class="portfolio-overlay">
<a class="btn btn-square btn-outline-light mx-1" href="img/GearShiftKnob.png" data-lightbox="portfolio"><i class="fa fa-eye"></i></a>
<a class="btn btn-square btn-outline-light mx-1" href=""><i class="fa fa-link"></i></a>
</div>
</div>
<div class="border border-5 border-light border-top-0 p-4">
<p class="text-primary fw-medium mb-2">Custom Woodworking</p>
<h4 class="mb3">Gear Shift Knob </h4>
<p>A custom gear shift knob commisioned in support of a loved one's fight with stomach cancer. Crafted in walnut with epoxy inlay.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Projects End -->
Related
I am unable to figure out what classes should I add/remove to achieve the same image positioning as in the preview of the Bootstrap Border hero with cropped image and shadows.
My image doesn't sit on the edge of the hero and it looks even worst on mobile scale. Here is what my hero looks like now:
<div id="support" class="hero-donate container my-5">
<div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg">
<div class="col-lg-7 p-3 p-lg-5 pt-lg-3">
<h1 class="display-4 fw-bold lh-1">Find out more and support our work</h1>
<p class="lead">Text</p>
<div class="d-grid gap-2 d-md-flex justify-content-md-start mb-4 mb-lg-3">
<button type="button" class="btn btn-outline-danger btn-lg px-4 me-md-2 fw-bold">DONATE</button>
<button type="button" class="btn btn-secondary btn-lg px-4">Volunteer</button>
</div>
</div>
<div class="col-lg-4 offset-lg-1 p-0 overflow-hidden">
<img class="rounded-lg-3 shadow-lg" src="https://images.unsplash.com/photo-1608535002897-27b2aa592456?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80" alt="" width="75%">
</div>
</div>
</div>
Solutions for both
The image in example is an horizontal image hence it fits perfectly on the right end of div. Your image is vertical so apply this class : float-end on image tag.
For mobile view. Your code works fine only image alignment is distorted. for which apply w-100 and m-auto to image tag. your updated image tag will look like :
<img class="rounded-lg-3 shadow-lg float-end m-auto w-100" src="https://images.unsplash.com/photo-1608535002897-27b2aa592456?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80" alt="" width="75%">
here is the working snippet
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.3/css/bootstrap.min.css" rel="stylesheet"/>
<div id="support" class="hero-donate container my-5">
<div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg">
<div class="col-lg-7 p-3 p-lg-5 pt-lg-3">
<h1 class="display-4 fw-bold lh-1">Find out more and support our work</h1>
<p class="lead">Text</p>
<div class="d-grid gap-2 d-md-flex justify-content-md-start mb-4 mb-lg-3">
<button type="button" class="btn btn-outline-danger btn-lg px-4 me-md-2 fw-bold">DONATE</button>
<button type="button" class="btn btn-secondary btn-lg px-4">Volunteer</button>
</div>
</div>
<div class="col-lg-4 offset-lg-1 p-0 overflow-hidden">
<img class="rounded-lg-3 shadow-lg float-end m-auto w-100" src="https://images.unsplash.com/photo-1608535002897-27b2aa592456?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8" alt="" width="75%">
</div>
</div>
</div>
My site is responsive on all media by displaying it in a browser. When I load it in the android webview the display is distorted. I found that there are class bootstrap 5 which work badly. Its classes are position classes.
such as: .position-relative, .position-static and .position-absolute.
The css of its class does not work with the android webview.
Does anyone have an idea for the webview to take positional css into account.
Exemple css :
.position-static
position: static !important;
.position-relative
position: relative !important;
.position-absolute
position: absolute !important;
Example HTML:
<div class="row g-0 border rounded overflow-hidden flex-md-row mb-2 shadow-sm h-md-250 position-relative">
<div class="col-auto d-lg-block">
<a href="/ad-categories/21" hreflang="zxx"><img loading="lazy" src="/sites/default/files/styles/thumbnail/public/2022-10/sauce%20pistache.jpg ?itok=RcWqSOZN" width="100" height="100" alt="" typeof="foaf:Image" class="img-fluid image-style-thumbnail">
</a>
<div class="label-top shadow-sm">
<i class="fa fa-star" aria-hidden="true"></i>
</div>
</div>
<div class="col d-flex flex-column position-static small">
<div class="d-flex bd-highlight">
<div class="flex-fill bd-highlight">
<h5 class="card-title small "><span class="field field--name-title field--type-string field--label-hidden">MAÏTE DEHYDRATED SAUCES</span>
</h5>
</div>
</div>
<div class="d-flex bd-highlight departure-date">
<div class="flex-fill bd-highlight text-muted small">
<p class="card-text address"><i class="fa fa-map-o text-info"></i> Abidjan,CI</p>
</div>
<div class="flex-fill bd-highlight small">
<span class="badge rounded-pill bg-success border border-light text-light fw-bold">
Premium
<span class="visually-hidden">New alerts</span>
</span>
</div>
</div>
<div class="d-flex bd-highlight">
<div class="flex-fill bd-highlight text-muted small">
<div class="field field--name-field-categories field--type-entity-reference field--label-hidden field__item"><div class="contextual-region term-categories-icon d-flex justify-content -start" about="/taxonomy/term/4">
<div class="field field--name-field-icon field--type-fontawesome-icon field--label-hidden field__item"><div class="fontawesome-icons">
<div class="fontawesome-icon">
<i class="fas fa-beer food-drink" data-fa-transform="" data-fa-mask="" style="--fa-primary-color: #000000; --fa-secondary-color : #000000; food-drink"></i>
</div>
</div>
</div>
<a class="link" href="/ad-categories?categories_id=4">
<div class="field field--name-name field--type-string field--label-hidden field__item">Food & drink</div>
</a>
</div></div>
</div>
<div class="flex-fill bd-highlight text-muted small">
<span class="align-middle"><i class="fa fa-map-marker"></i> Abidjan</span>
</div>
</div>
</div>
</div>
I'm trying to generate a component aligned in the middle, as follows:
<app-card titulo="Painel ao Vivo" [zeroPadding]="false" icon="fa-heartbeat fas">
<div class="col-md-12 col-lg-12 col-sm-12">
<div class="justify-content-center">
<span class="text-sm text-black font-weight-bold mr-2">{{jogo.timeCasa.nome}}</span>
<app-avatar [titulo]="jogo.timeCasa.nome" [img]="jogo.timeCasa.logo"
class="avatar rounded-circle bg-primary mr-2"></app-avatar>
<button type="button" class="btn btn-primary btn-sm">0</button>
<button type="button" class="btn btn-primary btn-sm">0</button>
<app-avatar [titulo]="jogo.timeVisita.nome" [img]="jogo.timeVisita.logo"
class="avatar rounded-circle bg-primary mr-2"></app-avatar>
<span class="text-sm text-black font-weight-bold">{{jogo.timeVisita.nome}}</span>
</div>
</div>
</app-card>
app-card:
<div class="card">
<div class="card-header border-0" >
<h4 *ngIf="titulo" class="card-title"><i class="{{icon}}"></i> {{titulo}} </h4>
<ng-container *ngIf="header" [ngTemplateOutlet]="header"></ng-container>
</div>
<div class="card-body border-radius-bottom" [ngClass]="{'p-0': zeroPadding}">
<ng-content></ng-content>
</div>
</div>
How should it look: https://i.stack.imgur.com/NfuKw.png, how was it on the web: https://i.stack.imgur.com/cwKmq.png, how was it on the mobile: https://i.stack.imgur.com/RR6GP.png
I'm creating a menu component using angular material, some menu items have submenu and I'm using (mouseover)="menuTrigger.openMenu()" to open the drop down list.
<div class="row">
<div class="col-xl-12 widget-29">
<div class="widget no-bg ">
<div class="widget-body pt-0">
<div id="services" class="owl-carousel ">
<a [matMenuTriggerFor]="menu" #menuTrigger="matMenuTrigger" (mouseover)="menuTrigger.openMenu()" class="item has-shadow">
<div class="devices-item d-flex justify-content-center align-items-center">
<div class="room">{{'menu.reclamations' | translate}}</div>
</div>
<img id="rec" class="img-fluid" src="assets/img/smarthome/plaint.png" alt="...">
</a>
<a [matMenuTriggerFor]="menuu" #menuTriggerr="matMenuTrigger" (mouseover)="menuTriggerr.openMenu()" class="item has-shadow" [routerLink]="['/propositions/all']">
<div class="devices-item d-flex justify-content-center align-items-center">
<div class="room">{{'menu.propositions' | translate}}</div>
</div>
<img class="img-fluid" id="prop" src="assets/img/smarthome/feedback.png" alt="...">
</a>
<a [matMenuTriggerFor]="menuuu" #menuTriggerrr="matMenuTrigger" (mouseover)="menuTriggerrr.openMenu()" class="item has-shadow" [routerLink]="['/sondages/own']">
<div class="devices-item d-flex justify-content-center align-items-center">
<div class="room">{{'menu.participations' | translate}}</div>
</div>
<img class="img-fluid" id="review" src="assets/img/smarthome/review.png" alt="...">
</a>
<a class="item has-shadow" [routerLink]="['/documents']">
<div class="devices-item d-flex justify-content-center align-items-center">
<div class="room">{{'menu.documents' | translate}}</div>
</div>
<img class="img-fluid" src="assets/img/smarthome/file-search.png" alt="...">
</a>
<a class="item has-shadow" data-toggle="modal" data-target="#download">
<div class="devices-item d-flex justify-content-center align-items-center">
<div class="room">{{'menu.appmobiles' | translate}}</div>
</div>
<img class="img-fluid" id="mobile" src="assets/img/smarthome/smartphone.png" alt="...">
</a>
<a class="item has-shadow" [routerLink]="['/renseignement']">
<div class="devices-item d-flex justify-content-center align-items-center">
<div class="room">{{'menu.renseignements' | translate}}</div>
</div>
<img class="img-fluid" id="faq" src="assets/img/smarthome/faq.png" alt="...">
</a>
<a class="item has-shadow" [routerLink]="['/members']">
<div class="devices-item d-flex justify-content-center align-items-center">
<div class="room">{{'menu.lacommune' | translate}}</div>
</div>
<img class="img-fluid" src="assets/img/smarthome/building.png" alt="...">
</a>
</div>
</div>
</div>
</div>
<mat-menu #menu="matMenu" class="dropdown" id="down">
<button class="dropdown-item" [routerLink]="['/plaintes/new']">
<span><i class="la la-plus-circle la-2x"></i> Nouvelle réclamation</span>
</button>
<button class="dropdown-item" [routerLink]="['/plaintes/all']">
<span><i class="la la-eye la-2x"></i> Mes réclamations</span>
</button>
</mat-menu>
<mat-menu #menuu="matMenu" class="dropdown" id="down">
<button class="dropdown-item" [routerLink]="['/plaintes/new']">
<span><i class="la la-plus-circle la-2x"></i>Nouvelle proposition</span>
</button>
<button class="dropdown-item" [routerLink]="['/plaintes/all']">
<span><i class="la la-eye la-2x"></i> Mes propositions</span>
</button>
</mat-menu>
<mat-menu #menuuu="matMenu" [overlapTrigger]="false" class="dropdown" id="down">
<button class="dropdown-item" [routerLink]="['/plaintes/new']">
<span><i class="la la-plus-circle la-2x"></i> participation</span>
</button>
<button class="dropdown-item" [routerLink]="['/sondages/own']">
<span><i class="la la-eye la-2x"></i> mes participations</span>
</button>
</mat-menu>
</div>
when the mouse over a menu item the dropdown opened but won't be closed after that !! even I used (mouseleave)="menuTrigger.closeMenu()" the sub menu appear and disappear in the same time !!!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I have been working on this interface for few days using bootstrap4 and I cant get this one div to get a scrollbar without setting height in px's. Also a guide toward managing one page design?
Following is the link to the HTML code.
https://www.codeply.com/p/xm4bUOWFVh
To make an element within a flexbox state scrollable you can make a new container within the flexbox element and set to position: absolute;
Hopefully this helps. See my example below.
#chat-list {
position: relative;
overflow-y: scroll;
height: 100%;
}
.chat-scroll {
position: absolute;
top: 0;
left: 0;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<div class="container border bg-success w-100" style="height: 95vh;">
<div class="row h-100">
<div class="col-md-12">
<h3>My Whatsapp</h3>
</div>
<div class="col-12 col-sm-5 col-md-4 d-flex flex-column border " id="chat-list-area" style="position:relative; ">
<!-- Navbar -->
<div class="row d-flex flex-row align-items-center p-2 bg-warning " id="navbar">
<div class="text-white font-weight-bold">My Chats</div>
<div class="nav-item dropdown ml-auto">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"><i class="fas fa-ellipsis-v text-white"></i></a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="#">New Group</a>
<a class="dropdown-item" href="#">Archived</a>
<a class="dropdown-item" href="#">Starred</a>
<a class="dropdown-item" href="#">Settings</a>
<a class="dropdown-item" href="#">Log Out</a>
</div>
</div>
</div>
<!-- Chat List -->
<div class="row" id="chat-list">
<!-- new container -->
<div class="chat-scroll">
<!-- new container -->
<div class="col-xs-12 w-100 bg-light">
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom active" style="">
<div class="w-50">
<div class="name">Programmers</div>
<div class="small last-message">+91 98232 37261: yeah, i'm online</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">28/03/2018</div>
<div class="badge badge-success badge-pill small d-none" id="unread-count">2</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom">
<div class="w-50">
<div class="name">Dee</div>
<div class="small last-message"><i class="fas fa-check-circle mr-1"></i> if you go to the movie, then give me a call</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">27/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom unread" onclick="">
<div class="w-50">
<div class="name">Jimmy</div>
<div class="small last-message"> have you seen infinity war?</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">27/03/2018</div>
<div class="badge badge-success badge-pill small" id="unread-count">1</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick="">
<div class="w-50">
<div class="name">John</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> yup</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">27/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
<div class="chat-list-item d-flex flex-row w-100 p-2 border-bottom" onclick=" ">
<div class="w-50">
<div class="name">Rob Mobile</div>
<div class="small last-message"><i class="far fa-check-circle mr-1"></i> i'm good too</div>
</div>
<div class="flex-grow-1 text-right">
<div class="small time">26/03/2018</div>
</div>
</div>
</div>
</div>
</div>
<!-- Profile Settings -->
</div>
<!-- Message Area -->
<div class="d-none d-sm-flex flex-column col-12 col-sm-7 col-md-8 p-0 " style="height: 95%;" id="message-area">
<!-- Navbar -->
<div class="row d-flex flex-row align-items-center p-2 m-0 w-100 border bg-primary" id="navbar">
<div class="d-block d-sm-none">
<i class="fas fa-arrow-left p-2 mr-2 text-white" style="font-size: 1.5rem; cursor: pointer;"></i>
</div>
<div class="d-flex flex-column">
<div class="text-white font-weight-bold" id="name">Programmers</div>
<div class="text-white small" id="details">You, Jimmy, Rob Mobile</div>
</div>
<div class="d-flex flex-row align-items-center ml-auto">
<i class="fas fa-search mx-3 text-white d-none d-md-block"></i>
<i class="fas fa-paperclip mx-3 text-white d-none d-md-block"></i>
<i class="fas fa-ellipsis-v mr-2 mx-sm-3 text-white"></i>
</div>
</div>
<!-- Messages -->
<div class="d-flex flex-column" id="messages" style="flex: 1!important;background: hsl(0, 0%, 80%);overflow: auto;">
<div class="mx-auto my-2 bg-primary text-white small py-1 px-2 rounded">
27/03/2018
</div>
<div class="align-self-start p-1 my-1 mx-3 rounded bg-white shadow-sm message-item">
<div class="options">
<i class="fas fa-angle-down text-muted px-2"></i>
</div>
<div class="small font-weight-bold text-primary">
+91 98232 63547
</div>
<div class="d-flex flex-row">
<div class="body m-1 mr-2">anyone online?</div>
<div class="time ml-auto small text-right flex-shrink-0 align-self-end text-muted" style="width:75px;">
18:20
</div>
</div>
</div>
<div class="mx-auto my-2 bg-primary text-white small py-1 px-2 rounded">
28/03/2018
</div>
<div class="align-self-start p-1 my-1 mx-3 rounded bg-white shadow-sm message-item">
<div class="options">
<i class="fas fa-angle-down text-muted px-2"></i>
</div>
<div class="small font-weight-bold text-primary">
+91 98232 37261
</div>
<div class="d-flex flex-row">
<div class="body m-1 mr-2">yeah, i'm online</div>
<div class="time ml-auto small text-right flex-shrink-0 align-self-end text-muted" style="width:75px;">
17:10
</div>
</div>
</div>
</div>
<!-- Input -->
<div class="justify-self-end align-items-center flex-row d-flex" id="input-area">
<i class="far fa-smile text-muted px-3" style="font-size:1.5rem;"></i>
<input type="text" name="message" id="input" placeholder="Type a message" class="flex-grow-1 border-0 px-3 py-2 my-3 rounded shadow-sm">
<i class="fas fa-paper-plane text-muted px-3" style="cursor:pointer;" onclick="sendMessage()"></i>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>