48 users online (1 members and 47 guests)  


  Results 1 to 7 of 7

Related

  1. IE8 not rendering correct height    Forum: CSS Forum
    Replies: 2
  2. Forms in dreamweaver 8    Forum: HTML Forum
    Replies: 3
  3. cgi and dreamweaver    Forum: CGI Perl Forum
    Replies: 2
  4. Page rendering order?    Forum: General Discussion
    Replies: 0
  5. Replies: 0
  1. #1
    LocoDave's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Australia
    Posts
    64

    Exclamation DreamWeaver 8 - rendering issues

    Hey guys,

    Just playing with dreamweaver 8. When i create a table 100% width and height with a background colour of pink for example it doesn't render properly on Internet explorer. You only see a single row in pink, you dont see the whole page in pink. If I add a background image, you don't see it at all.

    If I remove the code on the first line, the DTD, then it works fine.

    HTML Code:
    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"
    What's the deal with the default DTD code?

    Thanks

  2. #2
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: DWeaver 8 - rendering issues

    It would help if you'd post a link to your page, or else post the source code. Also, you might want to run your page through a validator with the DTD included to see what errors that might find. Fix those, then see how your page renders.

    Hope this helps.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more

  3. #3
    LocoDave's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Australia
    Posts
    64

    Re: DWeaver 8 - rendering issues

    Ok, here is the code for a table that is 100% in width and height. When it is rendered thrugh Internet explorer, you will see what I mean.

    HTML Code:
    <!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>
    <style type="text/css">
    <!--
    body {
    	margin-left: 0px;
    	margin-top: 0px;
    	margin-right: 0px;
    	margin-bottom: 0px;
    }
    -->
    </style></head>
    
    <body>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#003366">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    </body>
    </html>

  4. #4
    LocoDave's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Australia
    Posts
    64

    Re: DWeaver 8 - rendering issues

    And if I remove the DTD tags in the code (the first 3 lines) it will render the way it should be.

    HTML Code:
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    	margin-left: 0px;
    	margin-top: 0px;
    	margin-right: 0px;
    	margin-bottom: 0px;
    }
    -->
    </style></head>
    
    <body>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#003366">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    </body>
    </html>

  5. #5
    LocoDave's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Australia
    Posts
    64

    Re: DWeaver 8 - rendering issues

    Anyone ...... ???

  6. #6
    DeadMeatGF's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    381

    Re: DWeaver 8 - rendering issues

    I have no idea - but as the problem disappears when you remove the DTD, then it looks like that's where the problem is.

  7. #7
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: DreamWeaver 8 - rendering issues

    You can try removing the height attribute as it is not proper in xhtml 1 transitional, it probably will not fix the problem though. Something tells me it is the css margins but I have nothing to base it on.

    You may want to check out this page and see if it is of help http://www.opera.com/docs/specs/doctype/

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting



Tags for this Thread