SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: Mozilla margins

  1. #1
    SitePoint Zealot Defiant's Avatar
    Join Date
    Feb 2006
    Location
    Durham, UK
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mozilla margins

    Whats the CSS for mozilla margins?

    Cheers.
    Webdesigner in Training
    Currently Studying: PHP

  2. #2
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    ?
    margin-top:1em;
    margin-right:1em;
    margin-bottom:1em;
    margin-left:1em;

    or use this way
    .x{margin:1em 1em 1em 1em;} (top right bottom left)
    Last edited by all4nerds; Apr 3, 2006 at 04:48.

  3. #3
    SitePoint Guru
    Join Date
    Aug 2004
    Location
    Port Sunlight
    Posts
    815
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm sorry I have to comment here. Sure IE sucks, Opera is around as is Netscape, but they are like the also rans at a political election.

    Mozilla, Firefox or Mozilla Firefox, is a web browser too, they all have the same css spec as to how you create margins.

    Thats the point of CSS, or have I missed the point here?

  4. #4
    SitePoint Guru Dashman's Avatar
    Join Date
    Jan 2006
    Location
    Manchester, UK
    Posts
    627
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thats what I was thinking. surely it all gets declared in the same way?

  5. #5
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, the syntax is the same for all browsers; it's defined by the CSS specification.

    Off Topic:

    IE/Win has some serious margin-related bugs, though: it doubles certain margins on floated elements and doesn't handle collapsing margins correctly.
    Birnam wood is come to Dunsinane

  6. #6
    SitePoint Zealot Defiant's Avatar
    Join Date
    Feb 2006
    Location
    Durham, UK
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so whats the point of -moz-margin-start, etc

    and all the other CSS that starts with -moz?
    Webdesigner in Training
    Currently Studying: PHP

  7. #7
    SitePoint Wizard drhowarddrfine's Avatar
    Join Date
    Aug 2005
    Posts
    3,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That isn't standard CSS and is specific to Mozilla browsers.


Bookmarks

Posting Permissions

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