MFredin
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"></di v>
<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>
<!--- 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"></di
<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>
>>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 ?
hmm, make sure the css file is linked properly ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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...
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.
Thanks.
>> i thought css using "class", while "id" is just to set an id for an object here?
CSS can apply to either.
try like:
<div class="header"><cfinclude template="Header.cfm"></di
<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>