Question:

Is it possible to lock the width and height of a table ?

by Guest45128  |  earlier

0 LIKES UnLike

When i type text in, i dont want it to expand - is this possible??

 Tags:

   Report

2 ANSWERS


  1. Are you using an HTML editor? If you are, then when you type in it, it'll automatically adjust.  You can go into the HTML and add the tags: width="whatever" & height="whatever" in percentages (%) or pixels (px) in the cells.

    ex:

    <table>

    <tr>

    <td width="25%">

    <td width="75%">

    </tr>

    </table>


  2. Simple. You just define the width or the height of the table. You can do it in two ways.

    1. HTML style

    <table width="500" height="500">

    2. CSS style

    <table id="fixed">

    #fixed {

    width: 500px;

    height: 500px;

    }

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.