You are here: Re: Make Cell Not Resizable « HTML « IT news, forums, messages
Re: Make Cell Not Resizable

Posted by BootNic on 02/09/07 00:34

> vunet.us@gmail.com <vunet.us@gmail.com> wrote:
> news: 1170969404.450879.138590@v33g2000cwv.googlegroups.com
> Hello,
> My table's cell has a 100px width. But when I shrink window, the cell
> size gets smaller and smaller. How can I avoid this? The code is
> below. Thanks you all.
>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
> <meta http-equiv="content-type" content="text/html;
> charset=iso-8859-1">
> <meta http-equiv="content-language" content="en-us">
> <title>Simple example</title>
>
> <style type="text/css">
> table.sample {
> border-width: 0px;
> border-spacing: 0px;
> border-collapse: collapse;
table-layout:fixed;
> }
> table.sample td {
> width:100px;
> border-width: 1px;
> padding: 1px;
> border-style: inset;
> border-color: gray;
> background-color: white;
> }
table.sample td:before {
content: '';
display: block;
height: 0;
margin: 0;
padding: 0;
width: 100px;
}
> </style>
>
> </head>
> <body>
> <table class="sample">
<tbody>
> <tr>
> <td>Content</td><td>Content</td><td>Content</td>
> <td>Content</td><td>Content</td><td>Content</td>
> <td>Content</td>
> </tr>
</tbody>
> </table>
> </body>
> </html>

--
BootNic Thursday, February 08, 2007 7:33 PM

"I fought the Dharma, and the Dharma won."
*Allen Ginsberg*

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация