Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    New Coder
    Join Date
    Jun 2008
    Posts
    76
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Annoying height error!

    I'm having a height error in google chrome, and I really can't figure it out it works fine in FF.

    Here is the live version (test):
    http://fier.co.uk/test/index.php

    I'm trying to fix the (our services) on the left. It looks fine in FF but it's messed up in Chrome, I'm not sure how to fix it? Any ideas?

    Alternatively does anyone know how I can write an IF Chrome css hack?
    (don't worry about the right hand side, it's not done yet)

    Thanks!

  • #2
    New Coder
    Join Date
    Jun 2008
    Posts
    76
    Thanks
    11
    Thanked 0 Times in 0 Posts
    I know this is probably a very simple error I'm missing! - I'm going to validate after I fix this bug by the way. Thanks

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Fix the errors in your markup first, see http://validator.w3.org/check?uri=ht...Inline&group=0
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    New Coder
    Join Date
    Jun 2008
    Posts
    76
    Thanks
    11
    Thanked 0 Times in 0 Posts
    it's all verified, the only errors are coming from the twitter script (java) which I have no idea how to fix . But i still have the wierd height error?

  • #5
    New Coder
    Join Date
    Jun 2008
    Posts
    76
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Validates 100% now, woo. Anyone got any ideas on my height error? still can't find the problem source

  • #6
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello Crispy,

    Good job on the valid code!

    I can't see the error in FF, IE8 or IE7 but I do notice that your not clearing your floats in #services. Add a color to that div and you'll see what I mean, like this:
    #services {width:380px; margin-top:54px; line-height:1;background: #f00;}


    Clear the floats by adding overflow: auto; to the CSS for #services. Here's a site that explains how that works.

    Not sure that fixes the issue though.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #7
    New Coder
    Join Date
    Jun 2008
    Posts
    76
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Excavator View Post
    Hello Crispy,

    Good job on the valid code!

    I can't see the error in FF, IE8 or IE7 but I do notice that your not clearing your floats in #services. Add a color to that div and you'll see what I mean, like this:
    #services {width:380px; margin-top:54px; line-height:1;background: #f00;}


    Clear the floats by adding overflow: auto; to the CSS for #services. Here's a site that explains how that works.

    Not sure that fixes the issue though.
    Thanks for the advice, unfortunately It didn't fix the problem . I kind of don't understand clearing floats though, that website seems to be based around adding a border to a div? I added the background but it kind of works how I want it too? Sorry If I don't make sense lol

  • #8
    New Coder
    Join Date
    Jun 2008
    Posts
    76
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Oh, I understand what you mean, didn't fix it though, damn.!

  • #9
    New Coder
    Join Date
    Jun 2008
    Posts
    76
    Thanks
    11
    Thanked 0 Times in 0 Posts
    anyone?

  • #10
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    Crispy, stay on this forum not the other one. Mostly deadheads there but for two or three...and then there's me but I'm only there to make fun of people.

    Look at Safari if you can to see if it's the same. Opera looks like Chrome so I'm wondering if this is a Firefox issue but Excavator said it looks the same in IE7/8. I was doing some hunting around on this but I'm just not used to where to find issues with Chrome yet. This is a strange one.

  • #11
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    btw, looking at the source using Chrome's developer tool, it shows the doctype as the HTML5 doctype. Interesting and I'm wondering how that affects things though it's not supposed to.

  • #12
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    So it looks the same in Safari and Chrome but correctly in FF, Opera and IE
    Last edited by drhowarddrfine; 12-03-2009 at 10:04 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •