tags:

views:

1550

answers:

6

I want to set the border of a table to be "1px solid black" except on the bottom, where I want to use an image which provides a pointer into the link - as a visual aid.

Is it possible to set an image as the bottom border when the other borders are regular css.

+1  A: 

I don't think so. You're probably better off adding a <DIV> below the table, give it a black border, a fixed background, and some fixed padding or whatnot (to give it some size).

GreenReign
A: 

You can set the borders like that except the bottom border :

border-top:1px solid black;
border-right:1px solid black;
border-left:1px solid black;

For the bottom border, you can set your image as background of a row maybe.

Canavar
A: 

No. Why don't you try another table row for that purpose?

usoban
Using tables for layout purposes, eh? Tsk, tsk, tsk. ;-)
Treb
I know, I know :)
Ankur
+4  A: 

Try putting the table inside <div class="myTableContainer"></div> and then:

.myTableContainer{
  padding-bottom: 1px;
  background: url(myBorderImage.png) bottom left;
}

This should work well across all browsers.

warpech
Using this class for the last TR element might also work.
Aaron Digulla
+2  A: 

One solution is to style your element with a background image in css and then specify an offset for the background in CSS. The background can poke out from beyond the edge of the element (a div or li element for example). This can be used for many different effects, one being the appearance of a drop shadow using pure css.

Some specifics here:

http://www.alistapart.com/articles/cssdropshadows/

Gordon Potter
A: 

Try putting a below your table then set his style like

.bottomborder {
  height:1px;
  background-image:url("yourImage.png");
}

Should work good.

Edit : and of course border-top, left, right for your table a "solid 1px black"

Clement Herreman