473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Help: need CSS instead of nested html tables

Ok. I give up. I appeal to the css gurus out there for their
benevolence.

I'm trying to center some text on an arbitrary vertical on a page
using CSS instead of nested tables. It seems so easy but I can't
figure it out. If you cut and paste the following html code you will
see that the 'Centered Text' is center by using a nested table and
setting some widths. How can I accomplish the same thing without the
inner-most table?

Thanks in advance.
Dave

Here is the code...
<HTML>
<BODY>

<table border="1" width="500">
<tr>
<td width="25%" align="right">
Some Text A
</td>
<td>
Some Text B
</td>
</tr>
<tr>
<td colspan="2">
<table width="50%" border="1">
<tr>
<td align="center">
Centered Text
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="25%" align="right">
Some Text C
</td>
<td>
Some Text D
</td>
</tr>
<tr>
<td colspan="2">
<table width="50%" border="1">
<tr>
<td align="center">
More Centered Text
</td>
</tr>
</table>
</td>
</tr>
</table>

</html>
Jul 21 '05 #1
1 1779
da_fox wrote:
|| Ok. I give up. I appeal to the css gurus out there for their
|| benevolence.
||
|| I'm trying to center some text on an arbitrary vertical on a
|| page using CSS instead of nested tables. It seems so easy but
|| I can't figure it out. If you cut and paste the following
|| html code you will see that the 'Centered Text' is center by
|| using a nested table and setting some widths. How can I
|| accomplish the same thing without the inner-most table?
||

Dave,

You are more likely to get help if you put the html up to a page
and post an URL.

BJ
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gurpreet Sachdeva | last post by:
Hi guys, Can anyone suggest some good tool for handling nested tables in a HTML page... BeautifulSoup is somehow not working with Nested Tables. Thanks and Regards, Garry
21
by: BT | last post by:
I inherited a simple page that needs to be Strict HTML and I'm not very familiar with this standard. What I'm trying to do _should be_ pretty simple so I hope someone can point me in the right...
0
by: Ed Allan | last post by:
http://ejaconsulting.com/nestedrepeater/NestedRepeater.txt >-----Original Message----- >Doh! The HTML has all been rendered . . . > >Right click on this link and select 'Save target as ..' >to...
4
by: Steve Klett | last post by:
(I posted this in ADO group, but I think this group will be better) Hi- I need to develop an FAQ section for our website. We would like to break up the FAQ by products, then categories with...
2
by: Roy | last post by:
Hey all, Here's a small VB codeblock that connects to a database and uses 2 SQL queries then forms a relation for a master/detail view on the aspx side: Private Sub Binddata(ByVal name As...
7
by: Gonzillaaa | last post by:
I'm trying to get the data on the "Central London Property Price Guide" box at the left hand side of this page http://www.findaproperty.com/regi0018.html I have managed to get the data :) but...
2
by: rudicheow | last post by:
SHORT VERSION ============= I have a bunch of identical fixed-size single-celled tables that rest against each other horizontally thanks to "float:left". These tables are dynamically generated...
12
by: sheldonlg | last post by:
Here is my situation. I am coding in an AJAX framework for an intranet application behind a vpn. Therefore, I can't give you a URL for the actual app. I made a sample app for viewing and am...
24
by: Joe, G.I. | last post by:
Can anyone help me w/ a priority_queue. I'm generating MyEvent classes and I put them on a priority_queue, but I don't know how to get them in priority. The priority is the event w/ the smallest...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.