Manage Styles...

Reply

Join Date: Feb 2007
Posts: 15
Reputation: MeeraKotecha is an unknown quantity at this point 
Solved Threads: 0
MeeraKotecha MeeraKotecha is offline Offline
Newbie Poster

Manage Styles...

 
0
  #1
Feb 22nd, 2007
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..
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 37
Reputation: jblacdao is an unknown quantity at this point 
Solved Threads: 3
jblacdao jblacdao is offline Offline
Light Poster

Re: Manage Styles...

 
0
  #2
Feb 22nd, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 15
Reputation: MeeraKotecha is an unknown quantity at this point 
Solved Threads: 0
MeeraKotecha MeeraKotecha is offline Offline
Newbie Poster

Re: Manage Styles...

 
0
  #3
Feb 23rd, 2007
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, 7 views)
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 16
Reputation: WhiteLeo is an unknown quantity at this point 
Solved Threads: 2
WhiteLeo's Avatar
WhiteLeo WhiteLeo is offline Offline
Newbie Poster

Re: Manage Styles...

 
0
  #4
Feb 27th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 15
Reputation: MeeraKotecha is an unknown quantity at this point 
Solved Threads: 0
MeeraKotecha MeeraKotecha is offline Offline
Newbie Poster

Re: Manage Styles...

 
0
  #5
Feb 28th, 2007
Hi.. I used different id's in all the files..

but couldnt get the problem..
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 232
Reputation: Rhyan is an unknown quantity at this point 
Solved Threads: 24
Rhyan's Avatar
Rhyan Rhyan is offline Offline
Posting Whiz in Training

Re: Manage Styles...

 
0
  #6
Feb 28th, 2007
Originally Posted by MeeraKotecha View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 15
Reputation: MeeraKotecha is an unknown quantity at this point 
Solved Threads: 0
MeeraKotecha MeeraKotecha is offline Offline
Newbie Poster

Re: Manage Styles...

 
0
  #7
Mar 5th, 2007
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, 3 views)
File Type: php finalside.php (3.5 KB, 2 views)
File Type: php styles.php (7.2 KB, 2 views)
File Type: php emx_nav_left.php (1.2 KB, 2 views)
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 232
Reputation: Rhyan is an unknown quantity at this point 
Solved Threads: 24
Rhyan's Avatar
Rhyan Rhyan is offline Offline
Posting Whiz in Training

Re: Manage Styles...

 
0
  #8
Mar 5th, 2007
Originally Posted by MeeraKotecha View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 15
Reputation: MeeraKotecha is an unknown quantity at this point 
Solved Threads: 0
MeeraKotecha MeeraKotecha is offline Offline
Newbie Poster

Re: Manage Styles...

 
0
  #9
Mar 5th, 2007
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..
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 15
Reputation: MeeraKotecha is an unknown quantity at this point 
Solved Threads: 0
MeeraKotecha MeeraKotecha is offline Offline
Newbie Poster

Re: Manage Styles...

 
0
  #10
Mar 6th, 2007
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, 1 views)
File Type: php menu.php (11.6 KB, 1 views)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC