Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    1
    Member #
    32498
    I have a table with three images, its codes are:
    <tr>
    <td><a href="/"><IMG SRC="images/bannerlogo.jpg" alt="logo" width="250" height="57" border="0"></a></td>
    <td rowspan="2"><IMG SRC="images/bannermid.jpg" alt="Header" width="249" height="113"></td>
    <td rowspan="2"><img src="images/bannerright.jpg" alt="Header" width="250" height="113">
    </td>
    </tr>
    Now I want to put four social buttons over the third image, that is images/bannerright.jpg, so I try to rewrite by using div tag to add a small table(one row and four columns, each columns for a social button):
    <tr>
    <td><a href="/"><IMG SRC="images/bannerlogo.jpg" alt="logo" width="250" height="57" border="0"></a></td>
    <td rowspan="2"><IMG SRC="images/bannermid.jpg" alt="Header" width="249" height="113"></td>
    <td rowspan="2">
    <div style="position:relative;">
    <img src="images/bannerright.jpg" alt="Header" width="250" height="113">
    <div style="width:200px; height:200px; position:absolute; top:10px; left:10px;">
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    </div>
    </div>
    </td>
    </tr>
    but this totally distort the layout at all. What is the problem with my codes?
    Attached screenshot is what I want to do.


  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    The easiest answer is to drop the tables. Use one large background image inside a div, then position the other elements within it.
    AlphaMare likes this.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:02 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com