Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-04-2010, 01:00 AM   PM User | #1
cdarrah
New to the CF scene

 
Join Date: Oct 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
cdarrah is an unknown quantity at this point
Chrome & Safari vs FireFox

I'm working on a site for a client of mine. I'm having trouble determining why my elements are showing up differently in different browsers. Can someone please have a look at the following and let me know why everything looks correct in FireFox but not in Chrome or Safari?

follow this link, then click on the "contact" button:
http://www.jimmyjettv.com/shh_its_beta
Attached Thumbnails
Click image for larger version

Name:	Screen shot 2010-10-03 at 7.57.11 PM.jpg
Views:	53
Size:	49.1 KB
ID:	8959   Click image for larger version

Name:	Screen shot 2010-10-03 at 7.59.37 PM.jpg
Views:	51
Size:	48.4 KB
ID:	8960  
cdarrah is offline   Reply With Quote
Old 10-04-2010, 12:14 PM   PM User | #2
martin.psmith
New to the CF scene

 
Join Date: Oct 2010
Location: Cardiff, Wales.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
martin.psmith is an unknown quantity at this point
Hi,

Do you have the source code for the page?

Martin
martin.psmith is offline   Reply With Quote
Old 10-04-2010, 04:02 PM   PM User | #3
cdarrah
New to the CF scene

 
Join Date: Oct 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
cdarrah is an unknown quantity at this point
Code

https://files.me.com/clintdarrah/vlglhd
cdarrah is offline   Reply With Quote
Old 10-04-2010, 05:12 PM   PM User | #4
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,816
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
If I look at the parsed html in Firefox/Firebug, as opposed to that in Chrome/Developer Tools, they are different.

Firefox has the div #contact within a font tag within a span within a paragraph. Chrome has the div as a direct child of #contacter. So, that's why it looks different in the two browsers.

So, fixing it....the validator is throwing an error related to your html - sixth one down: here. It's quite possible that sorting that problem out that will resolve the issue. You have a div (a block element) within inline elements (font,span) and that's the error.

Really, I'd suggest removing all those <font> tags which are deprecated as well. Use css to apply your styling instead,

martin.psmith - we can view the code from the link provided - give Firebug a go if you haven't tried it before.
SB65 is offline   Reply With Quote
Old 10-04-2010, 05:32 PM   PM User | #5
cdarrah
New to the CF scene

 
Join Date: Oct 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
cdarrah is an unknown quantity at this point
great advice. thank you. i'm new to coding, so any advice from those who've been down this path before is quite helpful and much appreciated.

I'll work on making the HTML standards compliant.
cdarrah is offline   Reply With Quote
Reply

Bookmarks

Tags
960 grid, chrome, css, firefox

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 11:54 PM.


Advertisement
Log in to turn off these ads.