1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Extra Padding On Div's, IE7 STUBBORN!

Discussion in 'CSS' started by smallfishbigmoney, Dec 17, 2007.

  1. #1
    Hey everyone,

    I am working on a new theme,

    here is the link to it: http://www.smallfishbigmoney.com/themedesign/

    As you can see (in IE7) the right sidebar does not want to stick
    to the top, it has some extra padding, PERFECT in FF, Opera 9, Safari...

    I just need it to work in IE7 (the most stubborn of all browsers)...as usual

    Any help is much appreciated,
    thanks a lot,

    Fabien
    Small Fish Big Money Dot Com
     
    smallfishbigmoney, Dec 17, 2007 IP
  2. 3vo

    3vo Peon

    Messages:
    113
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Erm it could be a few things.. try put a few things in like, clear: both; , float: right; :p works for me :)
     
    3vo, Dec 17, 2007 IP
  3. smallfishbigmoney

    smallfishbigmoney Active Member

    Messages:
    176
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Thanks for your help 3vo,

    Will try and see!

    FabZ
     
    smallfishbigmoney, Dec 18, 2007 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #4
    "Failed validation, 146 Errors" could have something to do with it... Being a turdpress template could have something to do with it, using the same ID more than once on a page (which is completely invalid HTML) could have something to do with it, empty UL's that could be rendering as content in one browser but not another could have something to do with it... But one thing that sticks out is comment placement. Comments between floats can really flake out IE - try deleting the 'closing' comments, or move them BEFORE their DIV's and see if that helps.

    Though add in multiple H1's, over the top classitus, clearing DIV's, characters that are invalid for the declared character set, and a whole host of other bad code, and I think you'd be better off throwing that away and starting over with clean semantic markup and separation of presentation from content.... assuming that steaming pile of crap CMS LETS YOU given the amount of rubbish that's hardcoded into it.

    Not to say I think wordpress... no, wait, that IS what I'm saying.
     
    deathshadow, Dec 18, 2007 IP
  5. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #5
    Heh deathshadow.. I had to learn that the hard way... ran into the duplicate character bug because of comments.
     
    soulscratch, Dec 18, 2007 IP
  6. VimF

    VimF Well-Known Member

    Messages:
    307
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #6
    I did too. Back in the days when I had no idea about browser quirks.
     
    VimF, Dec 18, 2007 IP
  7. smallfishbigmoney

    smallfishbigmoney Active Member

    Messages:
    176
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #7
    Thank you for your...very, colourful comments people.
    Help is always much appreciated, and it is really good
    when it is provided with such passion, so you really
    think I should get a new template to muck around
    with, it may delay my design delivery by a couple
    of months but it should be fine,

    Thanks again,
    Kind Regards,
    Fabien
    Small Fish Big Money
     
    smallfishbigmoney, Dec 18, 2007 IP
  8. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #8
    Yeah, that's the OTHER problem you can encounter - both issues involving comments in IE can drive you NUTS the first time you encounter them because the behavior makes no sense. Occasionally I forget about it myself, but I've been trying to force myself to make my close comments as:

    <!-- #container --></div>

    instead of

    </div><!-- #container -->

    Which seems to universally dodge that bullet.
     
    deathshadow, Dec 18, 2007 IP
  9. smallfishbigmoney

    smallfishbigmoney Active Member

    Messages:
    176
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #9
    I cleaned up all the XHTML and CSS, it is now fully valid after being checked by the validator. It is a healthier theme now.

    FabZ
    Small Fish Big Money Dot Com
     
    smallfishbigmoney, Dec 19, 2007 IP
  10. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Wow, I've never heard of the comments/floats bug. Does IE make space for those comments or something? I've never seen this bug (rendered on a page I mean).
     
    Stomme poes, Dec 19, 2007 IP
  11. VimF

    VimF Well-Known Member

    Messages:
    307
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #11
    IE duplicates the last pieces of content of the last float depends on how many comments there are, at least that was what I encountered. You might want to check PIE as they have a good and details article about this.

    And yes it did drive me nuts. :)
    __________________
    ...
     
    VimF, Dec 19, 2007 IP
  12. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #12
    Well, what's happening is IE treats EVERYTHING that opens/closes as an element, even comments. (you can even find a pages comments in the IE DOM!) - IN IE, that element is inline. What happens when you put an inline element between two floats, even if it has no dimensions or content?

    The bug Soulscratch mentioned is harder to understand why it happens - sometimes IE will just start rendering a second copy of a float in completely the wrong place, all because there's a comment between two floats. The demo of my 'images as text' javascript ran into that particular bug, moving the comments took care of it right quick.
     
    deathshadow, Dec 19, 2007 IP
  13. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Jason, it's not WordPress' fault - it's the person who originally coded the theme that the OP is using (and most likely has modified) who is responsible. Most (ok, almost all) WordPress theme designers have NO clue as to how to actually code a Web page anyway, much less a blog template.
     
    Dan Schulz, Dec 19, 2007 IP
  14. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #14
    Sorry Dan, but even your 'clean' theme (which BTW is the BEST WP theme I've ever seen from a code point of view) is loaded down with some problems that are only repairable by digging into the code itself and rewriting wordpress - basically nuetering the upgrade path - or by not calling a good number of it's automated routines basically defeating the POINT of using a CMS in the first place.
     
    deathshadow, Dec 19, 2007 IP
  15. ChaosFoo

    ChaosFoo Peon

    Messages:
    232
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Deathshadow, for those people wanting a blog on their site, if they don't use Wordpress, what do you recommend?

    I have used Wordpress for several projects, and I have been generally happy with it, but I usually end up writing my own theme. I hate having a site that looks like someone else's. :)
     
    ChaosFoo, Dec 19, 2007 IP
  16. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #16
    Textpattern. Much, much easier to customize and more minimalistic than Wordpress IMO.
     
    soulscratch, Dec 19, 2007 IP
  17. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Like what? The wp_list_pages(); function? I'm working on that.

    Go ahead, list what you see "wrong" with WordPress and I'll see what I can do to fix it without breaking the upgrade path. It'll make my clean theme (which will be released to the public at the end of January) that much better.
     
    Dan Schulz, Dec 19, 2007 IP