PHP code not working in FireFox browser

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
drdokter
Forum Newbie
Posts: 21
Joined: Thu Jul 23, 2009 10:57 am

PHP code not working in FireFox browser

Post 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
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP code not working in FireFox browser

Post by jackpf »

That's CSS, not PHP.
drdokter
Forum Newbie
Posts: 21
Joined: Thu Jul 23, 2009 10:57 am

Re: PHP code not working in FireFox browser

Post by drdokter »

can you tell me then, what could be wrong in the css?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP code not working in FireFox browser

Post 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.
drdokter
Forum Newbie
Posts: 21
Joined: Thu Jul 23, 2009 10:57 am

Re: PHP code not working in FireFox browser

Post 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.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP code not working in FireFox browser

Post by jackpf »

You can use inline styles.
drdokter
Forum Newbie
Posts: 21
Joined: Thu Jul 23, 2009 10:57 am

Re: PHP code not working in FireFox browser

Post by drdokter »

Can ya give me just one example of an inline spss for a banner image?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP code not working in FireFox browser

Post 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 :D Google has plenty of examples....
drdokter
Forum Newbie
Posts: 21
Joined: Thu Jul 23, 2009 10:57 am

Re: PHP code not working in FireFox browser

Post 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?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: PHP code not working in FireFox browser

Post 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 :)
Post Reply