SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member cptnox's Avatar
    Join Date
    May 2010
    Location
    Manchester, UK
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to get this effect?

    Hey,

    I'm in the process of coding up a design I've been working on and have encountered a little problem. If you look at the image below which has been taken from this design, you will see the borders around the content areas have more than one color (highlighted with a red box).



    I was wondering, how would I go about adding this effect in code, should I use something like a DIV within a Table, or DIV within a DIV? Or is there a simpler way I could do this, possibly with CSS which would be cross browser compatible?

    Thanks in advance!

    -Chris

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,786
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    CSS

    inset or outset for the border-style
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Member cptnox's Avatar
    Join Date
    May 2010
    Location
    Manchester, UK
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, really that simple? Thanks a lot for the fast reply!

    EDIT: I actually found that groove seemed to work better with this effect, however it only displays it this way at the top and left sides of the content area. I guess I can live with that


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
  •