Link to home
Start Free TrialLog in
Avatar of mustish1
mustish1

asked on

Error in CSS

Can you please tell me what this error means?  Thanks.

User generated image
<?php
$title = "Home";
$content = '<img src="Images/coffee1.png" class="imgLeft" />
<h3>Title 1</h3>
<p>
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.    
</p>

<img src="Images/coffee2.png" class="imgRight"/>
<h3>Title 2</h3>
<p>
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.    
</p> 

<img src="Images/coffee3.png" class="imgLeft" />
<h3>Title 3</h3>
<p>
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.
    This Coffee web site is under construction. This Coffee web site is under construction.    
</p>';

include 'Template.php';
?>

Open in new window

Avatar of zc2
zc2
Flag of United States of America image

I guess NetBeans just does not expect an HTML text inside a variable. That makes it confused, so it throws that error.
<<Removing ASP.Net / C#>> tags
I use Apache Netbeans.  I placed your code in a new file and do not get an error.
Avatar of mustish1
mustish1

ASKER

Its not showing the page correctly. Also I cant find this line any where in the code.

<<Removing ASP.Net / C#>> tags
User generated image
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><?php echo $title; ?></title>
        <link rel="stylesheet" type="text/css" href="Styles/Stylesheet.css" />
    </head>
    <body>
        <div id="wrapper">
            <div id="banner">             
            </div>
            
            <nav id="navigation">
                <ul id="nav">
                    <li><a href="index.php">Home</a></li>
                    <li><a href="#">Coffee</a></li>
                    <li><a href="#">Shop</a></li>
                    <li><a href="#">About</a></li>
                </ul>
            </nav>
            
            <div id="content_area">
                <?php echo $content; ?>
            </div>
            
            <div id="sidebar">
                
            </div>
            
            <footer>
                <p>All rights reserved</p>
            </footer>
        </div>
    </body>
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland 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
I could not find any errors with that code. There is a chance that your editor's parser has issues with multi-line strings.
Here is the screen shot. I think the path is correct.
User generated image
Ok. Well nowhere in that screenshot is a Styles folder or a stylesheet.css file, so either it's missing completely or its outside of your project
Thank You.