Results 1 to 5 of 5
-
15th Oct 2012, 06:44 PM #1OPMember
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
-
15th Oct 2012, 07:32 PM #2Respected Member
try this:
Code:<style> body { background-image:url('yourbackground.gif'); background-repeat:no-repeat; background-attachment:fixed; } </style>
-
15th Oct 2012, 07:53 PM #3MemberWebsite's:
imdber.org justpaste.meCheck, background-size: cover (Example K). That should adapt on the browser size/resolution of the user.
-
16th Oct 2012, 03:17 AM #4OPMember
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>
-
16th Oct 2012, 05:17 PM #5Respected 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>
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
html and css help
By tractor3231 in forum Web Development AreaReplies: 7Last Post: 5th Sep 2011, 08:42 AM -
PSD to HTML
By ddlshack in forum Graphics AreaReplies: 1Last Post: 26th May 2011, 11:07 AM -
PSD to PHP/HTML?
By .:Jamie:. in forum Web Development AreaReplies: 8Last Post: 1st Mar 2011, 08:17 AM -
(X)HTML, CSS slicing (6 years experience) | PSD to (X)HTML and CSS | Professional job
By Wamer in forum Completed TransactionsReplies: 8Last Post: 21st Jul 2010, 06:13 PM -
HTML help
By n4pst3r in forum Server ManagementReplies: 5Last Post: 30th Mar 2010, 09:38 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...