HTML Commands

Discussion in 'Web Design & Coding' started by Piett, Nov 26, 2002.

  1. Piett

    Piett ...will circle this city

    Messages:
    528
    Location:
    Calgary, Alberta
    I'm trying to figure out how to trim some of the extra space on an html file that i am currently using. i'm using the file as my active desktop file, and when i add it to my desktop i can't get rid of some of the dead space that appears on the right of the menu's that i have. is there some sort of parse, or trim command that will snap the margin to the longest point? if any one knows what command to add, and where to add it to get rid of the extra space on the right, please don't hesitate to post it.

    Thanks,
    Piett
     
  2. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    Not really sure what you mean. There aren't really any "commands" in HTML. Do you mean a table is too wide? Maybe a screenshot would clear things up. :)
     
  3. sboulema

    sboulema Moderator

    Messages:
    2,846
    Location:
    Amstelveen, The Netherlands
    dunno for sure but do you mean the margins of the html file... If so then put the following code in the body tag:

    topmargin="0" leftmargin="0"
     
  4. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Yup, the top/left/right/bottom margin in the body tag should do the trick.

    <body topmargin="0" rightmargin="0">
     
  5. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    that would do it. by default it is ~5%
     
  6. albybum

    albybum Penguin Rancher

    Messages:
    280
    Location:
    Elizabethton, TN
    If you wanted to use this ability for web pages and not just active desktop elements you could use
    <body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"> and those last two attributes of the body tag would eliminate the space in Mozilla based browsers.

    However, none of those attributes are supported in the current version of HTML and they are not XHTML compliant.

    If you wanted to get this effect and still be in the good, you need to use a stylesheet and use the code:

    BODY {
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    }
     
  7. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    The file is going to be placed on an Active Desktop therefore won't be rendered with Mozilla and doesn't need to comply to XHTML standards.

    Still, a valid point a good tip :happy:
     
  8. Piett

    Piett ...will circle this city

    Messages:
    528
    Location:
    Calgary, Alberta
    thanks for the replies everyone, appreciate it. okay, i'm attaching a acreenie (don't ask me why i didn't at first :)). The trouble area is over on the right-hand side. there is too much space there for me to fit the menu's down beside my picture. if i change and have the menu's horizontal (like here) there is no excess space on any side of the menu.

    NOTE: Attached screenshot is the problematic one.
     
  9. Piett

    Piett ...will circle this city

    Messages:
    528
    Location:
    Calgary, Alberta
    i should also point out that i have experimented with changing the values of some of the varriables that are in the script that i am using to no avail. that is what makes me believe that i need to use some sort of tags
     
  10. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    although it may not appear that that much space is needed, using those kinds of menus usually results in the layers (or div tags) taking up more room than it appears. you can try adding a <div style="width: 100; height: 100; autoflow type tag, but I would leave it as is and just expand the active desktop window to allow it to have the space it wants.
     
  11. Piett

    Piett ...will circle this city

    Messages:
    528
    Location:
    Calgary, Alberta
    okay, thanks for the input matt.