1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Off Topic HTML Question

Discussion in 'Jailbreak General' started by WillySurvive, Jun 20, 2003.

  1. WillySurvive

    WillySurvive WrongWay

    Joined:
    Sep 2, 2001
    Messages:
    220
    Likes Received:
    0
    If I wanted to make a page with an eighty pixel blank area (frame?) on the left side and the same on the right side with the rest of the display to go in the middle how could I do that? It seems like it should be simple but the html tuts I looked at in the past didn't point out exactly how to do that. Or at least they didn't in a way I could understand.

    I'm using WebFoot as the HTML editor.
     
  2. Birelli

    Birelli meh...

    Joined:
    Oct 14, 2001
    Messages:
    734
    Likes Received:
    0
    For something with that effect I personally would do this:
    Code:
    <html><body>
    
    <table width="80" align="left">Stuff in the left column</table>
    
    <table width="80" align="right">Stuff in the right column</table>
    
    <table>Stuff in the center</table>
    
    </body></html>
    
    (code crunched to save space)
    
    If you want blank side columns then just don't put anything in the left and right side tables.

    I personally have a strong distaste for frames, I instead prefer to do tables like that and if needed on every page just include it on every page using PHP. If you want to use frames or for any web-design stuff I'd recommend http://www.w3schools.com (if you haven't already looked there), it's where I look up all my HTML.
     
  3. WillySurvive

    WillySurvive WrongWay

    Joined:
    Sep 2, 2001
    Messages:
    220
    Likes Received:
    0
    Thank you very much!
     
  4. Birelli

    Birelli meh...

    Joined:
    Oct 14, 2001
    Messages:
    734
    Likes Received:
    0
    It just occurred to me that since you just want blank space (at least I think that's what you mean) on either side, that there is a second (and much more elegant IMO) solution using CSS:

    Code:
    <html><body>
    
    <style>
    .normal { margin-left: 80px; margin-right: 80px; }
    </style>
    
    <span class="normal">Body of the page</span>
    
    </body></html>
    
    Some browsers (maybe all, I'm just not positive about this), also support making the statement:

    Code:
    <style>
    body { margin-left: 80px; margin-right: 80px; }
    </style>
    
    If you do it that way, you don't need the <span> tag to set which style you're using, since just plain "body" as a style is used as the default. Again, w3schools covers the CSS stuff in much more depth.
     
  5. WillySurvive

    WillySurvive WrongWay

    Joined:
    Sep 2, 2001
    Messages:
    220
    Likes Received:
    0
    Thanks again.
     
  6. tarquin

    tarquin design is flawed

    Joined:
    Oct 11, 2000
    Messages:
    3,945
    Likes Received:
    0
    All browsers should support:

    Code:
    <style>
    body { margin-left: 80px; margin-right: 80px; }
    </style>
    If you want stuff to the left & right, use CSS columns.
     

Share This Page