ok,if theres a god of css, i'll pray!

Discussion in 'HTML' started by Paul Watt, Apr 5, 2006.

  1. Paul Watt

    Paul Watt Guest

    Hi yet again,
    first can I say a big load of thanks to everyone who's replyed to my posts
    so far, I *think* this should be the last.

    I've got the page looking practically perfect in FF but in IE the leftcell
    div covers part of the maincontent div. I tried margin-left:-255px; and this
    fixs it for IE but in FF the div disapears of the page.

    a) is there something i've missed with the posistioning of the leftcell div
    b) is there someway of making FF ignore the margin-left selector in the
    style sheet?


    Paul Watt, Apr 5, 2006
    1. Advertisements

  2. Paul Watt

    Paul Watt Guest

    Ooops forgot the URL: http://www.paulwatt.info/test/turn/ .
    Paul Watt, Apr 5, 2006
    1. Advertisements

  3. Paul Watt

    GreyWyvern Guest

    GreyWyvern, Apr 5, 2006
  4. Paul Watt

    Buzby Guest

    try floating the menu section to the left
    Buzby, Apr 5, 2006
  5. Paul Watt

    Paul Watt Guest

    Hi Grey,

    Why cant everyone use firefox??
    Is there a hack that will allow me have a statement in the stylesheet that
    all other browsers will ignore and only be visible for MSIE? All I need is a
    margin-left:-255px statement and all my worries will be gone.


    Paul Watt, Apr 5, 2006
  6. Paul Watt

    GreyWyvern Guest

    And lo, Paul Watt didst speak in
    Because some of us use Opera :p
    Look up "MSIE conditional comments" and serve MSIE an additional

    GreyWyvern, Apr 5, 2006
  7. Paul Watt

    Toby Inkster Guest

    Sounds like something I've seen before. Try something like:

    * HTML #maincontent { margin-left: -255px; }

    It's a hack, and it won't work in IE 7. (But perhaps the big won't appear
    in IE 7 anyway? One can but hope.)
    Toby Inkster, Apr 5, 2006
  8. Paul Watt

    Jim Higson Guest

    you can write rules like this:

    * html .foo
    { margin-left:-255px;

    IE is the only browser that thinks there is an element above html when it
    looks at css rules, so you can use it for stuff you only want IE to use.
    Jim Higson, Apr 5, 2006
  9. Paul Watt

    Paul Watt Guest

    Got it sorted. I used the "underscore" hack in the end. _margin-left:-255px;
    did the trick

    Thanks to all who helped!

    Paul Watt, Apr 5, 2006
  10. Paul Watt

    JDS Guest

    You already used your last question in an earlier post. Sorry.
    JDS, Apr 5, 2006
  11. Paul Watt

    John Bokma Guest

    Don't use hacks, use conditional stuff if this is an IE thing:
    John Bokma, Apr 5, 2006
  12. Paul Watt

    Paul Watt Guest

    I obey no mans rules, not even my own :p
    Paul Watt, Apr 5, 2006
  13. Paul Watt

    Jim Higson Guest

    But the conditional stuff *is* a hack! It just happens to be a hack that
    Microsoft added on purpose rather than all the ones they allowed by
    What awful URLs MS uses!
    Jim Higson, Apr 6, 2006
  14. Half of it is more of a hack (syntactically invalid) than the other
    half (treated as bona fide comments by web-compatible clients).

    I ought to turn this test-page of mine into something in my main
    hierarchy, but meantime it's:


    which includes some remarks in the issue, and a link elsewhere, which
    may be of use.

    h t h
    Alan J. Flavell, Apr 6, 2006
  15. ie measures the box model differently than the others do. ie measures
    from outside border to outside border. other browsers do it differently
    and the box model ends up smaller in the other browsers.

    here is a flash tutorial on how to fix the box model in ie

    box model hack examples. click on "Chapter 3: Hiding Css From Newer

    also see

    this might be a bit intense for a newbie to follow

    if you still don't understand it join http://www.cssdiscuss.org/ it's a
    css email list. get a throw away email address just for this list.
    you'll get about a dozen emails from them maybe more. they help newbies
    and professionals.
    dwight.stegall, Apr 8, 2006
  16. Paul Watt

    kchayka Guest

    Um, IE6 in standards mode uses the same W3C-standard box model other
    browsers do.

    You shouldn't be using quirks mode anyway, which does use the IE5x box
    kchayka, Apr 8, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.