Link to home
Start Free TrialLog in
Avatar of MFredin
MFredinFlag for United States of America

asked on

DW MX 2k4 - Design view does not work when I add a CSS & <div id=""> ?? How can I make this normal?

I am using Dreamweaver MX 2004 & Coldfusion MX.  When I add a CSS... (<link rel="stylesheet" type="text/css" href="../style.css"  />) to the head and also add (<div id="header">) the dreamweaver design view is all goofed up and I can't do anything with it.  What is going on here?  Here is all my code.

<!--- File name = "style.cfm"  -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="style.css"  />  </head>

<body>
<div id="header"><cfinclude template="Header.cfm"></div>
<div id="content">
<div id="navbar"><cfinclude template="Menu.cfm"></div>
<div id="main-text">HERE IS WHERE I PUT THE MAIN CONTENT OF THE PAGE.</div>
</div>
</body>
</html>
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

I thought is "class" instead in this case?

try like:

<div class="header"><cfinclude template="Header.cfm"></div>
<div class="content">
<div class="navbar"><cfinclude template="Menu.cfm"></div>
<div class="main-text">HERE IS WHERE I PUT THE MAIN CONTENT OF THE PAGE.</div>
>>the dreamweaver design view is all goofed up and I can't do anything with it
hmm, make sure the css file is linked properly ?
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MFredin

ASKER

After going through all the code in all my included pages, I came across a CSS link in my header page to a different style file.  This is what was goofing everything up!  So the problem is solved.  I appreciate your help with this!
MFredin,

Glad we could help.  Looks like ryancys had the right answer...
I got no problem if share credits with jason here, cheers.
>>  I got no problem if share credits with jason here, cheers.

Thanks.

>>  i thought css using "class", while "id" is just to set an id for an object here?

CSS can apply to either.