Solved

HTML table not aligning

Posted on 2011-02-24
4
304 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
  • 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 28

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now