Question

Photo of Dan Abbuhl

0

How do I create a table without boarders

I'm adding a table to a page to make align some videos.  I have a table that is 3 x 5.  I have went into the HTML and used the following:

table class="table borderless" but I'm still getting the following boarder at the top of each column.  You can see it in the picture that there is a thin boarder above each section.  How do I remove all lines?


Screen Shot 2017-12-18 at 4.16.52 PM.png



  • Photo of Daniel Hazelbaker

    0

    Okay, you will need to edit each <td> element and add a style="border: 0px;" to each one to get rid of the border. However, the way you currently have it setup means that it will not display properly on windows that are not wide enough. For example, only about 2/3rd of the right-most video shows up in my browser window. I have to scroll the page to the right to see the rest. I would suggest the following to provide a much cleaner and mobile friendly result:

    <div class="row">
        <div class="col-md-6">
            <div class="embed-responsive embed-responsive-16by9">
                <iframe src="https://player.vimeo.com/video/30996872" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
            </div>
        </div>
        <div class="col-md-6">
            <div class="embed-responsive embed-responsive-16by9">
                <iframe src="https://player.vimeo.com/video/30997408" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
            </div>
        </div>
    </div>

    Repeat the entire thing for more than one row. This will create two columns on desktop browsers but collapse down to one column on small devices (phones, etc.). It will also resize them automatically to fit the size of the browser window so they do not go past the edge of the screen.

    • Dan Abbuhl

      I did what you said and was able to have all 4 videos without borders. I can't seam to add the words above properly. Can you give me some advice on adding titles above each video?

    • Daniel Hazelbaker

      Just add it in right before the embed div.. example: <div class="col-md-6"><h3>Video Title</h3><div class="embed-responsive embed-responsive-16by9">

    • Dan Abbuhl

      I'm sorry that I'm new at tables. I added this and it allows me to have 1 title in the middle but I need to put 1 title above each video. Please help.

    • Dan Abbuhl

      Take a look now. I think I got it down now and the videos change size based on the open browser space. I will be able to use this in many areas. Thanks for you help.

    • Daniel Hazelbaker

      You have a couple things out of whack in your HTML, but the main issue is that you are adding the title above the entire thing instead of inside the "col-md-6" div like I suggested.


      If you can post the Lava / HTML you are using I can take a look at it for you. Looking at your site I can only tell you the changes to make, but if you are not familiar with HTML and Bootstrap it's going to be very confusing.

    • Dan Abbuhl

      Quick question: In the example html above, if I want to make it 3 or 4 or 5 videos across, how would I change the code to allow more than 2 videos in the row?

    • Daniel Hazelbaker

      The bottom two videos look good. The top two need to be wrapped inside a <div class="row">...</div> like you have the bottom two.

    • Dan Abbuhl

      I have a good understanding of HTML, I've always had trouble with tables and I haven't used bootstrap. I was able to grasp what you said about adding the titles above, it took me a while but I did get it. Thanks for your help.

    • Dan Abbuhl

      here is the HTML :


      <div class="col-md-6">
      <h3 align="center"><font face="Arial Black"><span style="font-size: 36px;">Salvation</span></font></h3>
      <div class="embed-responsive embed-responsive-16by9">
      <iframe src="https://player.vimeo.com/video/30996872" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
      </div>
      </div>
      <div class="col-md-6">
      <h3 align="center"><span style="font-size: 36px;"><font face="Arial Black">Holly Spirit Baptism</font><br></span></h3>
      <div class="embed-responsive embed-responsive-16by9">
      <iframe src="https://player.vimeo.com/video/30997408" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
      </div>
      </div>


      <br>
      <div class="row">
      <div class="col-md-6">
      <h3 align="center"><span style="font-size: 36px;"><font face="Arial Black">Divine Healing</font><br></span></h3>
      <div class="embed-responsive embed-responsive-16by9">
      <iframe src="https://player.vimeo.com/video/30997153" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
      </div>
      </div>
      <div class="col-md-6">
      <h3 align="center"><span style="font-size: 36px;"><font face="Arial Black">Second Coming</font><br></span></h3>
      <div class="embed-responsive embed-responsive-16by9">
      <iframe src="https://player.vimeo.com/video/30997800" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
      </div>
      </div>
      </div><p></p>

    • Dan Abbuhl

      I just changed it as you said to this:
      <div class="row">
      <div class="col-md-6">
      <h3 align="center"><font face="Arial Black"><span style="font-size: 36px;">Salvation</span></font></h3>
      <div class="embed-responsive embed-responsive-16by9">
      <iframe src="https://player.vimeo.com/video/30996872" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
      </div>
      </div>
      <div class="col-md-6">
      <h3 align="center"><span style="font-size: 36px;"><font face="Arial Black">Holly Spirit Baptism</font><br></span></h3>
      <div class="embed-responsive embed-responsive-16by9">
      <iframe src="https://player.vimeo.com/video/30997408" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
      </div>
      </div>
      </div><p></p>
      <br>
      <div class="row">
      <div class="col-md-6">
      <h3 align="center"><span style="font-size: 36px;"><font face="Arial Black">Divine Healing</font><br></span></h3>
      <div class="embed-responsive embed-responsive-16by9">
      <iframe src="https://player.vimeo.com/video/30997153" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
      </div>
      </div>
      <div class="col-md-6">
      <h3 align="center"><span style="font-size: 36px;"><font face="Arial Black">Second Coming</font><br></span></h3>
      <div class="embed-responsive embed-responsive-16by9">
      <iframe src="https://player.vimeo.com/video/30997800" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
      </div>
      </div>
      </div><p></p>

    • Daniel Hazelbaker

      Take a look at the Bootstrap Grid System as documented here: http://getbootstrap.com/docs/3.3/css/#grid


      It explains in a bit more detail, but basically each "row" is divided into 12 columns. The "col-md-#" specifies how many columns to use. The "md" means you are specifying a size for "medium" devices (i.e. desktops). So when you use "col-md-6" you are using up 6 column spaces for your div, which means you can have 2 equal divs. If you wanted to do 3 sections across you would use "col-md-4" (4+4+4=12), 4 sections would be "col-md-3".


      Because the base divider is 12, you can't achieve 5 equal sized columns without custom CSS to set the width of the sections.

  • Photo of Daniel Hazelbaker

    0

    Hi Dan,

    Without a lot more information, or a sample URL to look at, it's hard to say.  But a better way to go about building this would be to use bootstrap styling.  e.g.

    <div class="row">
        <div class="col-md-4">Row1Col1</div>
        <div class="col-md-4">Row1Col2</div>
        <div class="col-md-4">Row1Col3</div>
    </div>
    <div class="row">
        <div class="col-md-4">Row2Col1</div>
    ...etc.