Computer problems,Computer help
*AX SOFT>>>Programming & Design

Table formatting?


i have a bunch of tables on over 100 pages that are aligned with each other through percentages for the width and pixels for the height. the only problem i have is that some tables have more content than what the pixels determine, which expands the table, messing up the others. or it might have little content and have tons of white space.

i use css to format, so how can i fix this? should i just go into each page and set a certain height for each table or is there a way to change something in the css that will make everything pretty

Use <PRE> with tables initially aligned in Courier New font.

<PRE>
Table
</PRE>

You set the width of each element in CSS but it will effect EVERY element that is the same if you don't have classes assigned. For the <td> element, all of your cells will be the same width unless you assign a class to them and specify it in the class. This is just an example:

table { width: 500px;}
td { width: 30px;}

These settings would set every table to 500px wide and every field to 30px wide. You will need to make sure your cell widths add up to your table width so you don't run into problems You don't need to set the width for the <tr> tag because the total width of the table would be the same.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • Which programming software is the best?

    If you're using Matlab, you might want to try the Python programming language with the NumPy/SciPy extensions - I'm told they're quite similar. Have a look at this: ...

  • Write a Java program that calculates the value of PI and then computes and displays the area of a circle with?

    If you're stuck, then paste the code that you've written so far, so that we can look at it and make suggestions.

    ...
  • Does anyone know what font they are using in this logo?

    It's ITC Studio Script, see ...

  • How do you post links on here?

    If you just type the URL, the website will create the hyperlink for you (a link that can be clicked to go to the website). So for instance, just type "http://www.yahoo.com" and you will g...

  • Does anyone know where I can make my own CSS codes online for free?

    If you are going to do CSS (plain text file with a css extension), then you should go ahead an d get an HTML Editor that will do CSS, HTML, PHP, etc. Matrix Y2K: ...

  • I am creating a menu using <ul> in php?

    you started with LI not UL

    ...
  • How can i know that if i got a good technical service on my web page???

    NEVER get your web hosting from the same people that you paid to build your website. This is putting all your eggs in one basket, and gives you no leverage should you ever have a problem. Ideally, ...

  • What is Monty Burns proxy for today?

    parkingprince.com

    ...
  •  

    Categories--Copyright/IP Policy--Contact Webmaster