View Full Version : Need Advice / Adding A Layer
tomyknoker
08-26-2007, 11:41 AM
Hi all... I have a page which I am working on, it uses a table but I want to add a starburst on the edge of the table, actually breaking out of the table... Could I do this by adding a layer??
techno_race
08-27-2007, 12:16 AM
Yep, you would need a layer for that.
tomyknoker
08-27-2007, 01:28 AM
Ok well that's what I thought so that's good... I've never used Layers, anyone have any code or tutorials? Also the table centers in the screen can I get the layer to always stay in the corner of the table even if the browser is resized?
coothead
08-27-2007, 05:15 AM
Hi there tomyknoker,
here is a basic example...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#wrapper {
position:relative;
width:332px;
margin:50px auto;
}
#wrapper div {
position:absolute;
width:81px;
line-height:50px;
margin-left:284px;
margin-top:10px;
border:1px solid #000;
background-color:#eef;
text-align:center;
}
#wrapper table {
border:2px solid #999;
}
#wrapper td{
width:324px;
height:200px;
border:1px solid #000;
text-align:center;
}
</style>
</head>
<body>
<div id="wrapper">
<div>div</div>
<table id="mytable"><tr>
<td>table cell</td>
</tr></table>
</div>
</body>
</html>
I have highlighted the code relevant to your problem. ;)
coothead
The <layer> element was proprietary to early versions of Netscape, and has been unsupported by anything these last five or ten years.
tech_support
08-27-2007, 10:17 AM
...And it's a surprise that FrontPage(R) still uses them.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.