Learn HTML step-by-step from A to Z or improve your professional skills.  Home HTML and CSS Tutorials Tricks using Tables

Tricks using Tables

Browse Pages: << < 3  4  5  6  7  > >>

Example

Okay, so you just spent $12 million on Van Gogh's Starry Night and can't afford a frame. Here is one we can build very quickly using economical recycled electrons.

The idea is to nest one table inside another. The outer table forms the frame and maroon matting, while the inner table is the black matte.

Note: although the effect will be similar in Netscape and MSIE, they will be different. If you have both browswers, be sure to take a peek!

Sample Picture

source code

<TABLE BGCOLOR="#990B00" BORDER="5" CELLPADDING="5" 
    CELLSPACING="5">
  <TR ALIGN="CENTER">

   <TD>
    <TABLE BGCOLOR="#000000" BORDER="0" CELLPADDING="10" 
         CELLSPACING="10">
     <TR ALIGN="CENTER">
      <TD>
       <IMG SRC="/dimages/starry.jpg" WIDTH="127" 
            HEIGHT="105" BORDER="0">
      </TD>

     </TR>
    </TABLE>
   </TD>
  </TR>
</TABLE>
</CENTER>

See Also:



Author's URL: Jeff Singer
Browse Pages: << < 3  4  5  6  7  > >>
Learn HTML step-by-step from A to Z or improve your professional skills. More Tutorials: Featured Materials | Fresh Materials | More HTML Tutorials at Markuptutorials.com

No comments yet...
Add comments to "Tricks using Tables"

Captcha