PDA

View Full Version : border attribute with background image? (CSS)


Jake Bunce
Tue 13th Apr '04, 10:28pm
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?

Zachery
Tue 13th Apr '04, 10:29pm
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

Jake Bunce
Tue 13th Apr '04, 10:31pm
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.

Zachery
Tue 13th Apr '04, 10:32pm
Ah, no you cannot have an image as a border that im aware of.

Jake Bunce
Tue 13th Apr '04, 10:36pm
Well booger. I have like 6 nested tables already so I don't want to add another. :p

tantei3
Wed 14th Apr '04, 3:18am
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

Jake Bunce
Wed 14th Apr '04, 3:20am
I tried that but it didn't work for table borders.

tantei3
Wed 14th Apr '04, 3:46am
Table...OK.
Would you use CSS border instead of HTML border for tables?
another sample : http://www.skelm.com/test/test2.html

Zachery
Wed 14th Apr '04, 3:54am
He wants an image as his border...

tantei3
Wed 14th Apr '04, 4:06am
Oh! I see. But that's impossible.

Jake Bunce
Wed 14th Apr '04, 4:36am
I did it using an outer table with a background image and a cellspacing of 1.

Tradjick
Sat 8th May '04, 5:08pm
Could you please tell us where and how you did this background container?