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

I'm stuck! My HTML Tables won't align right - HELP!

Code:

<!-- script src="/js/val_header.js"></script -->
<style>
<!--
BODY {
scrollbar-3d-light-color:#eeeedd;
scrollbar-arrow-color:#000000;
scrollbar-base-color:#000000;
scrollbar-dark-shadow-color:#eeeedd;
scrollbar-face-color:#eeeedd;
scrollbar-highlight-color:#eeeedd;
scrollbar-shadow-color:#eeeedd;
background: #eeeedd url(http://valsignalandet.com/images/bg.jpg);
}
-->
</style>
<div align=right>

<table border=0 cellspacing=0 width=644>

<tr>
<td bgcolor=000000 width=46><font face="Georgia, Verdana, Arial,
Helvetica, sans-serif" size=3 color=ffffff>
<b>V</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>Ä</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>L</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>S</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>I</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>G</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>N</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>A</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>L</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>A</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>N</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>D</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>E</b></font>
</td>
<td bgcolor=000000 width=46><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 color=ffffff>
<b>T</b></font>
</td>

</tr>
</table>

<table border=0 align=right width=560>
<tr>
<td align=center width=35><font face="Georgia, Verdana, Arial,
Helvetica, sans-serif" size=3 >
<b>(</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>B</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>L</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>E</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>S</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>S</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>E</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>D</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>&nbsp;</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>&nbsp;</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>L</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>A</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>N</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>D</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>S</b></font>
</td>
<td align=center width=35><font face="Georgia,
Verdana, Arial, Helvetica, sans-serif" size=3 >
<b>)</b></font>
</td>

</tr>
</table>
<table border=0 align=right>
<tr>
<td><font face="Arial Narrow, Arial" size=1>A Christian community
for the "rest of us"</font></td>
</tr>
</table></div><p>
<div align=right><a href=/index.shtml>
<font face="Georgia, Verdana, Arial, Helvetica, sans-serif"
size=2>Home - Hemmet</a>
<br><a href=/my/layout.php>I want Väl my way!</a>
</font>
</div><p>

Everything I have done has caused this to fail; the tables are all
over the place. I want all of the tables to align to the right;
someone please help me, this is a simple problem and I can't believe I
can't do it!

Phil
Jul 20 '05 #1
7 6785

this would be easyer
<span style="color:#ffffff; font-family:Georgia, Verdana, Arial,
Helvetica, sans-serif; font-size:large; font-weight:bold;
letter-spacing:20px; text-align:right">VÄLSIGNALANDET</span>

Jul 20 '05 #2
wasntme wrote:

this would be easyer
<span
text-align:right


The text-align property applies to block-level elements, it shouldn't hold
any influence over a span.

--
David Dorward http://david.us-lot.org/
Jul 20 '05 #3
so*****@erols.com (Phil Powell) wrote in
news:1c**************************@posting.google.c om:


Everything I have done has caused this to fail; the tables are all
over the place. I want all of the tables to align to the right;
someone please help me, this is a simple problem and I can't believe I
can't do it!

Phil


Phil, why do you use a stylesheet, then use excessively repeated deprecated
tags such as <font>?

Why repeat the line <font face="Georgia,Verdana, Arial, Helvetica, sans-
serif" size=3 > more than THIRTY times when it can be a single stylesheet
command, or even just a single div command. Not only are filesizes smaller,
but editing and trouble-shooting is much easier.

In answer to your question, try this -

<style type="text/css">
<!--
..smallish {
font-family: Arial, Helvetica, sans-serif;
font-size: xx-small;}
div.bw {background : black; color : white}
div.wb {
color: #000000;
background : #FFFFFF;}
body {
font-family: Georgia, Verdana, Arial, sans-serif;

scrollbar-3d-light-color:#eeeedd;
scrollbar-arrow-color:#000000;
scrollbar-base-color:#000000;
scrollbar-dark-shadow-color:#eeeedd;
scrollbar-face-color:#eeeedd;
scrollbar-highlight-color:#eeeedd;
scrollbar-shadow-color:#eeeedd;
url(http://valsignalandet.com/images/bg.jpg);
}
td {
font-weight: bold;

width: 46px;
text-align: center;
}
table {
}
-->
</style>

</head>

<body>
<div align="right" class="bw">

<table border=0 cellspacing=0 width=644>
<tr>
<td> V </td>
<td> Ä </td>
<td> L </td>
<td> S </td>
<td> I </td>
<td> G </td>
<td> N </td>
<td> A </td>
<td> L </td>
<td> A </td>
<td> N </td>
<td> D </td>
<td> E </td>
<td> T </td>
</tr>
</table>
</div>

<div class="wb" align="right">

<table border=0 align=right width=560>
<tr><td>( B</td>
<td> L </td>
<td> E </td>
<td> S </td>
<td> S </td>
<td> E </td>
<td> D </td>
<td>&nbsp; </td>
<td>&nbsp; </td>
<td> L </td>
<td> A </td>
<td> N </td>
<td> D </td>
<td> S ) </td>

</tr>
</table></div>

<p>
<table border=0 align=right>
<tr>
<td><div class="smallish">A Christian community for the "rest of
us"</div></td>
</tr>
</table></p>
<p><a href=/index.shtml></a></p>
<p><a href=/index.shtml>Home - Hemmet</a> <br>
<a href=/my/layout.php>I want Väl my way!</a>

Adam

Jul 20 '05 #4
On Mon, Jul 28, Adam inscribed on the eternal scroll:
[...] try this - .smallish {
font-family: Arial, Helvetica, sans-serif;
font-size: xx-small;}

^^^^^^^^

You'd better not "try" that anywhere near me!!
Jul 20 '05 #5
"Alan J. Flavell" <fl*****@mail.cern.ch> wrote in
news:Pi*******************************@lxplus086.c ern.ch:
On Mon, Jul 28, Adam inscribed on the eternal scroll:
[...] try this -

.smallish {
font-family: Arial, Helvetica, sans-serif;
font-size: xx-small;}

^^^^^^^^

You'd better not "try" that anywhere near me!!


Why not?
Jul 20 '05 #6
brucie <br******@loser.brucies.com> wrote in news:1ludx87mkkwbb.dlg@alt-
html.org:
In post <Xn**********************************@195.92.193.1 57>
Adam said...
font-size: xx-small;}
^^^^^^^^
You'd better not "try" that anywhere near me!!

Why not?


you do want people to be able to read the text don't you?

font-size:100%;

beautiful.


I'm no fan of small fonts, the original poster had it set as <font size=1>
so I was just putting it as close as possible in CSS terms. Having a mix of
CSS and deprecated html formatting makes trouble-shooting problems such as
the alignment problem harder. Not wishing to get too embroiled in the
accessibility issue, current thinking seems to be that separating style
from data and data structures is better for accessibility as the user can
use their own style sheeets, or disable them, or ignore them in the case of
speech readers etc.

Maybe {font-size : 50%} for small text would be better.
Jul 20 '05 #7
On 27 Jul 2003 16:55:45 -0700, so*****@erols.com (Phil Powell) wrote:

Everything I have done has caused this to fail; the tables are all
over the place. I want all of the tables to align to the right;
someone please help me, this is a simple problem and I can't believe I
can't do it!


Try a <BR> or <P> between the tables.
What you have is just putting them next to each other. I think :)
Jul 20 '05 #8

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

Similar topics

3
by: Yeren | last post by:
We run a website with pages that are created using ASP. The website is used by different people from different networks. For some people, the pages are stuck. It looks like the were able to open...
1
by: Samuel Hon | last post by:
Hi I'm a bit stuck with a SELECT query. This is a simplified version of what I need. I've had a look in a few books and online but I'm definitely missing something. I'm trying to avoid looping...
12
by: reynoldscraigr | last post by:
Hi All, hope someone can see what wrong here I have the following function function RemoveMenuFromHoldArray(menuName) { var i = 0; for (i=0;i<=MenusToHoldOpen.length-1;i++) { if...
1
by: tony_jeffs | last post by:
I understand the sections of code in the latter part Ch 4, and am close to understanding the whole thing, but I'm stuck with an aspect of having all these files and functions work together. ...
1
by: Aaron B | last post by:
Hello, I have ACT!2005. I was playing with the settings and now I am completely locked out of all of the features. I am such a moron. I can log in, but all of the tabs, "Add contacts, Delete...
2
by: Ed | last post by:
Hi, I'm stuck at the moment trying to work out how to access the value of a textfield which gets added in a DIV element. I have functions to add and remove the textfields from the elements as...
2
by: Bryan Field-Elliot | last post by:
We have a running server (v7.3) which, over time, seems to accumulate a bunch of "stuck" PostgreSQL instances which appear to be dead inside of a transaction. For example, "ps" reveals many of...
0
by: Mark Phillips | last post by:
Hello, I am having a problem in which a file can get stuck open when a thread that is attempting to write to it gets aborted (ThreadAbortedException occurs). The log file gets stuck open until...
1
by: =?Utf-8?B?QWR2YWl0?= | last post by:
I have a VB.Net windows application. It uses the tree view control. When I click on a treenode the form gets stuck. But if we run the form by putting break points there is no issues. Then the form...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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
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
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.