Delphi For PHP Forums    


Go Back   Delphi-PHP Forums > Website Design > Cascading Style Sheets (CSS)
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

Cascading Style Sheets (CSS) Forum for discussing CSS topics, including applying standardized design concepts to your web pages.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2nd March 2008, 17:14
D4PHP User
 
Join Date: Feb 2008
Posts: 92
aztec is on a distinguished road
Question Problem with a backgroung image

Hello,
I am trying to transfer my actual project with D4PHP

everything is working, except that the background image of the CSS command is not working (the background is still blank!)

here is the CSS part :

div#center {background-image:url(img/background_center.gif); }
div#frame_left {width: 175px;float:left;background-image:url(img/background_center.gif);}
.fond_menu_haut {background-image:url(img/fond_entete_menu.gif);font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-style: italic; font-weight: bold; color: #676799}



here is the structure of my page in the function "StartBody":

echo '<div id="global">';
echo '<div id="header"><div id="logo">';
echo createheader_logo();
echo '</div>';
echo '<div id="pub">';echo createheader_pub();echo '</div>';
echo '<div id="separ_haut"></div>';
echo '<div id="navigation">';
echo create_navigation();
//echo createmenu();
echo '</div>';//fin div navigation
echo '<div id="separ_hautb"></div>';
echo '</div>';// fin header
echo '<div id="center">';
echo '<div id="frame_left">';
echo createmodule_search();
echo createmodule_members();
echo '</div>'; // fin frame left
echo '<div id="content">';
echo '</div>'; // fin content
echo '</div>'; // fin center
echo '</div>'; // fin



somebody know what is wrong with my code

normally it shall work properly as you can see in my old webpage:
http://www.multimedia-net.com

thanks !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2nd March 2008, 19:21
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,480
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

Just to make sure {background-image:url(img/background_center.gif);

and on your original page it is images/background_center.gif

btw original page throws this error

missing ) after condition
if(champ1 != '' and champ2 !='') {\n

and should be &&?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 3rd March 2008, 20:03
D4PHP User
 
Join Date: Feb 2008
Posts: 92
aztec is on a distinguished road
Default

Hello,
yes but for my Delphi project the folder is "img/" so this is not the pb actually

sorry, i could not get what you mean with the error on missing )

thanks for the help if you have idea ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 3rd March 2008, 20:10
D4PHP User
 
Join Date: Feb 2008
Posts: 92
aztec is on a distinguished road
Default

you can check the test code at :
http://www.multimedia-net.com/delphi...edia/index.php

and the CSS code at :
http://www.multimedia-net.com/delphi...css/styles.css

I could not find the error by comparing the code with http://www.multimedia-net.com (which is not from D4PHP)
in one the background is correctly appearing and on the test link above (with above CSS) it does not work
I will get a headache if I continue, hope somebody will have solution
bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 3rd March 2008, 20:23
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,480
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

Quote:
Originally Posted by aztec View Post
Hello,


sorry, i could not get what you mean with the error on missing )
Firebug throws an error in this function at line 47

Code:
function updateChampDisco(champ1,champ2)
46 {
47 if(champ1 != '' and champ2 !='') {
48 field=file('http://www.multimedia-net.com/ajax/get_field.php');
49 pseudobox='pseudobox'+'disco'+field;
50 texte=file('http://www.multimedia-net.com/ajax/update_get_info_disco.php?champ1='+champ1+'&champ2='+champ2);
51 writediv('<div id="'+pseudobox+'" style="cursor:pointer;" onClick="set_edit_titles('+field+')"><span class="violet12px">'+champ+'</span></div>',field);
52 }
53 }
it is looking for the image here http://www.multimedia-net.com/delphi...und_center.gif
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 4th March 2008, 19:57
D4PHP User
 
Join Date: Feb 2008
Posts: 92
aztec is on a distinguished road
Default

you think this function can have consequence on the showing of background image ??

the pb is that in my new test, i don't have this function and it does not work ..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 4th March 2008, 20:46
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,480
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

No that function problem is just in your original page.

Like I said, your css is looking for the background here
Code:
http://www.multimedia-net.com/delphi/multimedia/css/img/background_center.gif
And it is not there. If you put the image in that spot it will work. It may not be where you want it, but it will work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 7th October 2009, 09:14
just Joined!
 
Join Date: Oct 2009
Posts: 1
sugsadfir is on a distinguished road
Default

Good post. I appreciate it
That's pretty good.
Thank you so much for the post. It's really useful.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 04:57.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use