Computer Science Canada
Programming C, C++, Java, PHP, Ruby, Turing, VB
Username:
Password:
Register
Wiki
Blog
Search
Turing
Chat Room
Members
manual center alignment
Index
->
Programming, PHP
->
PHP Help
Author
Message
Homer_simpson
Posted:
Mon Aug 25, 2003 9:09 pm
Post subject: manual center alignment
well i figured to make an image be on the center of screen i can do this:
code:
<img name=ass src=http://backstabbers.no-ip.com/images/homersig.jpg width=400 style="position:absolute;top:300;left:10;">
<script type="text/javascript">
ass.style.left=(screen.availWidth/2)-200
</script>
but how can i do that to a table?
Sponsor
Sponsor
Blade
Posted:
Mon Aug 25, 2003 9:54 pm
Post subject: (No subject)
.... if this is what you mean.....
code:
<table align=center>
<tr>
<td valign=top>
My
</td>
</tr>
<tr>
<td valign=top>
Table
</td>
</tr>
<tr>
<td valign=top>
Is
</td>
</tr>
<tr>
<td valign=top>
Aligned
</td>
</tr>
<tr>
<td valign=top>
In
</td>
</tr>
<tr>
<td valign=top>
the
</td>
</tr>
<tr>
<td valign=top>
Center
</td>
</tr>
</table>
didnt really understand the question lol..
octopi
Posted:
Mon Aug 25, 2003 10:17 pm
Post subject: (No subject)
This should work:
code:
<html>
<head>
<title>Centered Tables</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<center>
<table border="0" cellspacing="0" cellpadding="0" id="maintable">
<tr name="holder">
<td align=center valign=middle>
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>this</td>
<td>table</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td>should</td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td>be</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td>centered</td>
</tr>
<tr>
<td> </td>
<td>on</td>
<td>the</td>
<td>screen</td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</body>
<script type="text/javascript">
document.getElementById('maintable').setAttribute('height',document.body.clientHeight-30);
document.getElementById('maintable').setAttribute('width',document.body.clientWidth-20);
</script>
</html>
That javascript codes not NS compatible. It shouldn't be hard to find the netscape values though.
Homer_simpson
Posted:
Mon Aug 25, 2003 11:39 pm
Post subject: (No subject)
get element by id!!!!! that's the one...!i couldn't name a table but i can give it an id...
thx octopi....
Homer_simpson
Posted:
Tue Aug 26, 2003 12:38 am
Post subject: (No subject)
now take a look at the menu i created
http://backstabbers.no-ip.com
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Index
->
Programming, PHP
->
PHP Help
Page
1
of
1
[ 5 Posts ]
Jump to:
Select a forum
CompSci.ca
------------
- Network News
- General Discussion
General Forums
-----------------
- Hello World
- Featured Poll
- Contests
Contest Forums
-----------------
- DWITE
- [FP] Contest 2006/2008
- [FP] 2005/2006 Archive
- [FP] 2004/2005 Archive
- Off Topic
Lounges
---------
- User Lounge
- VIP Lounge
Programming
--------------
- General Programming
General Programming Forums
--------------------------------
- Functional Programming
- Logical Programming
- C
C
--
- C Help
- C Tutorials
- C Submissions
- C++
C++
----
- C++ Help
- C++ Tutorials
- C++ Submissions
- Java
Java
-----
- Java Help
- Java Tutorials
- Java Submissions
- Ruby
Ruby
-----
- Ruby Help
- Ruby Tutorials
- Ruby Submissions
- Turing
Turing
--------
- Turing Help
- Turing Tutorials
- Turing Submissions
- PHP
PHP
----
- PHP Help
- PHP Tutorials
- PHP Submissions
- Python
Python
--------
- Python Help
- Python Tutorials
- Python Submissions
- Visual Basic and Other Basics
VB
---
- Visual Basic Help
- Visual Basic Tutorials
- Visual Basic Submissions
Education
-----------
- Student Life
Graphics and Design
-----------------------
- Web Design
Web Design Forums
---------------------
- (X)HTML Help
- (X)HTML Tutorials
- Flash MX Help
- Flash MX Tutorials
- Graphics
Graphics Forums
------------------
- Photoshop Tutorials
- The Showroom
- 2D Graphics
- 3D Graphics
Teams
------
- dTeam Public
Style:
Appalachia
blueSilver
eMJay
subAppalachia
subBlue
subCanvas
subEmjay
subGrey
subSilver
subVereor
Search:
You can syndicate this boards posts using the file
backend.php
or view the
topic map using sitemap.php.
Terms of Use
|
Privacy Policy