Results 1 to 9 of 9

Thread: Need help to create a transparent table.

  1. #1
    Join Date
    May 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help to create a transparent table.

    Hi all, i wonder if there is a way to create a transparent (or semi transparent) table? I am trying to place a table on a graphic files, but the table will eventually block the image. How can i create a see through table? Thank you!
    Regards, Brian

    If you do not understand the question, please view my site at the following url:

    http://www.behappytogether.com/7.Gue...stbookform.php

    or the main page at:

    http://www.behappytogether.com

    then goto the guestbook to look at the table. Thank you.

  2. #2
    Join Date
    Apr 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You can either use an image as the background for the entire web page
    Code:
    <BODY BACKGROUND="image.jpg">
    and/or use an image as the background of a cell
    Code:
    <td background="image.jpg" colspan=4 height=60 align=center><font size=+4 face="MS Comic Sans">this text will display on top of the cell background</font></td>

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Or, you could not use all that deprecated markup to apply an ugly hack, and instead use background-color: transparent.
    Code:
    <style type="text/css">
    .transparentTable {
      background-color: transparent;
    }
    </style>
    
    <!-- ... -->
    
    <table class="transparentTable">
    <!-- ... -->
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    May 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thank you for your kind reply

    I am thinking to use the following method, something like nested table:

    <table width="600" height="185" border="1" align="center">
    <tr>
    <td background="your picture here"><table width="477" height="141" border="1" align="center">
    <tr>
    <td height="137"><p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p></td>
    </tr>
    </table>

    What do you think?

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Nested tables are a bad idea, generally speaking. They slow down page rendering time quite considerably.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    May 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi Briand,

    did you try using your image as a background as this:
    =========
    <td><form method="post" action="http://www.behappytogether.com/7.Guestbook/Guestbooksend.php">
    <table background="http://www.behappytogether.com/7.Guestbook/images/Guestbook_IR_01.gif" width="575" height="154" border="0" id="Brian and Eve Wedding Website">
    <tr>
    ============

    I did try and I could see the image under your form.

  7. #7
    Join Date
    May 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thank you

    Thank you! I will give it a try this coming weekend when i backed home. It is great to have your all kind reply here!

  8. #8
    Join Date
    Jun 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Or... in the <TABLE> tag add these two things.
    Border="0" BGCOLOR="transparent"
    And that will make it like the table isn't even there... Not sure about the tricky imagery...

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    ... which is deprecated markup for style="background-color:transparent;border:0 none;" which is more or less what I suggested in the first place, except for the removal of the border which was never asked for.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •