Announcement

Collapse
No announcement yet.

border attribute with background image? (CSS)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • border attribute with background image? (CSS)

    I can't make it work and I can't find any documentation that says it's possible. Am I going to have to nest tables to make this work?

  • #2
    I dont think you can put a border around a background image, you can have a border part of a class but it will go along the outside of an element

    Comment


    • #3
      I mean the border attribute, not a border.

      Like in the tborder class in vB3:

      border: 1px solid #BF9C39;

      I want a background image instead of the color.

      Comment


      • #4
        Ah, no you cannot have an image as a border that im aware of.

        Comment


        • #5
          Well booger. I have like 6 nested tables already so I don't want to add another.

          Comment


          • #6
            Try this attribute.

            background-image:url(URI);

            I'm not sure this is what you are looking for.
            And this is a sample : http://www.skelm.com/test/test.html

            Comment


            • #7
              I tried that but it didn't work for table borders.

              Comment


              • #8
                Table...OK.
                Would you use CSS border instead of HTML border for tables?
                another sample : http://www.skelm.com/test/test2.html

                Comment


                • #9
                  He wants an image as his border...

                  Comment


                  • #10
                    Oh! I see. But that's impossible.

                    Comment


                    • #11
                      I did it using an outer table with a background image and a cellspacing of 1.

                      Comment


                      • #12
                        Could you please tell us where and how you did this background container?
                        [HOWTO] integrate any vB site into Opera quicksearch

                        Comment

                        Loading...
                        Working...
                        X