Coding And Layout Help

Discussion in 'GR Classic Archive' started by flee, Jul 8, 2007.

  1. flee

    flee Well-Known Member

    Posts:
    515
    Likes Received:
    0
    Joined:
    Jan 1, 2007
    Location:
    Virginia
    Im making some templates for sites and forums, If ANYONE know how to code a template or layout help would be appreciated. ;)

    Pm me if u want to help
     
  2. Littlej

    Littlej Well-Known Member

    Posts:
    1,971
    Likes Received:
    0
    Joined:
    Aug 13, 2006
    Here's a reply I made in another thread about how to code a template. This gives a rundown of how to code a template from using CSS and divs, depending on how complex the template is this can get very complicated but if you can do it it's definetely worth spending the time, it'll save a lot of time in future.

    With the container, imagine it sort of like a game of tetris, without styles to change this they'll sort of fall next to each other. So a 800px wide container would mean you can have 200px, 500px, 100px, or 300px, 300px, 200px etc. Any combination you can make so imagine this as your container:

    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|

    So now we want to put in somthing that is say 500px wide (using this: <-----> to demonstrate)

    |<-----> ,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|

    Now add another 100px in:

    |<-----><->,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|

    Still fits, but say we try to add another 500px now:

    |<-----><->,,,|
    |<----->,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|
    |,,,,,,,,,,,,,,,,,,,|

    Since it can not fit into that gap it moves down to the next line, as I said similar to playing tetris with only straight horizontal pieces :P
     
  3. flee

    flee Well-Known Member

    Posts:
    515
    Likes Received:
    0
    Joined:
    Jan 1, 2007
    Location:
    Virginia
    make absolutely no sense to me
     
  4. Renagade

    Renagade Senior Member

    Age:
    36
    Posts:
    9,158
    Likes Received:
    0
    Joined:
    Jan 29, 2005
    Location:
    South Carolina
    If that didn't make sense to you, I suggest finding someone to code it for you rather than doing it yourself.
     
  5. Zohair

    Zohair Formerly zohBOT

    Posts:
    6,128
    Likes Received:
    0
    Joined:
    Dec 18, 2005
    Location:
    Cave
     
  6. flee

    flee Well-Known Member

    Posts:
    515
    Likes Received:
    0
    Joined:
    Jan 1, 2007
    Location:
    Virginia
    ugh...thats why i posted here!

    wow this place is -------. i found a guy already thanks

    ^ 5 credits who ever can guess that lline
     
  7. Morv

    Morv Well-Known Member

    Age:
    35
    Posts:
    3,883
    Likes Received:
    0
    Joined:
    Dec 5, 2005
    Location:
    I want a xlink shirt
    IS IT.. BARBRA STREISAND ?
     
  8. Morv

    Morv Well-Known Member

    Age:
    35
    Posts:
    3,883
    Likes Received:
    0
    Joined:
    Dec 5, 2005
    Location:
    I want a xlink shirt
    i'd like my 5 credits
     
  9. Zohair

    Zohair Formerly zohBOT

    Posts:
    6,128
    Likes Received:
    0
    Joined:
    Dec 18, 2005
    Location:
    Cave
    Is it AWESOME? And yeah give my smex the 5 credits
     
  10. Phili G

    Phili G Well-Known Member

    Age:
    35
    Posts:
    1,498
    Likes Received:
    0
    Joined:
    Oct 5, 2005
    Location:
    England!
    Littlej, you cant just throw code at inexperienced people and expect them to understand it, no matter how well you did explain it.
    Really you need to learn html first then move onto css (thats what I did)
     
  11. Y3K

    Y3K Well-Known Member

    Age:
    35
    Posts:
    208
    Likes Received:
    0
    Joined:
    Jan 2, 2006
    Location:
    México
    Well... I'll take advantage of the topic xD... I have a problem making a template for PunBB... I made a image of background (300x450) and I want it in the bottom of the page always, but I can't align with .css
    Any help please?
     
  12. REclusion

    REclusion Senior Member

    Age:
    37
    Posts:
    657
    Likes Received:
    0
    Joined:
    Apr 6, 2007
    Location:
    florida
    umm post the code and ill see if i can help
     
  13. Phili G

    Phili G Well-Known Member

    Age:
    35
    Posts:
    1,498
    Likes Received:
    0
    Joined:
    Oct 5, 2005
    Location:
    England!
    body {
    background:url(images/bg.gif) no-repeat bottom
     
  14. REclusion

    REclusion Senior Member

    Age:
    37
    Posts:
    657
    Likes Received:
    0
    Joined:
    Apr 6, 2007
    Location:
    florida
    its easier when u can see more then 1 line of code. ad me on msn
     

Share This Page