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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Why is there padding in my layout?

    Hi everyone!

    I have a question for you and I hope there's someone out there that can take a few seconds to look over some code on my web site... here is one example page:

    [I've removed the URL so that search engines don't pick up my site and know that I had a question about CSS )]

    It looks fine in: IE8, FF, Chrome, etc.

    It looks BAD in IE7. I haven't tested it in IE6.

    Can anyone tell me why padding still exists even though I thought I changed all padding to 0px?

    Thank you!

    Disclaimer: I know, I know... Tables are not the 'in' thing to use anymore when designing web sites, but I basically dropped a web designer and took over designing this web site myself (I haven't done web sites in over three years) and need to get it launched within one week so I didn't have time to learn all about DIVs... I will redesign it down the line but for now, I just have a table that needs some help, and if anyone can assist (I'm sure it's something simple), I will be endlessly grateful!
    Last edited by thefoxbox; 05-18-2010 at 04:07 AM.

  • #2
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    Quote Originally Posted by thefoxbox View Post
    It looks fine in: IE8, FF, Chrome, etc.

    It looks BAD in IE7. I haven't tested it in IE6.
    IE8 does not work like IE7 which doesn't work like IE6 and none of them work like the other far more modern browsers.
    Can anyone tell me why padding still exists even though I thought I changed all padding to 0px?
    It's not padding but any of many other things, such as vertical alignment, justification, line-height and so on. I don't have IE available to look right now.
    I didn't have time to learn all about DIVs
    DIV is merely one of the HTML elements like all the others and not any special case having been around since HTML3.2.

  • #3
    New to the CF scene
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Insightful response. Thanks for the info. I just started removing CSS until I figured out what broke it. I will definitely convert all of it to DIVs because this is not the way to code forever. Thanks again!

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I will definitely convert all of it to DIVs because this is not the way to code forever.
    No, as said above, <div> is just one of the html elements. Using <div>s all over your page may cause divitis! Your ultimate aim should be to make a semantic code.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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