Evening All.

I am busy creating a website that will have about 20 pages. So I have made a header and a footer (include("");). now that i am ready to start with the main content of the site i cannot seem to add div tags to the css file inside the include("header.php").

Please could someone explain to me how i can add more div tags to the same stylesheet.

I would like to use one style sheet for this website as it is a small site.

I am a beginner at php so if you could help me out I would really appreiciate it.

Thank you very much.

Recommended Answers

All 7 Replies

Well there should never be any HTML inside a stylesheet so you might want to show us some of your code.

This is the header include().

<!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" />
<link href="styles.css" rel="stylesheet"  type="text/css" />
<link type="text/css" href="menu-style.css" rel="stylesheet"/>
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
	background-color: #FFFFCC;
	margin-top: 0px;
}
-->
</style></head>

<body>
<div id="body">
<!-- start of header container -->
  <div id="header-container">
    <div id="black-box"></div>
    <div id="flash-logo">
      <div id="logo"><img src="images/IKB.jpg" alt="IKB Logo" /></div>
      <div id="main-flash-container">
        <object width="450" height="200">
        <param name="movie" value="flash/home_banner.swf">
        <embed src="flash/home_banner.swf" width="450" height="200">
        </embed>
        </object>
      </div>
    </div>
  </div>
  <!-- end of logo and flash home banner  -->
  
  <!--  menu starts here  -->
  <div id="menu-container">
  	<ul class="solidblockmenu">
        <li><a href="http://www.istl.com/arpad/IKB/index1.html" class="current">Home</a></li>
        <li><a href="http://www.istl.com/arpad/IKB/about.html" >About Us</a></li>
        <li><a href="http://www.istl.com/arpad/IKB/interior.html">Interior Architect</a></li>
        <li><a href="http://www.istl.com/arpad/IKB/portfolio.html">Portfolio</a></li>
        <li><a href="http://www.istl.com/arpad/IKB/links.html">Links</a></li>
        <li><a href="http://www.istl.com/arpad/IKB/contact-us.html">Contact</a></li>
	</ul><br />
  </div>
  
  <!--  main body container starts here  -->
  <div id="body-container"><br />
  	<div id="information-container">

This is the footer include():

</div><br />
  </div>
  
  <!--  footer starts here  -->
  <div id="footer-container">
    <div id="biulder-logo"><img src="images/NHBRC.jpg" alt="National building assoc" border="0" /></div>
  </div>
</div>
<!-- end of body div -->  

</body>
</html>

OK, you don't have any divs inside your CSS so I'm not entirely sure what you want to do. If you want to add more stylesheets just use

<link type="text/css" href="yourstylesheethere.css" rel="stylesheet"/>

I would like to add more styles inside the styles.css file that has been saved inside the include. So how can i add more styles in that specific css file?

Thanks for you patience?

Cheers

Open up the CSS file and edit it?

Thanks for you patience

It is working now.

Thank you very much.

Member Avatar for spthorn

Wow.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.