Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Jul 2007
    Location
    Canada
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Quite new to CSS... so I don't have any 'code' !

    Hey everybody,

    As you can see, I'm a new member. I have joined CodingForums because I'm in a bad need of help in CSS. I am starting in CSS and my first question was; how to make a floating background? I read the FAQ topics, but no help.

    I don't know if that's the real 'definition' of what I mean. What I mean is whenever a use mouses up or down, the background follows with him.

    Thank you for any help,

    - Leo
    Ad Infinitium


  • #2
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • #3
    New Coder
    Join Date
    Jul 2007
    Location
    Canada
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wow, awesome! Thank you.

    I re'pped' you.
    Last edited by MadLeo; 07-31-2007 at 04:15 PM.
    Ad Infinitium


  • #4
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    Thank you.
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • #5
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    Of course, if you wanted to be a little more concise you could add that in one line:

    Code:
    background: #FFFFFF url(images/background.gif) fixed center;
    The center states the position of the background-image in relation to the browser.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #6
    New Coder
    Join Date
    Jul 2007
    Location
    Canada
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ahallicks View Post
    Of course, if you wanted to be a little more concise you could add that in one line:

    Code:
    background: #FFFFFF url(images/background.gif) fixed center;
    The center states the position of the background-image in relation to the browser.
    I figured it out, thanks though.

    +rep
    Ad Infinitium


  • #7
    New Coder
    Join Date
    Jul 2007
    Location
    Canada
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok, I have a new question! How to make the background not repeat?

    Thanks.
    Ad Infinitium


  • #8
    Senior Coder
    Join Date
    Apr 2007
    Location
    Quakertown PA USA
    Posts
    1,028
    Thanks
    1
    Thanked 125 Times in 123 Posts
    Code:
    background: #FFFFFF url(images/background.gif) fixed center no-repeat;

  • #9
    New Coder
    Join Date
    Jul 2007
    Location
    Canada
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks.

    +rep
    Ad Infinitium



  •  

    Posting Permissions

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