Mimmicking tables with CSS

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Mimmicking tables with CSS

    Hello.

    Thanks for taking the time to read my query.

    I've basically got in table a page (dark grey) with a panel that sits in it
    (light grey).. this fills the screen, except for a 16px gap around the edge
    which allowed the dark grey to show through.

    Easy with HTML4... <body leftmargin="16" topmargin="16" rightmargin="16"
    bottommargin="16" marginwidth="16" marginheight="16"><table width="100%"
    height="100%" border="0" cellpadding="0" cellspacing="0">.. this structure
    would give me what I wanted (obviously with colours added).

    However I'm trying to reproduce this with transitional xhtml and css. Sooo I
    tried this in the CSS...

    body{
    background-color: #526B75;
    background-repeat : repeat-x;
    background-image: url(../images/top-background.gif);
    font-family: arial, helvetica, geneva, verdana, sans-serif;
    font-size: 12px;
    font-weight: normal;
    padding: 16px;
    margin: 0px;

    }

    #holdall{
    position:relative;
    top: 0px;
    left: 0px;
    width:100%;
    height:100%;
    margin:0px;
    padding:0px;
    background-color: #DCE1E3;
    }

    and some xhtml that roughly boiled down equalled...<body><div id="holdall">
    content</div></body>

    However, although the light grey panel is displayed fine, the height is all
    wrong causing scroll bars to appear. I thought the CSS for the 'holdall' div
    being set to relative would measure the height available within the document
    'body' but it appears not.

    Does anybody have any ideas how to fix this?

    Many thanks,
    Meeesta

    meeesta Guest

  2. Similar Questions and Discussions

    1. one or two tables
      Hello, I'd like to hear what you think about the following - We have an application (database plus software) that is used as a central...
    2. Again tables!
      OK, I uderstood that ID changes Word tables to native ID tables. But what if I need only to change the text in the same table? For example, If I once...
    3. XML and Tables
      Is it possible to put formatting in the XML-file then? So I can generate the format from my program which makes the XML-file... Or can I solve...
    4. SQL tables
      Hello, I am using php to create a form. I would like that forms information to go into a database. When creating tables where the information that...
    5. Look up Tables
      Do you relate look-up table in sql server 2000? Example: MEMBER TABLE STATE TABLE MemberID StateID State ...
  3. #2

    Default Re: Mimmicking tables with CSS

    Why:

    The table works fine for that. Why worry about it?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "meeesta" <webforumsuser@macromedia.com> wrote in message
    news:d6a8qg$pm8$1@forums.macromedia.com...
    > Hello.
    >
    > Thanks for taking the time to read my query.
    >
    > I've basically got in table a page (dark grey) with a panel that sits in
    > it
    > (light grey).. this fills the screen, except for a 16px gap around the
    > edge
    > which allowed the dark grey to show through.
    >
    > Easy with HTML4... <body leftmargin="16" topmargin="16" rightmargin="16"
    > bottommargin="16" marginwidth="16" marginheight="16"><table width="100%"
    > height="100%" border="0" cellpadding="0" cellspacing="0">.. this structure
    > would give me what I wanted (obviously with colours added).
    >
    > However I'm trying to reproduce this with transitional xhtml and css. Sooo
    > I
    > tried this in the CSS...
    >
    > body{
    > background-color: #526B75;
    > background-repeat : repeat-x;
    > background-image: url(../images/top-background.gif);
    > font-family: arial, helvetica, geneva, verdana, sans-serif;
    > font-size: 12px;
    > font-weight: normal;
    > padding: 16px;
    > margin: 0px;
    >
    > }
    >
    > #holdall{
    > position:relative;
    > top: 0px;
    > left: 0px;
    > width:100%;
    > height:100%;
    > margin:0px;
    > padding:0px;
    > background-color: #DCE1E3;
    > }
    >
    > and some xhtml that roughly boiled down equalled...<body><div
    > id="holdall">
    > content</div></body>
    >
    > However, although the light grey panel is displayed fine, the height is
    > all
    > wrong causing scroll bars to appear. I thought the CSS for the 'holdall'
    > div
    > being set to relative would measure the height available within the
    > document
    > 'body' but it appears not.
    >
    > Does anybody have any ideas how to fix this?
    >
    > Many thanks,
    > Meeesta
    >

    Murray *TMM* Guest

  4. #3

    Default Re: Mimmicking tables with CSS

    I'm trying to mix xml elements into the html, so I switched DTD to:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    When you try the 100% table trick with this DTD it doesn't work.

    meeesta Guest

  5. #4

    Default Re: Mimmicking tables with CSS

    Oh. Did you read this?

    [url]http://www.apptools.com/examples/tableheight.php[/url]

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "meeesta" <webforumsuser@macromedia.com> wrote in message
    news:d6addq$3u6$1@forums.macromedia.com...
    > I'm trying to mix xml elements into the html, so I switched DTD to:
    >
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    >
    > When you try the 100% table trick with this DTD it doesn't work.
    >

    Murray *TMM* Guest

  6. #5

    Default Re: Mimmicking tables with CSS

    Thanks Murray.

    That's exactly what I was looking for... gave me the answers I needed.

    Much appreciated.

    Cheers,
    Meeesta

    meeesta Guest

  7. #6

    Default Re: Mimmicking tables with CSS

    You're welcome!

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "meeesta" <webforumsuser@macromedia.com> wrote in message
    news:d6c884$mek$1@forums.macromedia.com...
    > Thanks Murray.
    >
    > That's exactly what I was looking for... gave me the answers I needed.
    >
    > Much appreciated.
    >
    > Cheers,
    > Meeesta
    >

    Murray *TMM* Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139