Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS margin-left not taking effect for IE

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #41035

    I’ve added a style tag to a table and had a margin-left that appears on Chrome and FF but not on IE 9. I did the double margin-left with the second one having the “!important” and still it’s not applied.

    #115737
    Paulie_D
    Member

    We’d need to see the table in action. Do you have a link?

    #115832
    Senff
    Participant

    With the code you posted, it should not have a left margin in ANY browser, simply due to margin-left: 0 !important;.

    #115881
    otc
    Participant

    Hello Pressuredat19,

    May I first suggest you use div tags instead of tables and then CSS instead of inline CSS and old HTML that are deprecated.

    If you choose to stick with the table you can still style it using CSS like so

    table {
    position: relative;
    width: 685px;
    height: 46;
    margin:0 auto; /* centers it*/
    margin-left: 0;
    border: 1px solid black;
    }
    td {
    padding: 1px;
    margin:1px;
    }

    This should solve your issues with multiple browsers. If it does not link us what you have :D.

    Good luck

    #115879
    Paulie_D
    Member

    @otc Why are you suggesting divs instead of a table?

    How do you know he isn’t using a table properly?

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.