944,033 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 3066
  • PHP RSS
You are currently viewing page 1 of this multi-page discussion thread
Feb 22nd, 2007
0

Manage Styles...

Expand Post »
Hello once again...

I have the sidebar and the header common in all the pages which are made in PHP.. The sidebar and the header are in an html..

But when i include them in my current pages(the one made in PHP) than the style sheets of both clash and the required output is not generated..

Plz Help..
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MeeraKotecha is offline Offline
15 posts
since Feb 2007
Feb 22nd, 2007
0

Re: Manage Styles...

Can you give us a screenshot of how they look like after you have included it in you PHP? and if possible a snippet of the code where you inserted the sidebar and headers.
Reputation Points: 12
Solved Threads: 3
Light Poster
jblacdao is offline Offline
37 posts
since Jan 2007
Feb 23rd, 2007
0

Re: Manage Styles...

hello..
I have an attachment with this message...
Plz kindly refer it..


It explains all my problem..
Plz help soon...
Attached Files
File Type: doc Doc1.doc (57.5 KB, 21 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MeeraKotecha is offline Offline
15 posts
since Feb 2007
Feb 27th, 2007
0

Re: Manage Styles...

Are you using similar IDs in each style sheet? Each element should have an id which sepearates it from everything else.

This is all I could think of at the moment.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
WhiteLeo is offline Offline
16 posts
since Feb 2007
Feb 28th, 2007
0

Re: Manage Styles...

Hi.. I used different id's in all the files..

but couldnt get the problem..
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MeeraKotecha is offline Offline
15 posts
since Feb 2007
Feb 28th, 2007
0

Re: Manage Styles...

Hi.. I used different id's in all the files..

but couldnt get the problem..
Can you post the sources both of the 2 css files and the 2 pages you use?
Will take a look on it and advise.
Reputation Points: 21
Solved Threads: 26
Posting Whiz in Training
Rhyan is offline Offline
240 posts
since Oct 2006
Mar 5th, 2007
0

Re: Manage Styles...

Hello..
M extremely sorry for the late reply..

I am attaching all the files which are having the problem..
When i run the menu.php the stylesheet of it and sidebar.php conflicts..

Kindly have a look..

In this current attachments i am facing problem uploading the style.css and emx_nav_left.css files so have renamed it to .php resp...
So even u kindly rename the files to style.css and emx_nav_left.css resp..

Thank u...
Attached Files
File Type: php menu.php (3.2 KB, 19 views)
File Type: php finalside.php (3.5 KB, 20 views)
File Type: php styles.php (7.2 KB, 15 views)
File Type: php emx_nav_left.php (1.2 KB, 15 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MeeraKotecha is offline Offline
15 posts
since Feb 2007
Mar 5th, 2007
0

Re: Manage Styles...

Hello..
M extremely sorry for the late reply..

I am attaching all the files which are having the problem..
When i run the menu.php the stylesheet of it and sidebar.php conflicts..

Kindly have a look..

In this current attachments i am facing problem uploading the style.css and emx_nav_left.css files so have renamed it to .php resp...
So even u kindly rename the files to style.css and emx_nav_left.css resp..

Thank u...
I have looked in your code and it is completely messed up, my friend!

1. You have never attached the stylesheets to your pages. You have used in-line styles instead, that are messing the whole thing.
2. You have attached the style on the wrong place - you are adding styles inside the <body></body> element. Please note you have to add the <style ...></style> definitions in <head></head> section, not in body.
3. You are trying to include a page that has html head and body elements, so this results in conflicts with both pages. Note you are trying to include the second page before setting the headers of the first page, so it gets completely messed up.

I can do it for you, but you will never learn if you don't do it, so I will give you a short guide, and you have to fix it by yourself. So, start like this:

1. Edit your MENU.PHP file. Make the structure like this:
1. Add html opening tag.
2. Add <head> tag
3. Add meta tags for content
4. Add title tags
3. Add the Javascript section
4. Add the first css file, that defines styles for this menu.
5. Add the second css file, that defines styles for the second page.
6. Close the </head>.
7. Open the <body>
8. Enter the code of your right-hand menu.
9. After you finished with the right menu add the php include <?php
[php]<?php
include '../sidebar/finalside.php';
$id=$_GET['custid'];
#echo $id;
?>
[/php]
10. Close all elements like div-s.(Dreamweaver should guide you!)
11. Close </body> and </html>

2. Edit your finalside.php removing all tags like <html><head><body>. Leave only the tags that represent your content like <div><table> etc. You don't need the html, head and body section into this file, as it has been already defined in the menu.php.

That's all - it should work if you have done it correctly.
Reputation Points: 21
Solved Threads: 26
Posting Whiz in Training
Rhyan is offline Offline
240 posts
since Oct 2006
Mar 5th, 2007
0

Re: Manage Styles...

thank u a lot..
m new to php.. so ur guidance wil definitely help me..
wil b doin the changes u said 2om frm my work place.. as have got no documents here..
n tan wil get back 2 u..
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MeeraKotecha is offline Offline
15 posts
since Feb 2007
Mar 6th, 2007
0

Re: Manage Styles...

hello sir
we implemented what u said...but still it's showing error...


I have attached the modified file...kindly help...
Attached Files
File Type: php finalside.php (3.0 KB, 16 views)
File Type: php menu.php (11.6 KB, 17 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MeeraKotecha is offline Offline
15 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: NEW PDF File creation issue using PHP
Next Thread in PHP Forum Timeline: zip file upload





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC