|
|
|
Allot of times you need to have a 1x1 pixel line along the Height of your table. Since you can't set a dynamic height (100%) to a pixel and in any case it's best to use HTML than call an image from the server, you can simply use the background of the <TD>.
The problem is that you usually don't get a width of 1px to your <TD>. The trick here is to set your font size to 1px and make sure table padding is set to 0.
| <TABLE CELLPADDING="0">
<TR>
<TD STYLE="background-color:#000000;width:1px;font-size:1px;"></TD>
<TD>
This is a test<BR>
This is a test<BR>
This is a test<BR>
This is a test<BR>
This is a test<BR>
</TD>
<TD STYLE="background-color:#000000;width:1px;font-size:1px;"></TD></TR>
</TABLE> | | |
|
| How to keep your tables width stable even if you have long strings inside. Categories : CSS, Web Browsers, HTML, Beginner Guides | | | An example of how to place elements on the footer of a page with CSS/HTML so that the elements are always on the bottom, regardless of the client resolution. Categories : HTML, CSS, Interfaces | | | Javascript Background Scroller Categories : Java Script, CSS, HTML | | | Rollover Image link effect using only single image. Categories : Web Design, HTML, CSS, Beginner Guides | | | CSS Container BOX , with cool CSS Design Categories : CSS, HTML, Web Design | | | Javascript animated menu items Categories : DHTML, CSS, Java Script, HTML | | | Page Loading Message shown during the time your site's page is being loaded. Categories : HTML, CSS, Java Script | | | How to make a scrolling Div Categories : HTML, CSS | | | Higly Customizable Javascript Calendar Script Categories : Java Script, Calendar, Date Time, HTML, CSS | | | Show or Hide your Content using Javascript Categories : Java Script, HTML, CSS, Beginner Guides | | | CSS Buttons Styles Categories : CSS, HTML, Beginner Guides | | | <FORM> causing an extra line in HTML output on IE Categories : Beginner Guides, HTML, CSS | | | color codes for positive and negative numbers Categories : PHP, MySQL, Databases, HTML | | | Parses HTTP_USER_AGENT so that you can customize your site to different browsers Categories : HTML, PHP, Complete Programs | | | How to use META REFRESH to auto refresh an html page
after x seconds. Categories : HTML | |
|
|
|