Help coding for Firefox

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

Help coding for Firefox

Postby Kireihana » Fri Mar 25, 2005 11:33 am

I just started using Firefox and realized that my site looks horrible with it. Is there any way to adjust the coding to make it compatible with both IE AND Firefox?

http://manga.silver-essence.net/updates.php
User avatar
Kireihana
 
Posts: 761
Joined: Sat Feb 14, 2004 7:44 pm
Location: Tennessee

Postby shooraijin » Fri Mar 25, 2005 2:08 pm

Several things become immediately apparent:

- A lot of your colours have no # in front. This is probably not the (whole) problem, but it doesn't help (i.e., #006000, not 006000).

- All CSS properties in a <style> tag should end with a semicolon ( ; ). You don't do this consistently.

- Your font in the tagboard is too big in Firefox because IE and Firefox use a different dpi. IE likes to use a 96dpi (for some reason) font display, while everything else uses 72dpi. For this reason, avoid using px to determine font size (your style sheet has a 10px in there, which is the problem, I think). Instead, try using em, like 0.5em for a smaller font (1 em = "default size") to make it more relative to the default. Look at this page: http://www.bigbaer.com/css_tutorials/css_font_size.htm

Hope this gets you started.
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby Kireihana » Fri Mar 25, 2005 3:30 pm

Thanks, that's a huge help. I thought you only had to use "#" in the StyleSheets, but I guess not. I need to stop being lazy with the html. :eyeroll:
User avatar
Kireihana
 
Posts: 761
Joined: Sat Feb 14, 2004 7:44 pm
Location: Tennessee

Postby shooraijin » Fri Mar 25, 2005 5:41 pm

Let me know when you make the changes, and I'll take another look if it's still not working.
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby Kireihana » Sat Mar 26, 2005 9:54 pm

Okay I got the background color working. All I did was change it to CSS, rather than using the bgcolor attribute.

But the tagboard. I went into the tag.css and changed the fonts to 0.5 em but it didn't change anything. I wonder why because there are no problems with the font size in the taboard inputs and textarea, where I used "10px" for both.

I guess Mozilla doesn't support CSS filters? :forehead:
User avatar
Kireihana
 
Posts: 761
Joined: Sat Feb 14, 2004 7:44 pm
Location: Tennessee

Postby shooraijin » Sun Mar 27, 2005 9:56 pm

CSS filters?
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby Fsiphskilm » Mon Mar 28, 2005 3:38 am

Yes, IE
Last edited by Fsiphskilm on Sun Jan 15, 2017 8:31 pm, edited 1 time in total.
I'm leaving CAA perminantly. i've wanted to do this for a long time but I've never gathered the courage to let go.
User avatar
Fsiphskilm
 
Posts: 3853
Joined: Mon Nov 03, 2003 12:00 pm
Location: USA

Postby Kireihana » Tue Apr 12, 2005 7:16 pm

shooraijin wrote:CSS filters?


Like filter:glow(offx=1px offy=1px.... etc. There are a lot of them for making glowing text, dropshadows, and other effects. They don't seem to show up in Mozilla so I was guessing that the browser doesn't support them.
User avatar
Kireihana
 
Posts: 761
Joined: Sat Feb 14, 2004 7:44 pm
Location: Tennessee

Postby shooraijin » Wed Apr 13, 2005 9:10 pm

Oh, yes. Correct, filters are an MSIE-ism and are not part of the CSS standard.
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby Knives » Wed Apr 20, 2005 12:56 pm

Kireihana wrote:I just started using Firefox and realized that my site looks horrible with it. Is there any way to adjust the coding to make it compatible with both IE AND Firefox?

http://manga.silver-essence.net/updates.php

Ummn your site got hacked!
User avatar
Knives
 
Posts: 802
Joined: Thu Nov 27, 2003 4:00 am
Location: Indiana

Postby shooraijin » Wed Apr 20, 2005 1:28 pm

Actually, no, she didn't get hacked per se, but she *will* need to pull the first entry in the comments box out (that's where the redirect is coming from). Some joker put in an <iframe> tag to force people over to his site. If there is a way for you to disable HTML in your shoutbox, I strongly suggest you do it, or this (or worse) will happen again!
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby Kaligraphic » Wed Apr 20, 2005 10:06 pm

Yeah, strip out all HTML code. But first, email google with the full content of the entry - including the specific URLs for the ads - because whoever put that in is making money off of it, and my reading of the Terms of Service for Google ads would indicate that it's in violation. Report it to Google, and let them cut the jerk's income. (he's probably done it on other sites, too.)

*edit* I have submitted a report to Google - still send your own report, but here's the body of the message that I gave them, minus the URLs I specifically don't want to link to:

One of your customers is taking advantage of the poor input-filtering of certain shoutbox code to place iframes on other people's sites, which display and redirect to his own page. This technique is used with the aim of displaying his google ads on sites over which he has no legal or administrative authority. My reading of your Terms of Service (a quick scan reveals from section 13 "Representations and Warranties. You represent and warrant that ... (b) You are the owner of each Site or that You are legally authorized to act on behalf of the owner of such Site(s) for the purposes of this Agreement and the Program;") indicates that this practice is not permitted; thus I wish to inform you of its use in this situation.

The redirect forces the user away from their desired website and onto (removed to avoid autolink)

A URL from a Google ad on that page is (removed to avoid autolink)

I have noticed this on a site maintained by an acquaintance of mine - you can find the particular page at http://manga.silver-essence.net/updates.php
I have advised her also to report this, as it is her site which was, essentially, defaced by this tactic.

I understand that Google is trying to set itself apart from the bulk of the "spam-for-cash" advertisers, but such behavior as this person is illustrating seems to go against the spirit of what you are trying to accomplish. I feel confident that this matter will be dealt with in a swift and appropriate manner.
*/edit*
The cake used to be a lie like you, but then it took a portal to the deception core.
User avatar
Kaligraphic
 
Posts: 2002
Joined: Wed Jul 21, 2004 12:00 pm
Location: The catbox of DOOM!


Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 189 guests