Welcome to the Geeks & God Static Archive. Read more »

Help with php

Joined: 11/28/2008

View this page in IE and firefox. Notice the text size difference. The code is.

CODE
<td width='50' align='center'><div class='barbackground' width='190'><div class='bar' style='color:#000000' style='font-size:10px;'>$kills</td>

What have I done wrong?

http://christiangamers.net
One Love, One God, One Way
"Allow me to live today, To give you the praise"

Joined: 11/28/2008
View what page in IE? Could

View what page in IE?

Could you supply more code, at least where your opening and closing php tags are?

Joined: 11/28/2008
You're not using php. It's

You're not using php. It's HTML and CSS.

There's no page link so we can't view the page, it's hard to tell what is wrong. In the code you posted, you've set a TD with a width of 50, but put inside it a div with a width of 190. In the div class="bar" you have used style=" " twice, which is not valid. Put your styles in one.

To your original question, mozilla and I.E. show text sizes differently. Try this page

CWM Post with Helpful Links for Web Design Newbies<

Joined: 11/28/2008
Sorry, typing to

http://christiangamers.net
One Love, One God, One Way
"Allow me to live today, To give you the praise"

Joined: 11/28/2008
This page, like the one I

This page, like the one I just posted about re: centering, has a lot of errors in it. You don't have valid code. You have one complete page, head and body, up at the top, followed by a lot of code, the rest of the page, that isn't within any body tags at all. There are style sheets within the body, and they belong in the head. And so forth.

Try this page and work on building a more correct code source. Then perhaps some of your display issues will be resolved.

CWM Post with Helpful Links for Web Design Newbies<

Joined: 11/28/2008
Thanks WeBBy but I did not

Thanks WeBBy but I did not write the code. Its a script to retrieve BattleField2 stats and display them. I would do much more damage than good...

http://christiangamers.net
One Love, One God, One Way
"Allow me to live today, To give you the praise"

Joined: 11/28/2008
That is what I would like to

That is what I would like to call `html soup`. However, it does look the same for me in both IE and FF, did you figure this issue out?

Joined: 11/28/2008
No not yet, I have had others

No not yet, I have had others check it and say its off center. So ?

http://christiangamers.net
One Love, One God, One Way
"Allow me to live today, To give you the praise"

Joined: 11/28/2008
My bad, I responded with the

My bad, I responded with the right answer to the wrong post.

No the text size seems different on my end from IE and Firefox.

http://christiangamers.net
One Love, One God, One Way
"Allow me to live today, To give you the praise"

Joined: 11/28/2008
Fixed it. Code may not be

Fixed it. Code may not be right but it works... /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />

CODE
<td width='50' align='center'><div class='barbackground' width='190' style='font-size:10px'><div class='bar' style='color:#000000';'>$kills</td>

http://christiangamers.net
One Love, One God, One Way
"Allow me to live today, To give you the praise"