Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 21st, 2006, 09:09 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default right align one part of cell and center the rest

Code:
<table width="750px"  border="0" cellpadding="0" cellspacing="2" >
  <tr>
    <td height="18" colspan="8" bgcolor="<%=headerCol%>">
        <table width="100%" border="0" bordercolor="<%=headerBrd%>" cellpadding="0" cellspacing="0">
            <tr>
                <td align="center" bordercolor="<%=headerCol%>" width="100%" valign="top"><img border="0" src="/v2/asp/images/picco.gif"></td>
                <td align="right" bordercolor="<%=headerCol%>" valign="bottom">
                    <table align="right">
                        <tr><td>TEST</td></tr>
                    </table>
                </td>
            </tr>
        </table>
    </td>
  </tr>
</table>
I have this table setup as a 'header' for my pages. Is there any way to have the image completely centered and the text 'TEST' right aligned without knocking out the image alignment?

THanks.
Picco

www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
EASY Q: Left-Align and Right-Align DIV? panuvin ASP.NET 1.0 and 1.1 Basics 0 December 16th, 2006 02:02 AM
align="center" in CSS crmpicco CSS Cascading Style Sheets 5 February 21st, 2006 09:31 AM
if the cell content is a part of another cell cont sriramus Excel VBA 1 November 15th, 2005 10:20 AM
TextBox (Align Center) Problem on Printing mrhyman VB How-To 9 February 19th, 2004 12:14 PM
align Center melvik C# 1 September 7th, 2003 04:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.