+ Reply to Thread
Results 1 to 7 of 7

Thread: how to align an HTML page in the middle

  1. #1
    Junior Member anandpraba's Avatar
    Join Date
    May 2007
    Age
    34
    Posts
    4
    Rep Power
    7

    how to align an HTML page in the middle

    Hi,

    i am facing a problem while aligning a HTML file with dreamweawer 8. Actually the page is a simple login box having 400px width and 300 px height. i wanted that box should come in the middle and center of the page .

    In dreamweaver mx if we give a table which has a single row and coloumn and 100% width and height it will occupy the whole brower. so we can have our page inside that table and we can align it as we want.

    but in dreamweaver 8, it is not allowing me to create table width 100% height. so we can't align in the page in vertical middle.

    I think this is because of the new XHTML 1.0 verson which is being used in Dreamweaver 8 to validate.

    Is there any other way to align the page in the middle?



    If i have a real need to give 100% height to the table what i have to do?

    Regards
    Prakash

  2. #2
    Senior Member
    Join Date
    Aug 2006
    Location
    Hyderabad,India
    Age
    34
    Posts
    6,052
    Rep Power
    115

    Re: how to align an HTML page in the middle

    using dreamweaver8 u can create tables and also align to center
    there u can specify the width,height whatever u want
    its a good tool for html

  3. #3
    Senior Member
    Join Date
    Aug 2006
    Location
    Hyderabad,India
    Age
    34
    Posts
    6,052
    Rep Power
    115

    Re: how to align an HTML page in the middle

    align=center

  4. #4
    Super Moderator sk_kireeti's Avatar
    Join Date
    Feb 2006
    Posts
    2,279
    Rep Power
    65

    Re: how to align an HTML page in the middle

    'align=center' is for horizontal alignment and 'valign=middle' is for vertical alignment of a table. Check out these options.

    Hope this will help you.

    Thanks,
    Krishna

  5. #5
    Junior Member anandpraba's Avatar
    Join Date
    May 2007
    Age
    34
    Posts
    4
    Rep Power
    7

    Re: how to align an HTML page in the middle

    Hi friends, Thanks for the responses. My apologies for the delayed reply. I was not well for the past couple of days. I am afraid that i am not giving you the right direction towards my problem. here i will cut & paste a code.
    -----------------------------------------------------
    HTML Code:
    
    
    
    
    
    
    function avoidchr()
    {
    if (event.keyCode == 60 || event.keyCode == 62 || event.keyCode == 47)
    event.returnValue = false;
    }
    
    
    
    
      
        
          
             
          
    
        
    
    
      
    
    
    
    
    
    
    
    
    
     
    
    -------------------------------------------------
    please see the out put of the code and i want the outer table (ash color) to be full area of the browser and the inner table (blue one) to be in the middle of the browser.

    A couple of options which i have found is
    1. remove the Docytpe tag
    1. paste this prior version instead of existing one.

    But these two are illegal regarding to the W3Standard.

    Could you try any other options.

    Regards
    Anandprakash
    Last edited by anandpraba; 07-06-07 at 04:48 PM.

  6. #6
    Junior Member anandpraba's Avatar
    Join Date
    May 2007
    Age
    34
    Posts
    4
    Rep Power
    7

    Re: how to align an HTML page in the middle

    Friends,
    How to paste a code here? it is giving the out put if i paste the code here.


    Regards
    Anandprakash

  7. #7
    Member
    Join Date
    Oct 2006
    Posts
    38
    Rep Power
    7

    Re: how to align an HTML page in the middle

    Keep the code in a .doc file and attach the file here. so tht we can download the file and have a glance @ tht code and help u..... Hope this solves urs problem

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mega Free Download S/W Links A-Z
    By yathish in forum OTHERS
    Replies: 517
    Last Post: 19-07-10, 09:49 AM
  2. J2EE - How will you pass values from HTML page to the Servlet
    By preethisingh in forum Java Interview / Technical Questions
    Replies: 3
    Last Post: 06-03-07, 11:25 PM
  3. Perform a new installation of Windows XP
    By yathish in forum System Trouble Shooting
    Replies: 4
    Last Post: 02-01-07, 07:06 PM
  4. java JSP
    By naga in forum JAVA Technologies
    Replies: 4
    Last Post: 21-08-06, 04:03 PM
  5. CA
    By vista in forum Other Queries
    Replies: 2
    Last Post: 14-04-06, 01:49 AM

Tags for this Thread

Posting Permissions

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

Content Relevant URLs by vBSEO 3.5.1 PL1