Using CSS to position a table

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eric Wilds

    Using CSS to position a table

    Greetings,

    I'm trying to use CSS to position a table in the top right corner of a
    webpage and not have the table disappear off the screen when the user
    scrolls down.
    Simply, my design is like this:

    <table width=100%>
    <tr>
    <td=30%> </td>
    <td=60%> </td>
    <td=10%> </td>
    </tr>
    </table

    I have tables,images and navigation bars etc. all nested inside the
    first two TD tags. However, in the last TD tag I have table with
    links to other parts of my website. How can I use CSS to stop that
    table from disappearing off the page? I want to keep it in a fixed
    position. I've read a little about absolute and fixed position, but
    can't seem to get it to work. Does anyone have any suggestions?
  • Lauri Raittila

    #2
    Re: Using CSS to position a table

    In article <9f659cd4.03071 31519.1df9e23b@ posting.google. com>, Eric Wilds
    wrote:[color=blue]
    > Greetings,
    >
    > I'm trying to use CSS to position a table in the top right corner of a
    > webpage and not have the table disappear off the screen when the user
    > scrolls down.[/color]

    Why table? {position:fixed ;right:0;top:0} Don't work on IE. You are
    asking on wrong group, this is .html
    [color=blue]
    > Simply, my design is like this:[/color]
    [color=blue]
    > I have tables,images and navigation bars etc. all nested inside the
    > first two TD tags.[/color]

    Seems very stupid design. I think what you have done would not need to be
    wrapped in table.
    [color=blue]
    > However, in the last TD tag I have table with
    > links to other parts of my website. How can I use CSS to stop that
    > table from disappearing off the page?[/color]

    Why would you wan't to do that? It's annoying, IMHO.
    [color=blue]
    > I want to keep it in a fixed position.
    > I've read a little about absolute and fixed position, but
    > can't seem to get it to work. Does anyone have any suggestions?[/color]

    Try different browser and forget whole idea. IE don't handle fixed
    positioning, unless you say it to with JS.

    --
    Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
    Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
    tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

    Comment

    Working...