Welcome to TalkGraphics.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2009
    Location
    Upstate NY, USA
    Posts
    373

    Default XXP5: controlling background tiling in web page?

    I searched and didn't find this discussed anywhere; apologies if I missed it.

    So, when I create a web page and use a bitmap image for the background, the default behavior is to tile in both x and y; the CSS for the body style comes out like this:

    Code:
    <body style="background-image:url('mypage_html_files/0.png')">
    What I want to do is have the image only repeat on the x axis (or not repeat at all), and have an actual background color specified to be displayed beyond the image boundaries. An example might look like this:

    Code:
    <body style="background: #000000 url('mypage_html_files/0.png') repeat-x">
    Is there currently any way to specify this short of hand-hacking the HTML? If not, what are the chances of the ability to specify these parameters being added to a future build?

    Many thanks!
    "You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa
    Visit Spinland Studios: http://www.spinlandstudios.com

  2. #2

    Default Re: XXP5: controlling background tiling in web page?

    Thread moved to correct forum for web related topics.
    Please take care where you post.
    Thanks.

  3. #3
    Join Date
    Feb 2009
    Location
    Upstate NY, USA
    Posts
    373

    Default Re: XXP5: controlling background tiling in web page?

    Sorry about that. Since they've been merged into one application I wasn't clear on the distinction.
    "You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa
    Visit Spinland Studios: http://www.spinlandstudios.com

  4. #4
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: XXP5: controlling background tiling in web page?

    Sure, no problem. Create the <head> placeholder with following code (as for your second example):
    Code:
    <style type="text/css">
    body {background: #000000 url("mypage_html_files/0.png") repeat-x}
    </style>
    Also, if you have set the background image in the original design it would be easier to use following:
    Code:
    <style type="text/css">
    body {background: #000000 repeat-x}
    </style>
    John.

  5. #5
    Join Date
    Feb 2009
    Location
    Upstate NY, USA
    Posts
    373

    Default Re: XXP5: controlling background tiling in web page?

    Distressingly simple. Many thanks again. I'll go put on my dunce cap now.
    "You can't be a real country unless you have a beer and an airline - it helps if you have some kind of a football team, or some nuclear weapons, but at the very least you need a beer." -- Frank Zappa
    Visit Spinland Studios: http://www.spinlandstudios.com

 

 

Bookmarks

Posting Permissions

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