Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default VERY Basic Question :)

    My layout consists of:

    • top banner area
    • left hand side navigation area
    • central main content area
    • right hand side bulletin area
    Ok all my pages will be exactly the same except for the main content area. Is this where an iframe comes in?

    If so, can anyone explain how I don't have to build every page from scratch (ie: I just put up the main content on each page rather than the banner, navigation AND bulletins)?


    +rep for useful help .

  2. #2
    Join Date
    Apr 2006
    Location
    wolvo init lol.
    Posts
    2,272
    Tokens
    0

    Latest Awards:

    Default

    have a read through that
    http://www.yourhtmlsource.com/frames/inlineframes.html
    of course the first example on there is customisable so if you want to change it use the following:

    frameborder="0"
    setting the border to 0 gets rid of it, allowing the page to seamlessly integrate with your main page. Possible values are 1 (yes) and 0 (no), you cannot give it a bigger border.

    marginwidth="x"
    adds a margin to the sides of the framed page.

    marginheight="x"
    adds the margin to the top and bottom of the framed page. Added to any margins you've given the pages in their <body> tags.

    scrolling="no"
    if the framed page is too big for the dimensions you've specified a scrollbar will appear. This attribute will stop this from happening.

    align="right"
    like the image attribute, this will affect how the text around the frame aligns itself.

    hspace="x"
    sets a margin of white space around the frame to the sides.

    vspace="x"
    sets a white-space margin to the top and bottom.
    Last edited by reindeer.; 22-12-2007 at 10:15 AM.

  3. #3
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Cheers, +rep .

  4. #4
    Join Date
    Apr 2006
    Location
    wolvo init lol.
    Posts
    2,272
    Tokens
    0

    Latest Awards:

    Default

    its okay

  5. #5
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Right, so would my main content be in the iframe or would it be the rest of the page without the main content?

  6. #6
    Join Date
    Nov 2007
    Posts
    753
    Tokens
    0

    Default

    Your wanting 3 columns am i right?
    Why dont you use css & divs?
    Publishing free website designs, watch this space!
    Total number of designs published: 0
    Current work in progress: Landscape Design


  7. #7
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    Use DIVs styled with CSS, or PHP includes/AJAX (PHP includes & AJAX are more like iframes - DIVs are a way to code your actual layout).
    Last edited by loserWILL; 22-12-2007 at 02:05 PM.

  8. #8
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    Don't use iframes, use PHP includes for everything bar the content [use a different page for each content page].
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  9. #9
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Thing is, I don't have a clue what that is - I just got the hang of iframes lol.

    While I'm still using them, does anyone know why you have to have a margin? The minimum is 1px so I've got an annoying 1px thick white line going througb everything :@.

  10. #10
    Join Date
    Oct 2006
    Posts
    12,405
    Tokens
    0

    Latest Awards:

    Default

    Oh nvm, it lets me set it at "0" now :rolleyes:.

Page 1 of 2 12 LastLast

Posting Permissions

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