Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default DOCTYPE bug?

    I am trying to centre a simple table on a page. But find in Safari on a Mac, it
    refuses to centre on the window HEIGHT.

    I have found the way to make it work is to remove this paragraph at the top of
    the HTML:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    I have tried setting a new document to all the other doctypes but they all
    have the same problem. Can I safely loose the doctype altogether as I see a lot
    of other websites have done?

    What is the alternative way to centre tables on the height of the window?

    C

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <table width="800" height="100%" border="0" align="center" cellpadding="0"
    cellspacing="0">
    <tr>
    <td align="center" valign="middle"><table width="800" border="0"
    align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td bgcolor="#99FF66"><div align="center">aldgsd;fsd;kf sd; </div></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    </table></td>
    </tr>
    </table>
    </body>
    </html>

    colinwalton Guest

  2. Similar Questions and Discussions

    1. cfcache, generated comment, & DOCTYPE
      Well, I was hoping this was going to be fixed in CF7 but it is not. I'm pretty sure there is no way around it, but I figured I'd ask here. When...
    2. Doctype and Port 80 problems
      Hi Have a site up and running through Contribute and hoped someone can help with a couple of problems: The index page is adding :80/ to the...
    3. PHP Code above DW Template doctype?
      I've built a website in a DW Template; the pages are .php. We added a PHP script, a bit of code that needs to be at the top of the pages (before...
    4. is there a DOCTYPE that validates EMBED tag?
      I have Studio MX 2004. Flash requires EMBED tag but Dreamweaver says that's an error. Does any DOCTYPE allow the EMBED tag? In Flash Pro, I ask...
    5. DOCTYPE
      I have been researching css-p and following example tutorials on PVII. Now... if I use the entire DOCTYPE declaration that PVII suggest, I get...
  3. #2

    Default Re: DOCTYPE bug?

    [url]http://www.apptools.com/examples/tableheight.php[/url]

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "colinwalton" <webforumsuser@macromedia.com> wrote in message
    news:elecsk$703$1@forums.macromedia.com...
    >I am trying to centre a simple table on a page. But find in Safari on a
    >Mac, it
    > refuses to centre on the window HEIGHT.
    >
    > I have found the way to make it work is to remove this paragraph at the
    > top of
    > the HTML:
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    >
    > I have tried setting a new document to all the other doctypes but they all
    > have the same problem. Can I safely loose the doctype altogether as I see
    > a lot
    > of other websites have done?
    >
    > What is the alternative way to centre tables on the height of the window?
    >
    > C
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    > <html xmlns="http://www.w3.org/1999/xhtml">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    > <title>Untitled Document</title>
    > </head>
    > <body>
    > <table width="800" height="100%" border="0" align="center" cellpadding="0"
    > cellspacing="0">
    > <tr>
    > <td align="center" valign="middle"><table width="800" border="0"
    > align="center" cellpadding="0" cellspacing="0">
    > <tr>
    > <td>&nbsp;</td>
    > <td>&nbsp;</td>
    > <td>&nbsp;</td>
    > </tr>
    > <tr>
    > <td>&nbsp;</td>
    > <td bgcolor="#99FF66"><div align="center">aldgsd;fsd;kf sd;
    > </div></td>
    > <td>&nbsp;</td>
    > </tr>
    > <tr>
    > <td>&nbsp;</td>
    > <td>&nbsp;</td>
    > <td>&nbsp;</td>
    > </tr>
    > </table></td>
    > </tr>
    > </table>
    > </body>
    > </html>
    >

    Murray *ACE* Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139