SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    What a twist! Kings's Avatar
    Join Date
    Jul 2002
    Location
    The Netherlands
    Posts
    954
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Negative values for margins

    I'm using negative values for margins, e.g
    .navigation
    {
    MARGIN-TOP: -6px;
    MARGIN-BOTTOM: -6px;
    BACKGROUND-COLOR: #BDCDF2;
    HEIGHT: 0px;
    }
    Is this considered correct CSS? If not, is there another way of doing this?

    Thanks!
    Dennis Pallett - NoCertainty - My Personal Weblog
    The Web Network: ASPit | PHPit | WebDev-Articles
    Blogs: TalkFones | Holidayzer | PHPit Blog

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Negative margins are AOK! :-)
    Negative values for margin properties are allowed, but there may be implementation-specific limits.
    From: http://www.w3.org/TR/REC-CSS2/box.ht...gin-properties

    ~~Ian

  3. #3
    What a twist! Kings's Avatar
    Join Date
    Jul 2002
    Location
    The Netherlands
    Posts
    954
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dennis Pallett - NoCertainty - My Personal Weblog
    The Web Network: ASPit | PHPit | WebDev-Articles
    Blogs: TalkFones | Holidayzer | PHPit Blog

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Just be careful who you do this do.
    http://www.alistapart.com/stories/msn/


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
  •