Page 1 of 1
PHP code not working in FireFox browser
Posted: Thu Jul 23, 2009 11:01 am
by drdokter
Can someone please tell me why the link below appears all messed up in FireFox but is fine in Internet Explorer?
http://ap.com.msu.edu/index2.php
Re: PHP code not working in FireFox browser
Posted: Thu Jul 23, 2009 11:09 am
by jackpf
That's CSS, not PHP.
Re: PHP code not working in FireFox browser
Posted: Thu Jul 23, 2009 12:40 pm
by drdokter
can you tell me then, what could be wrong in the css?
Re: PHP code not working in FireFox browser
Posted: Thu Jul 23, 2009 1:05 pm
by jackpf
Well, it looks like the two images are overlapping.
I reckon you should either make them both one image, or specify heights for them both.
Re: PHP code not working in FireFox browser
Posted: Thu Jul 23, 2009 1:17 pm
by drdokter
Thanks, I will try that. But, isn't there any way to do it in the PhP file instead? Only this index page will have the two overlapping graphics, so I don't want the css changed.
I should probably name the css code in the css file and call it up in php?
Never done that, but I will try to figure it out.
Re: PHP code not working in FireFox browser
Posted: Thu Jul 23, 2009 1:20 pm
by jackpf
You can use inline styles.
Re: PHP code not working in FireFox browser
Posted: Fri Jul 24, 2009 7:10 am
by drdokter
Can ya give me just one example of an inline spss for a banner image?
Re: PHP code not working in FireFox browser
Posted: Fri Jul 24, 2009 7:18 am
by jackpf
Code: Select all
<style type="text/css">
img.banner
{
height: 100px; /*or whatever height the image is*/
}
</style>
<!--and then for the image you'd do-->
<img class="banner" src="#" />
Something like that

Google has plenty of examples....
Re: PHP code not working in FireFox browser
Posted: Fri Jul 24, 2009 7:42 am
by drdokter
Gee thanks. So, this is a great place for me to learn PHP. How does this forum work? You just sit there and answer people's questions? How do you earn a living?
Re: PHP code not working in FireFox browser
Posted: Fri Jul 24, 2009 8:00 am
by jackpf
Well...I occassionally get help here, and I think it's only fair to help other people in return.
Besides, by helping other people, you often help yourself. By researching something someone's having trouble with, you'll often find a solution which you never thought of before, and can in fact be implemented in your own code.
And I'm only 16 lol. Anyways, I'm actually looking for a job right now...I normally work at my school as an IT technician, but they can't afford me this year (stupid recession), so I need a job somewhere else...
I've just finshed my GCSE's, so I have a lot of free time since I don't go to school any more.
But yeah, this is a good place to learn. Don't forget to use google to your advantage first though :)