Ask Experts Questions for FREE Help !
Ask
    wpb30635's Avatar
    wpb30635 Posts: 4, Reputation: 1
    New Member
     
    #1

    Mar 20, 2003, 11:24 PM
    Keeping my background still
    Can anyone tell me if there is a way to keep the background on my webpage from scrolling with the text? I have an image I'd like to use and have the test scroll over it. I'm farely new to HTML so be thorough.

    Thanks
    coreybryant's Avatar
    coreybryant Posts: 134, Reputation: 2
    Junior Member
     
    #2

    Mar 21, 2003, 09:00 PM
    keeping my background still
    You can add this to the opening body statement:
    <body bgproperties="fixed" background="images/background.gif">

    Bgproperties="fixed" is one way to do it. You can also use a style sheet - you place this before the </head>:

    <style type="text/css">
    BODY
    {
    Background: white url('images/background.gif') fixed;
    }
    </style>

    And if you want ths image only once & not tiled:
    BODY
    {
    Background: white url('images/backgrounds/generichdr.gif') fixed no-repeat;
    }
    </style>

    Corey
    wpb30635's Avatar
    wpb30635 Posts: 4, Reputation: 1
    New Member
     
    #3

    Mar 22, 2003, 12:39 AM
    keeping my background still
    Thank you
    badkarma's Avatar
    badkarma Posts: 11, Reputation: 1
    New Member
     
    #4

    Mar 25, 2003, 10:45 AM
    keeping my background still
    Great info Corey, thanks
    badkarma's Avatar
    badkarma Posts: 11, Reputation: 1
    New Member
     
    #5

    Apr 1, 2003, 02:12 PM
    keeping my background still
    What can you do to keep a background image from tiling?
    coreybryant's Avatar
    coreybryant Posts: 134, Reputation: 2
    Junior Member
     
    #6

    Apr 1, 2003, 02:14 PM
    keeping my background still
    You can use this:

    <style type="text/css">
    BODY
    CF_Master's Avatar
    CF_Master Posts: 10, Reputation: 1
    New Member
     
    #7

    Jul 22, 2003, 11:54 PM
    keeping my background still
    Keep in mind this will only work with Microsofts Internet Explorer browser.
    triconanz's Avatar
    triconanz Posts: 3, Reputation: 1
    New Member
     
    #8

    Sep 11, 2003, 10:05 PM
    keeping my background still
    Yes!

    But is there also a way to do this same thing within a table?

    If I want to insert an image in the background of a table and also want only the text to move but not the image... is there a way to do this?

    Or would it be something that would have to be done using frames?
    coreybryant's Avatar
    coreybryant Posts: 134, Reputation: 2
    Junior Member
     
    #9

    Sep 12, 2003, 05:23 AM
    keeping my background still
    Actually it will work in Netscape 6.2 - I did test it on my browser. You can also review here: http://www.blooberry.com/indexdot/cs...ey/colorbg.htm

    In repsonse to triconanz question, there are a couple of ways:
    <html>
    <head>
    <style type="text/css">
    .tbl1
    {
    Background: url('images/back.gif');
    Background-repeat: no-repeat;
    }
    </style>
    </head>
    <body>
    <table border="1" cellpadding="0" cellspacing="0" width="100%" class="tbl1">
    <tr>
    <td width="100%"> </td>
    </tr>
    </table>
    </body>
    </html>

    Is one. You can also use absolute positioning as well.
    bugsmeda's Avatar
    bugsmeda Posts: 1, Reputation: 1
    New Member
     
    #10

    Nov 3, 2011, 03:04 AM
    Once a background is inserted into a page body add bgproperties="fixed", to make the page background fixed.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Keeping turkeys out [ 3 Answers ]

My husband and I have a large garden every year that produces veggies like crazy. (A friend calls our back yard "the Napa Valley of Maine" because the garden does so well.) The one problem is with or corn crop: Wild turkeys come through and knock all the corn stalks over just before the corn is...

Keeping the crunch in your canning... [ 2 Answers ]

undefinedundefinedWhen canning how would one keep the peppers and other vegy's crunchy, this year when I open something I canned 7 month ago I want CRUNCHY not soggy,, HELP!!!! Thanks Ladycanning :o

Keeping the House after Divorce [ 9 Answers ]

I would like 2 know how I can keep my house without having 2 buy my husband out.He is very verbally abusive 2 my girls and myself.Is their any organizations that could help me keep my home and afford to make the payment on my own?

Keeping my son in bed [ 4 Answers ]

I have a 2 yr old boy that is difficult to keep in bed. We recently (2 weeks)moved him from his brothers room (where he slept in his brothers bed and in his own bed) to his own room. At bedtime, we put him in bed and walk out of the room. Moments later, he comes out. We then put him back...

Keeping an background image fixed within a table [ 2 Answers ]

Is is possible to have a fixed background image within a table or a cell without tiling so that when the entire page is being scrolled, the text and the table scroll, but the image stays in the middle of the page the entire time? If I want to insert an image in the background of a table and also...


View more questions Search