Activity Stream
48,167 MEMBERS
6978 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Member

    Default html help

    Hello and thanks in advance for any and all help.

    Ok what I want to do if its possible is to have my web page, including background to size according to the viewers resolution fixed in place while also being able to scroll down the page of text etc. I have been able to size the background but it wont stay fixed, it scrolls with the rest. Or I have been able to fix the background and have scrolling abuility but the background and page do not resize to viewing resolution.

    Any ideas or help would be greatly appreciated.
    QRob001 Reviewed by QRob001 on . html help Hello and thanks in advance for any and all help. Ok what I want to do if its possible is to have my web page, including background to size according to the viewers resolution fixed in place while also being able to scroll down the page of text etc. I have been able to size the background but it wont stay fixed, it scrolls with the rest. Or I have been able to fix the background and have scrolling abuility but the background and page do not resize to viewing resolution. Any ideas or Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    try this:
    Code: 
    <style>
    body 
    {
    background-image:url('yourbackground.gif');
    background-repeat:no-repeat;
    background-attachment:fixed;
    }
    </style>

  4.     
    #3
    Member
    Website's:
    imdber.org justpaste.me
    Check, background-size: cover (Example K). That should adapt on the browser size/resolution of the user.

  5.     
    #4
    Member
    Ok this is what I have that allows the background to resize to the viewing resolution
    Code: 
    <div>
    <body bgcolor="#000000"  text="#FFFFFF">
    <img src="tropicalbeach.jpg" class="world" bgproperties="fixed" text="white">
    </div>
    <style type="text/css">
    .world {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: -5000;
    }
    </style>
    Is there a way to modify this to resize the whole web page? Banners, button menues ect while allowing the viewer to scroll down text?

  6.     
    #5
    Respected Member
    Did you try the code below?
    Code: 
    <head>
    <style>
    body 
    {
    background-image:url('tropicalbeach.jpg');
    background-repeat:no-repeat;
    background-attachment:fixed;
    }
    </style>
    </head>
    <body>
    your html code
    </body>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. html and css help
    By tractor3231 in forum Web Development Area
    Replies: 7
    Last Post: 5th Sep 2011, 08:42 AM
  2. PSD to HTML
    By ddlshack in forum Graphics Area
    Replies: 1
    Last Post: 26th May 2011, 11:07 AM
  3. PSD to PHP/HTML?
    By .:Jamie:. in forum Web Development Area
    Replies: 8
    Last Post: 1st Mar 2011, 08:17 AM
  4. Replies: 8
    Last Post: 21st Jul 2010, 06:13 PM
  5. HTML help
    By n4pst3r in forum Server Management
    Replies: 5
    Last Post: 30th Mar 2010, 09:38 AM

Tags for this Thread

BE SOCIAL