Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Web Site Coding Help

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

Sparks!
Sir Tart-a-lot



Joined: 30 Aug 2003
Karma :

PostPosted: 17:01 - 30 Mar 2011    Post subject: Web Site Coding Help Reply with quote

Just re-designing my works website, currently making the first template and it's pretty much done however I've done something in one of the later edits which is making it display wrong in Firefox and I can't for the life of me work out what it is.

Website is here https://www.walkerelectrical.co.uk/newsitetest/

It displays fine in Internet Explorer but theres a gap on the right side in FireFox Evil or Very Mad it was fine earlier but now has started doing this since I added the image maps for the top menu and the affiliate logos at the bottom.. however if I remove the image maps the problem is STILL there so I don't think it's related to that.

Would appreciate if someone can have a look see what the fook I've done?? Because I'm getting stressed with it, it's holding me up and it's probably something simple! My coding isn't that great by the way, I'm not a pro just winging it! Website is built from scratch in HTML and some CSS written from ground up by myself which is probably why it sucks Laughing
____________________
Current Toys: 06 Yamaha WR250F | Nissan 350Z GT | Tech 4 Homes
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

Charlie
World Chat Champion



Joined: 27 May 2007
Karma :

PostPosted: 19:33 - 30 Mar 2011    Post subject: Reply with quote

Just so you know it also does it in Safari on the Mac as well. Thumbs Up

Good luck sorting it
____________________
Past: Honda x8rs, Honda City fly, Honda Hornet 250, Honda VFR750, Yamaha xt600e.
Current: Honda CBR929RR & Yamaha XT660Z Tenere
 Back to top
View user's profile Send private message You must be logged in to rate posts

Kickstart
The Oracle



Joined: 04 Feb 2002
Karma :

PostPosted: 20:20 - 30 Mar 2011    Post subject: Reply with quote

Hi

Problem is down to stuff further down the table defining the layout of the page. The 2nd row contains another table in the 2nd column (ie, the one defined at 999px wide), but that rows column has 2 columns which is forcing the width wider than 999.

All the best

Keith
____________________
Traxpics, track day and racing photographs - Bimota Forum - Bike performance / thrust graphs for choosing gearing
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Sparks!
Sir Tart-a-lot



Joined: 30 Aug 2003
Karma :

PostPosted: 20:29 - 30 Mar 2011    Post subject: Reply with quote

I have now fixed it! Just needed a bit of a break then looked at it in a new light!

Realised the problem was in the style sheet, I had set a padding element to the content boxes to centre them in the design, this worked fine in IE but displayed wrong in Firefox, I've now put the correct element in and it's displaying fine in both!

Kickstart wrote:
Hi

Problem is down to stuff further down the table defining the layout of the page. The 2nd row contains another table in the 2nd column (ie, the one defined at 999px wide), but that rows column has 2 columns which is forcing the width wider than 999.

All the best

Keith


As above, problem now fixed, but I'd like to improve on my coding where possible, kinda confused at what you mean though? am i needing a rowspan element in somewhere?

I know tables in tables aren't ideal but I couldn't work out how to do that design with CSS so gave up Laughing I chose image maps for the top and bottom images though as I guess that's better than a mass of tables to do the same thing.
____________________
Current Toys: 06 Yamaha WR250F | Nissan 350Z GT | Tech 4 Homes
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

Kickstart
The Oracle



Joined: 04 Feb 2002
Karma :

PostPosted: 20:49 - 30 Mar 2011    Post subject: Reply with quote

Hi

If you look at the table row with the l/h menu and the main image in it there is another table in the centre column (which will force the width of all the centre cells on each row). That table had 2 columns and they forced the width to wider than 999px. I think you have fixed one of those columns widths with your change.

Also worth running it through the html validator to check for any slightly dodgy tags.

All the best

Keith
____________________
Traxpics, track day and racing photographs - Bimota Forum - Bike performance / thrust graphs for choosing gearing
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Sparks!
Sir Tart-a-lot



Joined: 30 Aug 2003
Karma :

PostPosted: 21:38 - 30 Mar 2011    Post subject: Reply with quote

Kickstart wrote:
Hi

If you look at the table row with the l/h menu and the main image in it there is another table in the centre column (which will force the width of all the centre cells on each row). That table had 2 columns and they forced the width to wider than 999px. I think you have fixed one of those columns widths with your change.

Also worth running it through the html validator to check for any slightly dodgy tags.

All the best

Keith


Found it now, didn't seem to be affecting site but changed the 999 figure to 789 so the whole table now totals 999.

I have run it through validator and got it down to 5 errors, but the errors are saying things like "background" "alt" and "height" aren't valid... can't see how I'm meant to get around that Rolling Eyes but code is greatly improved from when I started at least. Thumbs Up

edit...

down to 1 error now, seems a lot of the height tags arent actually needed, works fine without and clears the error.. only error left is the background tag for my expanding tables. guess i'll have a look into doing this with CSS.
____________________
Current Toys: 06 Yamaha WR250F | Nissan 350Z GT | Tech 4 Homes
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

Sparks!
Sir Tart-a-lot



Joined: 30 Aug 2003
Karma :

PostPosted: 22:01 - 30 Mar 2011    Post subject: Reply with quote

Finally, got it compliant! I won a badge for my efforts Rolling Eyes

so now that its fully compliant what does that actually acheieve? does it just mean that it'll display properly on all browsers and does it improve search engine optimization or anything like that?
____________________
Current Toys: 06 Yamaha WR250F | Nissan 350Z GT | Tech 4 Homes
 Back to top
View user's profile Send private message Visit poster's website You must be logged in to rate posts

Kickstart
The Oracle



Joined: 04 Feb 2002
Karma :

PostPosted: 22:10 - 30 Mar 2011    Post subject: Reply with quote

Hi

Makes it more likely to work on a wide range of browsers, but mainly makes it easier to spot other mistakes you put it when you next modify it.

All the best

Keith
____________________
Traxpics, track day and racing photographs - Bimota Forum - Bike performance / thrust graphs for choosing gearing
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts
Old Thread Alert!

The last post was made 15 years, 167 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.08 Sec - Server Load: 0.71 - MySQL Queries: 13 - Page Size: 62.23 Kb