473,396 Members | 1,766 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,396 software developers and data experts.

Table alignment question

Hello,

I'm sure your all tired of these "alignment" question, but please
endure mine.

Question. Simple put: What makes a table sit beside another table, as
oppose to going down below it.

Here's my example ...
<html>
<head>
</head>
<body>
<table><tr><td>Table 1, Row 1, Cell 1</td></tr></table>
<table><tr><td>Table 2, Row 1, Cell 1</td></tr></table>
</body>
</html>

This simple two table page displays the tables "stacked". However, if
I add an alignment (align="left") to table 1, then table two comes up
beside table one, as in...

<table align="left"><tr><td>Table 1, Row 1, Cell 1</td></tr></table>
<table><tr><td>Table 2, Row 1, Cell 1</td></tr></table>

Why does this happen, and what is the general rule? Would appreciate
comments, and any links to trainers/tutorials which might have good
explaination of layout issues (this is a layout issue?).

Cheers and thanks,
Eric
Jul 20 '05 #1
1 2074
Eric <news:fd**************************@posting.google. com>:
Question. Simple put: What makes a table sit beside another
table, as oppose to going down below it.
Different things, including putting two tables within the same
row of a parent table;-)
Here's my example ...
<table><tr><td>Table 1, Row 1, Cell 1</td></tr></table>
<table><tr><td>Table 2, Row 1, Cell 1</td></tr></table>

This simple two table page displays the tables "stacked".
This is normal as tables are block level elements and blocks are
generally given a break before and after them.
However, if I add an alignment (align="left") to table 1, then
table two comes up beside table one, as in...

<table align="left"><tr><td>Table 1, Row 1, Cell
1</td></tr></table> <table><tr><td>Table 2, Row 1, Cell
1</td></tr></table>

Why does this happen, and what is the general rule?


http://htmlhelp.com/reference/html40/tables/table.html

Read about the align attribute near the bottom of the page. If
the table is treated as a floating element then the following
content gets wrapped around it.

--
Rob - http://rock13.com/
Web Stuff: http://rock13.com/webhelp/
Jul 20 '05 #2

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

Similar topics

6
by: BT | last post by:
I'm trying to format a three column table and I can't get things to line up the way I need to. The first column is text of variable length that might wrap onto multiple lines. It is within...
5
by: Clint Olsen | last post by:
I did a Google about this, and I've seen this covered quite a few times - some leading to useful tricks with offsetof() to discern alignment and others using a big-union of intrinsic types to...
67
by: S.Tobias | last post by:
I would like to check if I understand the following excerpt correctly: 6.2.5#26 (Types): All pointers to structure types shall have the same representation and alignment requirements as each...
7
by: Jef Driesen | last post by:
How can I replace/override the table attributes align, border, cellpadding and cellspacing with css?
3
by: Bill Pursell | last post by:
I have a program that does most of its work traversing a bunch of lists. The lists contain a void *, and I spent some time today replacing the void *'s with a copy of the data at the end of the...
11
by: Brian Gladman | last post by:
A lot of low level cryptographic code and some hardware cryptographic accelerators either fail completely or perform very poorly if their input, output and/or key storage areas in memory are not...
2
by: somenath | last post by:
Hi All, I have one question regarding the alignment of pointer returned by malloc. In K&R2 page number 186 one union is used to enforce the alignment as mentioned bellow. typedef long...
8
by: Bob Altman | last post by:
Hi all, This has got to be a dumb question, but... What is the CSS property that I would use to center a table on the web page? If I set the table's Align property in the VS 2008 property...
3
dmjpro
by: dmjpro | last post by:
I think iText commonly used to create or manipulate PDF document in Java. So finally i decided to throw a question over here. For two days i am struggling. I encountered two types of table .....
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.