-
Prospect
How to keep a table in center?
Hello everyone,
I am trying to creat a simple site. When you change the size of your webpage, the table always keeps centered. I would like to use html with css. How Would I control the table in the center. Can some give me some helps to complete the task thanks in advance.
-
Prospect
Chances are, you have something like
Code: Select all
<table style="width: 100%; text-align:left">
<tr>
<td style="width: 25%"> </td>
<td style="width: 50%"> </td>
<td style="width: 25%"> </td>
</tr>
</table>
and you could use an "old" way
Code: Select all
<div align="center">
and this would easily align it in some browsers. Don't forget to close the tag as well so you would have something like:
Code: Select all
<div align="center">
<table style="width: 100%; text-align:left">
<tr>
<td style="width: 25%"> </td>
<td style="width: 50%"> </td>
<td style="width: 25%"> </td>
</tr>
</table>
</div>
-
Prospect
A friend of mine describes HTML tags as "on/off switches." An easy example which you may be well-familiar with, is the Bold command. To "turn on" Bold, type (but with no spaces).
Christmas Cracker Online Shop | Internal Doors & Front doors
Web Design India
trucks sale & purchase
Call boy in Chandigarh
Branded Clothes
Tours Phuket
Last edited by santoshuddleston; 04-05-2012 at 08:11 AM.
-
Sapphire Star member
good to know that i must say it is nice informative share
-
Prospect
* Tone. Any introduction should be told in a tone that reflects the piece. Thus, a Humorous Interpretation introduction should have a lighthearted air (unless your HI is dark comedy of course!). Tell a joke. The comedy does not stop and turn into a serious, History Channel-esque 45 second preview of what is on next. Does that give you permission to be a goof? No. Just do not turn the Humorous Interpretation mood you have established into Dramatic Interpretation.
Printed Clothing, Sports & Lesurewear
Indian Stone and Paving Slabs
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules