473,789 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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"><t r><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 2096
Eric <news:fd******* *************** ****@posting.go ogle.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"><t r><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
1827
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 <p></p> tags to right/left justify it. The second column is a column of ditto marks, centered left/right in the cell and aligned with the bottom line of text of column 1. The third column is a column of numbers also aligned with the bottom line of...
5
1694
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 discern what the compiler would do with this kind of data and act accordingly. Others claimed it couldn't be done or it wasn't worth it. Rather than dive into the how, I wanted to discuss more of the _why_ since that was asked a few times and...
67
10759
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 other. All pointers to union types shall have the same representation and alignment requirements as each other. Does it mean that *all* structure (or union) types have the same alignment? Eg. type
7
1948
by: Jef Driesen | last post by:
How can I replace/override the table attributes align, border, cellpadding and cellspacing with css?
3
2504
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 structure as a zero length array. The performance improvement that resulted by avoiding the need to dereference the ptr was substantial, but it has left me with an uncertain feeling. In particular, changing an assignment caused the output to...
11
2306
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 aligned on specific memory boundaries. Moreover, in many situations the cryptographic code does not itself have control over the memory alignment of its parameters so the best it can do is to detect if these aligmments are correct and act...
2
3800
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 Align; union header { struct {
8
7883
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 window it inserts align="center" into the <tabletag, and I get a validation warning that attribute 'align' is considered outdated. Ok, so I probably need to use a CSS style to do the same thing. But I've dug through all of the categories in the...
3
6691
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 .. 1>Table: table can be easily created with row span or col span but still has a problem with vertical alignment of cell content. 2>PdfPTable: table can be easily created by col span but having a bit complex with row span. But it offers well vertical...
0
9656
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10177
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10121
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8995
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5404
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5539
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4076
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.