Results 1 to 10 of 10

Thread: HTML code help

  
  1. #1
    Imp Zander353's Avatar
    Join Date
    Oct 2009
    Location
    United States - Tennesse
    Posts
    34

    Default HTML code help

    Hey guys i was wondering if you could help me out :/ i have to make a website for a computer class i have and i'm not to savy with HTML code xD. Anyway i was wonder how you could have a place backgound with checkered black and white sides that don't move as you scroll down the screen :/ i know i cant explain this very well but look at the diagram below lol


    xxxxxxxxoooooooooooooooooooooooooooxxxxxxxxx
    xxxxxxxxoooooooooooooooooooooooooooxxxxxxxxx
    xxxxxxxxoooooooooooooooooooooooooooxxxxxxxxx
    xxxxxxxxoooooooooooooooooooooooooooxxxxxxxxx
    xxxxxxxxoooooooooooooooooooooooooooxxxxxxxxx
    xxxxxxxxoooooooooooooooooooooooooooxxxxxxxxx

    x= picture that stays behind "o" picture and doesnt move" o= has all the info and scrolls down as you scroll down.

    well srry if i didnt make much since but ask any question and ill try to answer them to the best of my petty knowledge O_o

    Thx for the help ahead of time

  2. #2
    Hellhound
    Join Date
    Dec 2009
    Location
    USA
    Posts
    625

    Default Re: HTML code help

    So what you are looking for is a non-tiled background that is universal no matter how much you have scrolled down?

    I don't know how to do that, but I know how to upload normal tiled backgrounds that repeat itself. However, you probably know that already...

  3. #3
    Keeper of Keepers dotted's Avatar
    Join Date
    Jun 2009
    Location
    Denmark
    Posts
    1,151
    Gamer IDs

    Steam ID: dotted

    Default Re: HTML code help

    Easy using CSS:

    Code:
    body {
      background-image:url("my/background.png");
      position:fixed;
    }
    This doesnt work in IE6

  4. #4
    Imp Zander353's Avatar
    Join Date
    Oct 2009
    Location
    United States - Tennesse
    Posts
    34

    Default Re: HTML code help

    I'm doing a really poor job of explaining this :/ im looking for 2 pictures on the side that stay the same no matter if you scroll down or up, and im not great with HTML code but i kinda understand how it works ill try what dotted said and thx for the replies

    and if u look back up to the x and o picture above the "o's" are just supposed to be aplain colored background, jope tht helps clear it up :/
    Last edited by Zander353; May 1st, 2010 at 17:16. Reason: forgot something

  5. #5
    Dragon DragonsLover's Avatar
    Join Date
    Aug 2009
    Location
    Quebec
    Posts
    1,490
    Gamer IDs

    Steam ID: dragonslover

    Default Re: HTML code help

    If you want your background picture to be fixed, try this in your CSS file:

    Code:
    body
    {
       background-image: url("path to image");
       background-attachment: fixed;
    }
    I like dragons! They're the center of my life! I'll never forget them...



  6. #6
    Fly dragonfist's Avatar
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    84

    Default No css needed

    There is an HTML tag for it also:
    Code:
    <BODY BACKGROUND="../graphics/...gif" BGPROPERTIES=FIXED>

  7. #7
    Keeper of Keepers dotted's Avatar
    Join Date
    Jun 2009
    Location
    Denmark
    Posts
    1,151
    Gamer IDs

    Steam ID: dotted

    Default Re: No css needed

    Quote Originally Posted by dragonfist View Post
    There is an HTML tag for it also:
    Code:
    <BODY BACKGROUND="../graphics/...gif" BGPROPERTIES=FIXED>
    Eww eww eww, never use that. Calling that HTML is like calling Osama Bin Laden er human, while technically true, few would wanna call him that.

    Nevermind me, that IS NOT actually HTML. And you must use stylesheets for this kind of thing anyways.
    Last edited by dotted; October 21st, 2010 at 05:28.
    "The essence of religion: Fear God and obey God. The quintessence of spirituality: Love God and become another God." -- Sri Chinmoy

  8. #8
    Fly dragonfist's Avatar
    Join Date
    Oct 2009
    Location
    Holland
    Posts
    84

    Default Re: No css needed

    Quote Originally Posted by dotted View Post
    Eww eww eww, never use that. Calling that HTML is like calling Osama Bin Laden er human, while technically true, few would wanna call him that.
    Well, I call him human. Not only that, because he has a beard, he is a lot more human than Tony Blair, George Bush and Barry Davis. What's wrong with you? Are you so stupid, that you believe Newspapers? Well, I can maybe understand that you are a fanatic in believing papal propaganda, Denmark, because you do not know the truth.

    Here a picture of how Osama Bin laden was educated by the USA:

    Be careful in discussing politics with me, you will make a fool of yourself.
    Osama Bin Laden is dead, according to my latest information. I heared he was killed in 2002.

    And BGPROPERTIES=FIXED is a HTML tag, becasuse it can be implemented in the BODY tag. But it only works in Explorer, I should have said that. And I agree in using css, I use it also. I am not sure in what browsers BGPROPERTIES=FIXED, a HTML tag, can become visible in 2010, because I used that tag in the previous century. It didn't work in Netscape back than.

  9. #9
    Awakening Game Master Metal Gear Rex's Avatar
    Join Date
    Sep 2009
    Posts
    5,689

    Default Re: No css needed

    Quote Originally Posted by dragonfist View Post
    Be careful in discussing politics with me, you will make a fool of yourself.
    o rly?

    Sorry. It felt neccessary.
    Dungeon Keeper 2 Patch: With More Balance and Pie [Hiatus]
    Forever Hiatus. Probably. Latest Version: 3.5 w/Levels 1-11 Revised.

    The Awakening: GM Powers Activate!
    Tesonu is napping!

  10. #10
    Keeper of Keepers dotted's Avatar
    Join Date
    Jun 2009
    Location
    Denmark
    Posts
    1,151
    Gamer IDs

    Steam ID: dotted

    Default Re: No css needed

    Quote Originally Posted by dragonfist View Post
    Well, I call him human. Not only that, because he has a beard, he is a lot more human than Tony Blair, George Bush and Barry Davis. What's wrong with you? Are you so stupid, that you believe Newspapers? Well, I can maybe understand that you are a fanatic in believing papal propaganda, Denmark, because you do not know the truth.

    Here a picture of how Osama Bin laden was educated by the USA:

    Be careful in discussing politics with me, you will make a fool of yourself.
    Osama Bin Laden is dead, according to my latest information. I heared he was killed in 2002.

    And BGPROPERTIES=FIXED is a HTML tag, becasuse it can be implemented in the BODY tag. But it only works in Explorer, I should have said that. And I agree in using css, I use it also. I am not sure in what browsers BGPROPERTIES=FIXED, a HTML tag, can become visible in 2010, because I used that tag in the previous century. It didn't work in Netscape back than.
    Yeah 9/11 was an inside job bla bla bla. Don't care. And im perfectly aware the US used Osama and the likes to fight the soviets back in the day. But it seems you have absolutely no clue about Denmark so i suggest you stop before making a fool of yourself.

    Anyways BGPROPERTIES=FIXED is not an HTML attribute, it's a Microsoft proprietary extension of HTML. My main point is though you never ever use HTML (or, as here, non-HTML HTML) for the design and layout of your page. You will always use CSS for this, like so:
    Code:
    body {background: url('bla.png') fixed;}
    "The essence of religion: Fear God and obey God. The quintessence of spirituality: Love God and become another God." -- Sri Chinmoy

Similar Threads

  1. Three Knights
    By Metal Gear Rex in forum DK2 Maps
    Replies: 20
    Last Post: February 26th, 2023, 12:29

Tags for this Thread

Posting Permissions

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