954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Manage Styles...

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..

MeeraKotecha
Newbie Poster
15 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 

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.

jblacdao
Light Poster
37 posts since Jan 2007
Reputation Points: 12
Solved Threads: 3
 

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


It explains all my problem..
Plz help soon...

Attachments Doc1.doc (57.5KB)
MeeraKotecha
Newbie Poster
15 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 

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.

WhiteLeo
Newbie Poster
16 posts since Feb 2007
Reputation Points: 10
Solved Threads: 2
 

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

but couldnt get the problem.. :sad:

MeeraKotecha
Newbie Poster
15 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 

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

but couldnt get the problem.. :sad:

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.

Rhyan
Posting Whiz in Training
240 posts since Oct 2006
Reputation Points: 21
Solved Threads: 26
 

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...

Attachments menu.php (3.19KB) finalside.php (3.5KB) styles.php (7.22KB) emx_nav_left.php (1.16KB)
MeeraKotecha
Newbie Poster
15 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 
Rhyan
Posting Whiz in Training
240 posts since Oct 2006
Reputation Points: 21
Solved Threads: 26
 

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..

MeeraKotecha
Newbie Poster
15 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 

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


I have attached the modified file...kindly help...

Attachments finalside.php (2.97KB) menu.php (11.55KB)
MeeraKotecha
Newbie Poster
15 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 
hello sir we implemented what u said...but still it's showing error... I have attached the modified file...kindly help...

My friend,
Is this what you expect to see? If yes, then I will guide you.

Awaiting

Attachments menu.jpg 37.64KB
Rhyan
Posting Whiz in Training
240 posts since Oct 2006
Reputation Points: 21
Solved Threads: 26
 

yes..
this is exactly what we want..
thank u so much for ur guidance..

MeeraKotecha
Newbie Poster
15 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 
yes.. this is exactly what we want.. thank u so much for ur guidance..


Ok, I have edited what is needed and I have put a lot of comments there, so you should be able to read it.

Note that the way I have changed things, you need to store them in the same dir, all 3 files together. If you change them in different folders, you have to change paths to one another.

Stick to the books, you have a lot to read about css, html/dom and php. You got the idea, now you have to learn how to match all the things together!

Good luck.

P.S I have changed the .css file to .php to avoid problems - you have to rename it back to css.

Attachments menu.php (4.77KB) content.php (1.95KB) your_styles.php (8.75KB)
Rhyan
Posting Whiz in Training
240 posts since Oct 2006
Reputation Points: 21
Solved Threads: 26
 

Thank u vry vry much..
We would be definitely goin thro more books..

Good Luck 2 u 2..

MeeraKotecha
Newbie Poster
15 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You