Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Custom Borders

  1. #1
    New to the CF scene
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Custom Borders

    Hello Everyone,
    I was wondering if it was possible to create a custom border. I want to place text inside a div tag and give the div tag a style that uses an image as the border. Either a repeating image or just one images streched to make the entire border is fine.
    Instead of just lines/dashes/dots that are the default choices for a border. Ss that possible? Any help would be greatly appreciated. Thank you very much!

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,864
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Well, the method is in CSS3, unfortunately we have to wait a little more since no browser is supporting it now!
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Though with some creativity you can accomplish something similar to what you want. I've actually coded something similar for someone a while back, unfortunately they never returned. Hopefully you will and get some use out of it.

    http://www.codingforums.com/showthread.php?t=75868
    Last edited by _Aerospace_Eng_; 09-19-2007 at 07:38 AM.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Possibly by the time everyone is using either Firefox 4 or Internet Explorer 12 you will be able to do that.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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