Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Weird display errors


Weird display errors

Reply
  #1 (permalink)  
Old 01-30-10, 10:55 PM
FireflyX's Avatar
FireflyX FireflyX is offline
Newbie Coder
 
Join Date: Nov 2009
Location: Stockton, UK
Posts: 37
Thanks: 8
Thanked 0 Times in 0 Posts
X_X Weird display errors

Hi all,

I seem to be getting some strange display errors with a website which I do not know how to fix. Thing is most of the time the site displays correctly but... about 2 times out of 10 it doesn't. So best way for me to explain this is to make a little picture

http://img246.imageshack.us/img246/5967/weirderrors.png

Now the left side of the image is what the site looks like correctly but the right side where things are stretched which happens sometimes when you visit that page. So anyone able to help me out on this one?

-Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-30-10, 11:59 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Which browsers?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-31-10, 11:19 AM
FireflyX's Avatar
FireflyX FireflyX is offline
Newbie Coder
 
Join Date: Nov 2009
Location: Stockton, UK
Posts: 37
Thanks: 8
Thanked 0 Times in 0 Posts
I've tested in both Firefox 3 and IE 8 and it's the same in both.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 01-31-10, 02:21 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
You could do a view source of both the correct state and the incorrect view and compare them.

Also, have you validated the code at w3c.org?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 01-31-10, 03:11 PM
FireflyX's Avatar
FireflyX FireflyX is offline
Newbie Coder
 
Join Date: Nov 2009
Location: Stockton, UK
Posts: 37
Thanks: 8
Thanked 0 Times in 0 Posts
There is no difference in the source code and I have validated the site and all I got was the usual errors telling me things like I can't use the "valign" property and I need <p> tags in certain places.

I have actually done this check on nearly every page on the site and every time the site messes up there is actually a form button which seems to occasionally make a gap below itself. I don't know how this will work out but I'm going to try and give forms a bottom margin of 0 and see if that makes a difference.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 01-31-10, 08:23 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Do you want to post a link to it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 02-01-10, 09:00 AM
FireflyX's Avatar
FireflyX FireflyX is offline
Newbie Coder
 
Join Date: Nov 2009
Location: Stockton, UK
Posts: 37
Thanks: 8
Thanked 0 Times in 0 Posts
Ok making the margin 0 on forms seems to have worked but my only other issue is the fact that I gave images a -3px bottom margin to take away that white space on the bottom but this seems to only work when it feels like it so I need to seek an alternative method of doing this. I've done some searching and there seem to be a few methods around this problem. Although making the image a block element would seem the obvious one it is no use for when I want text next to the image so what's the best thing to do in this situation?

-Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 02-01-10, 09:22 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
Do you have Firebug?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 02-01-10, 05:09 PM
FireflyX's Avatar
FireflyX FireflyX is offline
Newbie Coder
 
Join Date: Nov 2009
Location: Stockton, UK
Posts: 37
Thanks: 8
Thanked 0 Times in 0 Posts
Indeed I do but I'm not sure where this is going
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #10 (permalink)  
Old 02-01-10, 08:33 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
You can use the 'Inspect Element' and layout features to figure out how the dimensions are being set.

There could be some very subtle CSS collision.

Other options would be to put some style tags after all the CSS, setting margins, borders, padding, and background - which will let you see the dimensions, then you can backtrack through the CSS until you see what's happening.

If it was a simple problem, I'm sure you would have resolved it by now. These are brute force ways to pursue it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
The Following User Says Thank You to wirehopper For This Useful Post:
FireflyX (02-02-10)
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP RSS feed display weird characters! katwright PHP 5 08-10-07 07:31 AM
Display errors while "display_errors=off" dave111 PHP 1 02-24-06 11:26 AM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 11:15 AM


All times are GMT -5. The time now is 07:19 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.