WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : How to use background-color instead of pixel.gif
Categories : HTML, CSS
Boaz Yahav
Date : Dec 24th 2006
Grade : 3 of 5 (graded 8 times)
Viewed : 4452
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Boaz Yahav
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

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>



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
Page Loading Message shown during the time your site's page is being loaded.
Categories : HTML, CSS, Java Script
Javascript Background Scroller
Categories : Java Script, CSS, HTML
How to keep your tables width stable even if you have long strings inside.
Categories : CSS, Web Browsers, HTML, Beginner Guides
Table editable dynamic form with edit + selection (select / option) + checkbox.
Categories : Java Script, DHTML, User Interface, CSS, HTML
<FORM> causing an extra line in HTML output on IE
Categories : Beginner Guides, HTML, CSS
Show or Hide your Content using Javascript
Categories : Java Script, HTML, CSS, Beginner Guides
Higly Customizable Javascript Calendar Script
Categories : Java Script, Calendar, Date Time, HTML, CSS
Rollover Image link effect using only single image.
Categories : Web Design, HTML, CSS, Beginner Guides
How to make a scrolling Div
Categories : HTML, CSS
CSS Container BOX , with cool CSS Design
Categories : CSS, HTML, Web Design
CSS Buttons Styles
Categories : CSS, HTML, Beginner Guides
Javascript animated menu items
Categories : DHTML, CSS, Java Script, HTML
Bouncing Marquee at Status Bar
Categories : Java Script, HTML, Browsers
display a content in a webpage without page refresh
Categories : AJAX, HTML