Page is a not externally linkable
- Code, Content, and Presentation
-- WYSIWYG and Text Code Editors
---- dreamweaver mx messing up tabs in code


carsten888 - 6:29 pm on Apr 23, 2007 (gmt 0)


my installation of dreamweaver is 2 weeks old and has totally default settings.

I found that it is this line in css that is causing my problems:
css:
div.labelwrapper{
position: relative;
}

html:
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<title>test code</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="test_main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form action="#">
<div id="header">
<div class="labelwrapper">
<label for="searchtext" class="overlabel">Zoeken in deze site</label>
<input type="text" value="" class="line width140 search" name="searchtext" id="searchtext" />
<input type="image" title="Zoeken in deze site" name="searchsubmit" id="searchsubmit" src="images/go.gif" alt="zoeken" />
</div>
</div>
</form>
</body>
</html>

to reproduce:

- paste html in new doc in DW. make sure tabs are properly nesting eachother.
- paste css in file in same dir, call it "test_main.css"
- open the htm-file, DW will have moved the div with class="labelwrapper" 1 tab to the left.

When I take away that one line in the css: "position: relative;" it doesn't mess up my code.
realy frustrating! deadline tomorrow :-(


Thread source:: http://www.webmasterworld.com/html_editors/3314349.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com