Header.php exists but does not show up on every page.

Hi.  I am starting from scratch with this.
part1.
My objective is to create a website that takes advantage of DreamweaverCC's fluid-grid-layout so that my web Site auto-flows on
smartphones, tablets and desktops/laptops.
file > new > fluid-grid-layout.
By default, it says 'unnamed.css'
I named it  testSite.css
click okay.
(This is the only way to begin with a fluid-grid-layout - I think).
It opens a split view.
On the right frame is a DIV that has this text inside.
"Use Insert Panel for additional Fluid Grid Layout Elements. Note: All Fluid Layout tags must be contained within the "gridContainer" div tag."
In the right frame,
<script src="file:///Macintosh%20HD/Applications/Adobe%20Dreamweaver%20CC/Configuration/BuiltIn/F luid%20Grid%20Layout/respond.min.js"></script>
</head>
<body>
<div class="gridContainer clearfix">
  <div id="div1" class="fluid">Use Insert Panel for additional Fluid Grid Layout Elements. Note: All Fluid Layout tags must be contained within the "gridContainer" div tag.</div>
</div>
</body>
</html>
QUESTIONS - CLARIFICATION.
Question ????
class = 'gridContainer clearfix"
div id = "div1 class = "fluid"
So all of the <div>s that I place inside of the gridContainer will all be assigned the 'class'  fluid.
Yes ?
And I define div ids so that I can use css styles
Yes ?
I understand class in Java but I do not understand it here in Dreamweaver.
Please explain.
part2.
I inserted 4 <div>s into the gridContainer and assigned them specific div ids.
div id = square1
div id = square2
div id = square3
div id = square4
I see these assignments in the code.
But in the properties panel with HTML (not css panel) selected. 
It shows  ID None.
Question ????
Why doesn't the assigned div =id  in the code show in the properties panel.
part3a.
index.php is my main web page.
It has several images (the 4 different squares).
I created a separate .html file for each square: square1.html square2.html square3.html square4.html.
At this point, each of those pages has only one sentence.  'contents for square#N) will be on this page'
I used the properties panel and linked the 4 images on index.php to these .html files.
When I 'View in Safari/Firefox'  each of those images (squares) when clicked - bring me to the appropriate page.
So I've got some of this working
part3b.
I know that some of you have already tried to assist with this but it is not working for me.
I created a file called header.php
The contents of header.php does not have any <tags> at all.
The contents is this:
<h1> This will be the header for all of my web pages.</h1>
In index.php I included this in the code as such:
<body>
<? php require_once('header.php'); ?>     // this is line 34
<div class="gridContainer clearfix">
  // div ids for the images etc. etc.
</body>
</html>
View in Safari/Firefox
Parse error: parse error in /Library/WebServer/Documents/dwwdSite/index.php on line 34
I tried this.
<? php include_once('header.php'); ?>
<? php include('header.php'); ?>
and I get the same exact error.
When I 'view in Safari/Firefox'  header.php  it displays what I want:
This will be the header for all of my web pages.
Question ????
What am I doing incorrectly ?
From one of my other posts - as we got onto this topic, it was suggested that I just place the php code:
<? php  include('header.php'); ?>
within the index.html file exactly where I want it to show up.
I want it to show up at the top of each page.
Well at this point it is not showing up anywhere !!
But if I have header.php active in Dreamweaver and 'view in safari/firefox'
the browser does show the header.php page.
part4.
Question ????
And should I include
<? php require_once('header.php'); ?>
at the top of each of the square.html files if I want the header to show up on each of those pages.
I think this makes sense.
part5.
Question ????
When I view testSite.css
I understand that it has 3 different sets of selectors for each of the 3 different devices.
But how do I 'assign'  css properties to the contents inside of header.php ?
With header.php active/open, from the 'properties panel' I can select CSS and choose: font, size, color from there and it works
but should I not have this included in the testSite.css ?
Lots of questions. Hope that I explained it in an organized fashion.
thanks again.
Nancy O.
Sudarshan Thiagarajan

> So all of the <div>s that I place inside of the gridContainer will all be assigned the 'class'  fluid.
Nope - but everything that you insert using the Insert panel will give you the opportunity to specify that it's a fluid element, which you can do by enabling the checkbox on the dialog. This means that you CAN insert a <div> that is not a fluid element. It's only the ones that you insert as a fluid element that will get that class automatically.
>And I define div ids so that I can use css styles
Assigning an ID to any element on the page allows you to target that element with a particular CSS rule.
> I understand class in Java but I do not understand it here in Dreamweaver.
> Please explain.
There is no similarity at all. There are four ways you can identify a page element to apply a CSS rule:
1. By tag, e.g., all paragraph tags on the page.
2. By context, e.g., any paragraph tag that is within a <nav> element.
3. By 'class' assignment, e.g., any element that has been given a particular "class" attribute -> <p class="foo">
4. By ID, e.g., any element that has been given a particular "ID" attribute -> <p id="foo">
The weight of any style (i.e., which one to use in the event of conflict) is determined by a number of characteristics of the CSS 'selector' that carries the rule.
> Why doesn't the assigned div =id  in the code show in the properties panel.
Assuming your code is correct, it will, e.g.,
<div id = "square1"></div>
<div id = "square2"></div>
<div id = "square3"></div>
<div id = "square4"></div>
Try this -
<html>
<head></head>
<body>
<?php require_once('header.php'); ?>     // this is line 34
<div class="gridContainer clearfix">
  // div ids for the images etc. etc.
</body>
</html>
and I get the same exact error.
Yes - there is no space in "<?php".
Let's start with that.

Similar Messages

  • Domaindnszones Forestdnszones exists but does not show in Dns

    Guys I have a weird situation where the Domaindnszones and Forestdnszones partitions exists but does not show in dns.
    If I try to recreated the partition in DNS it says "partition already exists".
    I try Recreating it in DNS by creating a new domain under the "mydomain" zone but it never gets populated.
    Replication seems to be working fine between my DC's
    This domain was created from way back in the NT days and has just been upgraded over the years..
    currently we have 1 2003 Dc and 2 2008 r2 Dc. we want to retire the 2003 dc. all 3 dc are DNS, and GC servers.
    at this point should i even worry about this two partitions. ( Domaindnszones, Forestdnszones).
    I think Dns was never configure correctly when we went from 2000 to 2003
    thanks

    HI.
    Correction. the 2003 dns and dc is no loger in the environment. It was the Primary FSMO role holder.looks like all the roles has been transfer over to the new 2008 r2 dc. 
    I did not set this domain up. but are trying to clean it up.
    I notice in dns there was only one AD integrated zone (mydomain). that the (Domaindnszones and forestdnszones) are not visible. I tested replication between the DC via sites and services and replication is ok.
    I created and AD integrated Zone in DNS called _msdcs.mydomain and it looks like it populated it with all the corrected corresponginng zones.
      _mcdcs.mydomain
    ----------dc
    ----------domain
    -----------gc
    -----------pdc
    when i try in dns to Create default application directory partition, it tells me the "partition exists"
    using adsiedit connecting to DC=domaindnszones. dc=mydomain I can see the partition same is true for Dc=forstdnszones, dc=mydomain
    so digging around i found this similiar thread:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b5551ad5-65ec-48f7-81b2-2a00bbd93def/msdcs-doesnt-exist?forum=winserverNIS&prof=required
    I followed solution suggested by ACE. which did allow me to delete and create the new (domaindnszones and forestdnszones) partitions. but sitll not showing in dns.
    some more research showed this link..
    http://blogs.technet.com/b/the_9z_by_chris_davis/archive/2011/12/20/forestdnszones-or-domaindnszones-fsmo-says-the-role-owner-attribute-could-not-be-read.aspx
    and indeed the script did clean up the deleted 2003 Dc/dns server. and assigned the new 2008 r2 dc/dns server
    still the Domaindnszones and Forestdnszones are not visible.
    Manually Creating a delegation under Mydomain (domaindnszones forestdnszones) only yield Grayed out folders
    Manually Creating 2 domains under Mydomain (domaindnszones forestdnszones) shows the folders. but once I restart netlogon and restart dns
    the folders disappear...
    any suggestion solutions will be greatly appreciated...

  • My iphone 4S shows up on my computer but does not show up in itunes devices. I have all security

    I just got an iPhone 4S and am unable to get it to show up as a device in iTunes.
    I previously backed up my old iPhone on my Windows 7 PC. When I connect my 4S to the PC it is recognized by the PC but does not show up as a device in iTunes.
    I have turned off all virus protection software & have tried uninstalling iTunes and all associated Apple software. I reinstalled all Apple software with no results in my 4S showing up as a device in iTunes.
    Any help is greatly appreciated.

    Try restarting the AMDS >  iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows

  • TS4062 I can't sync music on my computer to my ipod touch; the ipod shows up under Devices in itunes but does not show buttons (Summary etc.) when I click on it. Suggestions?

    I can't sync music already on my computer to my ipod touch; the ipod shows up under Devices in itunes but does not show buttons (Summary etc.) when I click on it. I've read through all the Help tutorials but none of them say what to do if the sync options don't pop up when you highlight the device.  I've already spent way too much time trying to figure this out and it's driving me crazy!  Thanks for any help you can offer.

    This is correct.  It will not show in finder.  It is not an external storage device.
    The music sync is one way - computer to ipod.  The only exception is itunes purchases.  Open itunes connect ipod, do not sync, click File>Transfer Purchases

  • Edu DVD in computer iTunes but does not show up in iPad iTunes or iPad video.  How do I make the DVD contents available on the iPad?

    Educational DVD added successfully to computer iTunes but does not show up in iPad iTunes or iPad video.  How do I make the DVD contents available on the iPad?

    Thanks!  For whatever bizarre reason for which I have no answer - I sync'd my iPad to my MBP the old fashion way (not iCloud) and the movie showed up just fine.  It is Nikon camera 'how to' video. I like to watch them for a better indepth discovery of what the camera can do.  The only weird thing about the hard wire sync is that it was placed in a catagory "home movies" which was never there before...actually it showed up in two places "home movies" and TV shows.
    So, thanks anyway!  Pretty cat!
    Mona

  • A june 2012 icloud backup shows up on my icloud storage manage list, but does not show up when i try to restore from icloud backup. what to do?

    Question repeated: A june 2012 icloud backup shows up on my icloud storage manage list, but does not show up when i try to restore from icloud backup. what to do?
    I want to restore from my june 2012 backup because it contains pictures that i lost when my phone broke in september. if anyone could help that would be awesome. thanks

    Did you tap "Show older backups" on the Choose Backup screen (see image below)?

  • I have a new movie rental in my iTunes account on my Mac Book Pro but does not show up on Apple TV. All my other purchased movies are there OK. Any suggestions?

    I have a new movie rental in my iTunes account on my Mac Book Pro but does not show up on Apple TV. All my other purchased movies are in there OK. Any suggestions?

    It won't show up on your Apple TV until it is fully downloaded into iTunes on your computer, have you done this.

  • When I try to sync my music on my iPhone 4 I have a tab at the top that says 'on this iPhone' The music in that tab is always on my phone but does not show in my itunes library.  How can I get it into my library?

    When I try to sync my music on my iPhone 4 I have a tab at the top that says 'on this iPhone'.  This is at the end of all the other tabs like info, ringtones, music etc. The music in that tab is always on my phone but does not show in my itunes library.  How can I get it into my library?  It doesn't sync either.

    The new iTunes has a somewhat different look from the previous version.  You can get the old look back if you prefer it by doing View > Show Sidebar in iTunes.  Or you can adapt to the new look.

  • HT1688 I have a honda civic with USB port which allows play back of my old iPhone 4 and 4s.  With the new iPhone 5 the radio shows the phone is conected but does not show any music content.

    I have a honda civic with USB port which allows play back of my old iPhone 4 and 4s.  With the new iPhone 5 the radio shows the phone is conected but does not show any music content.  Any Suggestions?

    You should be syncing your contacts with an app on your computer or cloud service (iCloud, Gmail, Yahoo, etc), and not relying on a backup.  If you haven't been doing this, start now and then restore your old backup.  You will then be able to sync the new contacts back into the phone.  However, you will lose all messages, etc newer thant the backup.

  • My ipod will charge but does not show in itunes or windows

    I tried to use my ipod as a disk to transfer my itunes library from my desktop to my notebook (both Dell), now my ipod charges, but does not show up in itunes or on either of my computers. I have used the advice of going to control panel and unchecking the box under power management but that didn't work, CAN SOMEONE PLEASE PLLLEEEEAAAASSSSSSSEEEEEEE HELP ME?
    I have windows xp on one and vista on the other, if that helps.

    This worked for me, don't know if it will for you. Have ITunes open. While IPod is connected to computer press(at the same time) the menu and center buttons until your screen goes black and shows the apple icon then immediately press the forward button. Your IPod should show up. It won't hurt to try it, even if it doesn't work. Hope this is of some help to you.

  • My ipod shows up in itunes, but does not show up on my pc as a drive

    my ipod show up in itunes - but does not show up on my pc as a drive
    cannot figure out why it now doesn't show up

    Maybe
    iOS: Unable to import photos to computer
    Did it show before?
    If you connect to another PC does the iPod show up in My Computer?
    Have you installed only camera or scanner programs on your computer?

  • I am trying to uninstall a program that is running in the background but does not show when I force quit.  How do I remove it?

    How do I uninstall a program that is running in the background but does not show in Force Quit?

    Open Activity Monitor and look for the program.  Select it and Quit or Force quit it from within Acitiviy Monitor.
    Search for the application with Find Any File as it can search areas that Spotlight can't, like invisible folders, system folders and packages.  You can drag the app and any associated files from the search result window to the Trash bin in the Dock.
    OT

  • My playlists show how many titles are in the playlist but does not show the list of titles

    my playlists show how many titles are in the playlist but does not show the list of titles. Is there a setting that I hit by mistake to hide the content?

    Perhaps you have made one column extra wide and the window isn't currently showing the Name column. Try resizing columns, turning off those that you don't need, or scrolling sideways.
    tt2

  • When i receive a 2nd call my phone will beep but does not show who it is or give me the option to take 2nd call

    When i receive a second call my phone will beep but does not show the number that is calling or give me the option to take the second call?

        We appreciate your feedback on this matter, gingerspice913. I've not come across this issue before.  Do you know how long it has been since the issue began? Please try to reset the network settings to see if it helps http://vz.to/1swAJbD?
    TamaraH_VZW
    Follow us on Twitter @VZWSupport

  • USB Drives works, but does not show up in "Safely Remove Hardware"

    USB Drives works, but does not show up in "Safely Remove Hardware"
    windows 8 
    USB Drives works, but does not show up in "Safely Remove Hardware"
    Here are my symptom
    - USB Flash Drives , USB External HDD works normally
    - I can see them in "My Computer"
    - I can open "Safely Remove Hardware" via Run Command, but there is no device in the list
    - They show up as "Disk drives" in device manager
    - When I right click their icons in "My Computer", there is no option to "Eject" them
    - In "Disk Management", they show up as "Basic". Prior to this issue, they were "Removable"
    After I tested, it seems that my Vista detects every USB storage device as a normal HDD.
    I don't know why but I'd appreciate any help because I have to plug-in and remove those drives often, especially flash drives.
    Thank you

    Hello Mickey2003
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand you are having issues in Windows Vista with your USB Storage devices not showing up in the Safely Remove Hardware list. I am providing you with a link to a Microsoft Hotfix for this very issue titled An external USB storage device may not appear in the Safely Remove Hardware list in the notification.... I would recommend you review the KB document and ensure you a familiar with the Hotfix information and run the hotfix to resolve the issue you are experiencing.
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

Maybe you are looking for

  • Please help me :(

    hi there, i had my nokia n95 2 months ago, i'm trying to check if the gps is working by opening the map application and check the satellite info it gave me 5 empty squars and they never turn black . Does this mean the gps is not working ?? and how ca

  • Recordset functions

    I have created a simple photo gallery page and I'm having trouble creating the dynamic navigation. I have a page that contains thumbnails of all of the images using the following code: <cfquery datasource="#datasource2#" name="getphotos"> SELECT * FR

  • Synced audio in a file is out of sync in premiere/prelude

    I have a file from a documentary film I'm working on that happened to be shot on the iPod Touch. When playing back the original files, the audio is perfectly synced. In Premiere and Prelude, the audio is fast (or the video is slow, I can't tell.) so

  • Bar Code  in laguage

    Hi, How to undarstand this bar code in SAPScript SE71 ? What is FT55 ,FS,FN  ? Like below code DFR:SSFMT000.ZPLFS / ^FT55,108 / ^CI0 / A0N,34,47FDShip To Party8 : ^FS / ^FT55,375 / A0N,34,47FDSupplying Site :^FS / ^FT54,504 / A0N,59,81FDHU Nos :^FS /

  • Can anyone help me duplicate these effects?

    i'd like some help duplicating the effects in this video, but seeing as i JUST started, i dont even know how to make stuff flicker or turn darker. could someone please see it and try to explain in detail/record exactly what i need to do? -make stuff