Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Vertically Align Page or Table.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
    <html>
    <head><title>Sugary Sweets Bakery</title></head>
    
    <BODY 
        BACKGROUND=""
        BGCOLOR="#F52887"
        TEXT="#000000"
        LINK="#F52887"
        VLINK="#F52887"
        ALINK="#CCCCCC"
        >
    
    <style type="text/css">
    table.main {
    	width: 700px;
    	border-width: 1px;
    	border-spacing: 0px;
    	border-style: solid;
    	border-color: black;
    	border-collapse: separate;
    	background-color: white;
    	margin-left: auto;
    	margin-right: auto;
    }
    table.inside td {
    	border-width: 0px;
    	padding: 0px;
    	border-style: solid;
    	border-color: black;
    	background-color: white;
    }
    </style>
    
    <table class="main">
    	<td>
    
    		<p style="font-family:arial; text-align:center; font-size:11px;"><a href="index.html"><img src="splashPageLogo.png" border=0px></a><BR>
    		>> <a href="index.html">enter</a> <<
    		</p>
    		
    		<p style="font-family:tahoma; text-align:center; font-size:11px;">Copyright &copy; 2009 Melanie Hoffert</p>
    
    	</td>
    </table>
    
    </body>
    </html>
    I'd like to vertically align either my table or the page itself.

  • #2
    met
    met is offline
    Regular Coder
    Join Date
    Oct 2009
    Location
    United Kingdom
    Posts
    728
    Thanks
    4
    Thanked 119 Times in 119 Posts
    http://www.pmob.co.uk/pob/hoz-vert-center.htm

    should be able to adapt that to your needs.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •