?
Solved

css div layout problem php include

Posted on 2008-11-10
2
Medium Priority
?
374 Views
Last Modified: 2013-12-13
Hello people

I'm having a problem with a layout.

I've got it working here
http://krayonrecordings.kaen.org/fivestoreyprojects/layout.html

but once I try to use the php inlucde function to add the content to the divs from separate pages the layout doesn't work.

http://krayonrecordings.kaen.org/fivestoreyprojects/layout.php

I'm on a tight deadline and this is my first time trying to do this, I can't see why it doesn't work, sorry if it's something real simple!

Please let me know if I need to provide any further information
div.left
{
float:left;
width:300px;
margin-left:95px;
margin-right:0px;
}
div.content
{
float:inherit;
margin-left:400px;
width:400px;
}

Open in new window

0
Comment
Question by:andrew_perry_hgca
2 Comments
 
LVL 6

Accepted Solution

by:
cr4ck3rj4ck earned 2000 total points
ID: 22921829
Hi there,

I've looked at the source code for both of your pages, the php page is missing a </div> tag for the <div class="left">.

It should be located right after the line reading "<strong>James Taylor Building</strong></p>"

Hope that helps,
CJ
0
 

Author Closing Comment

by:andrew_perry_hgca
ID: 31515027
Hiya, thanks for that, i'm hanging my head in shame!

Have a great day.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month14 days, 18 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question