Results 1 to 6 of 6

Thread: Need Advice / Adding A Layer

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need Advice / Adding A Layer

    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??

  2. #2
    Join Date
    Feb 2007
    Location
    🌎
    Posts
    528
    Thanks
    10
    Thanked 10 Times in 10 Posts
    Blog Entries
    2

    Default

    Yep, you would need a layer for that.
    ....(o_ Penguins
    .---/(o_- techno_racing
    +(---//\-' in
    .+(_)--(_)' The McMurdo 500

  3. #3
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  4. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there tomyknoker,

    here is a basic example...
    Code:
    <!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

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The <layer> element was proprietary to early versions of Netscape, and has been unsupported by anything these last five or ten years.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    ...And it's a surprise that FrontPage(R) still uses them.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •