http://www.webmasterworld.com Welcome to WebmasterWorld Guest from 38.103.63.17
register, login, search, glossary, subscribe, help, library, PubCon, announcements , recent posts, unanswered posts
Subscribe and Support WebmasterWorld
Home / Forums Index / Browser Side World / CSS
Forum Library : Charter : Moderators: DrDoc & Robin reala & SuzyUK

CSS

  
Adding image as border of the table
priyan_kj


#:3630224
 10:49 pm on April 18, 2008 (utc 0)

Hi

How to add image as boder of the table. I tried with the below code but only top border is coming. is there any other way to get all four border as an image. Any help would be appreciated.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<meta name="Content-Style-Type" content="text/css">
<title>Conforming HTML 4.01 Template</title>
<link rel="stylesheet" type="text/css" href="" />
<style type="text/css">
html, body {
margin:0;
padding:0;
border: 0;
background:#fff;
color:#000;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size:1em;
}

#vert_border {
heigth : 300px;
padding: 5px 0px;
background-image: url('Border_leftSide.gif');
BACKGROUND-REPEAT: repeat-X;

}

#hoz_border {
width:300px;
padding: 0px 5px;
background-image: url('Border_topSide.gif');
BACKGROUND-REPEAT: repeat-X;

}

</style>
<script type="text/javascript">
</script>
</head>
<body>

<div id="hoz_border">
<div id="vert_border">
<table border="0" summary="x" style="width:300px;margin-top:10px" >

<tr><td>x</td><td>y</td><td>z</td></tr>
<tr><td>x</td><td>y</td><td>z</td></tr>
<tr><td>x</td><td>y</td><td>z</td></tr>

</table>
</div>
</div>
</body>
</html>

lavazza


#:3630292
 3:57 am on April 19, 2008 (utc 0)

try spelling it
height
not
heigth

swa66


#:3630578
 5:28 pm on April 19, 2008 (utc 0)

Images as borders is something that should come in CSS3.
Think safari already supports it.

 

Home / Forums Index / Browser Side World / CSS
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of WebmasterWorld Inc.
© WebmasterWorld Inc. / SearchEngineWorld 1996-2008 all rights reserved