Solved

HTML table not aligning

Posted on 2011-02-24
4
317 Views
Last Modified: 2012-05-11
Hello,

Please see the two files below, my issue is that the text Oobie should be aligned to the right hand side of the cell but this is failing to happen.

Thanks.
Uni
<html>

	<head>
		<title>My Title</title>
		<link rel="stylesheet" type="text/css" href="styles.css" />
	</head>

	<body>
	
		<table class="FullWidth FullHeight BigPadding">
			<tr>
				<td class="FullWidth StandardBlackBorder SmallPadding" align="right">Oobie</td>
			</tr>
		</table>
		
	</body>
	
</html>

Open in new window

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}:focus{outline:0;}body{line-height:1;color:black;background:white;}ol,ul{list-style:none;}table{border-collapse:separate;border-spacing:0;}caption,th,td{text-align:left;font-weight:normal;}blockquote:before,blockquote:after,q:before,q:after{content:"";}blockquote,q{quotes:"""";}


body{
	background-image:url('verticalgradient.jpg');
	background-repeat:repeat-x;
	background-color:white;
}


.FullWidth{ width:100%; }
.FullHeight{ height:100%; }
.BigPadding{ padding:20px; }
.SmallPadding{ padding:5px; }
.StandardBlackBorder{ border-style:solid; border-color:black; border-spacing:0px; border-width:1px; }

Open in new window

0
Comment
Question by:Unimatrix_001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
Ultra_Master earned 250 total points
ID: 34972676
Use the following code instead:
<html>

	<head>
		<title>My Title</title>
		<link rel="stylesheet" type="text/css" href="styles.css" />
	</head>

	<body>
	
		<table class="FullWidth FullHeight BigPadding">
			<tr>
				<td class="FullWidth StandardBlackBorder SmallPadding" style="{text-align:right;}">Oobie</td>
			</tr>
		</table>
		
	</body>
	
</html>

Open in new window

0
 
LVL 29

Assisted Solution

by:sammySeltzer
sammySeltzer earned 250 total points
ID: 34972682
well,
it seems aligned, way too aligned to the right to me.

see screenshot
right.GIF
0
 
LVL 3

Author Closing Comment

by:Unimatrix_001
ID: 34972731
This appears to be a FF issue... Thank you. :)
0
 
LVL 5

Expert Comment

by:Ultra_Master
ID: 34972737
This is because you used Internet Explorer. In Opera and Firefox it doesn't work and possible in many others. The approach suggested by me should work on most browsers.

Cheers,
UltraMaster
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question