Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw lines in ionic

I am trying to design something like

enter image description here

This is what I have so far:

enter image description here

How do I add those lines in ionic?

How do I add CSS to get the desired design in here?

This code is what I have so far:

<ion-slide>

  <div class="row">
    <div class="col text-center">
      <img src="img/icon1.png"></img>
      <br>
      Live Outlets </div>
    <div class="col text-center">
      <img src="img/icon2.png"></img>
      <br>
      Bills</div>
  </div>

  <div class="row">
    <div class="col text-center">
      <img src="img/icon3.png"></img>
      <br>
      Items Sold </div>
    <div class="col text-center">
      <img src="img/icon4.png"></img>
      <br>
      Discount</div>
  </div>


  <div class="row">
    <div class="col text-center">
      <img src="img/icon5.png"></img>
      <br>
      Customer </div>
    <div class="col text-center">
      <img src="img/icon6.png"></img>
      <br>
      Sale</div>
  </div>

</ion-slide>
like image 869
Simran Kaur Avatar asked Aug 27 '15 07:08

Simran Kaur


People also ask

What are ionic components?

Components in Ionic are reusable UI elements that serve as the building blocks for your mobile app. Components are made up of HTML, CSS, and sometimes JavaScript. Every Ionic component adapts to the platform on which your app is running.


1 Answers

Hi this code is worked for me, check this:

<ion-slide>
  <div class="row">
    <div class="col col-50">
      <img src="img/icon1.png"></img><br>
      Live Outlets
    </div>
    <div class="col col-50">
      <img src="img/icon2.png"></img>
      <br>
      Bills
    </div>
  </div>
  <div class="row">
    <div class="col col-50">
      <img src="img/icon3.png"></img>
      <br>
      Items Sold </div>
    <div class="col col-50">
      <img src="img/icon4.png"></img>
      <br>
      Discount</div>
  </div>
  <div class="row">
    <div class="col  col-50">
      <img src="img/icon5.png"></img>
      <br>
      Customer </div>
    <div class="col  col-50">
      <img src="img/icon6.png"></img>
      <br>
      Sale</div>
  </div>
</ion-slide>

and in your style.css file add an extra css property as:

.col{
   border: 1px solid black;
}

having any queries, please reply

like image 91
Anil kumar Avatar answered Oct 08 '22 07:10

Anil kumar