PDA

View Full Version : when i put a div container around my layout tables in code, i cant add layout cells in design view


silverglade
11-21-2008, 07:39 PM
when i put a div container around my layout tables in code view, i cant add layout cells in design view in DW. here is the code. when i use it, i cant add anything else in design view in layout mode.

<!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=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--

#wrapper{
width:795px;
position:relative;
margin: 0px auto;
}

-->
</style>

</head>
<body >
<div id="wrapper">

<table width="795" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="795" height="889">&nbsp;</td>
</tr>
</table>


</div>
</body>
</html>

Corrosive
11-22-2008, 08:27 AM
when i put a div container around my layout tables in code view, i cant add layout cells in design view in DW. here is the code. when i use it, i cant add anything else in design view in layout mode.

<!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=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--

#wrapper{
width:795px;
position:relative;
margin: 0px auto;
}

-->
</style>

</head>
<body >
<div id="wrapper">

<table width="795" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="795" height="889">&nbsp;</td>
</tr>
</table>


</div>
</body>
</html>


You have three 'modes' in DW. Standard, Expanded and Layout. You might find as you have started to use div tags that DW has switched to standard mode and you need layout mode for tables. The three mode buttons are at the top of your screen.

Here's a hint. Tables can be used in layout mode and not standard mode. This should tell you that divs and CSS are standard in web design so stop using tables altogether.