View Full Version : Stop Background Image From Scrolling (Dreamweaver 2004 MX)
matt blank
11-07-2005, 05:00 PM
Hi everyone,
I've only just recently started using Dreamweaver MX 2004 (I used to be on Dreamweaver 4).
To stop the background from scrolling I just used to put: bgproperties="fixed" and it worked fine.
But using Dreamweaver MX 2004 doing:
body {
background-image: url(bg.gif);
bgproperties: fixed;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #466F8F;
}
Doesn't work!! Can anyone help and tell me what to do to stop the background from scrolling??
Thanks!
Matt Blank
matt blank
11-07-2005, 05:05 PM
Oooh, my post was in vein.
I search the Internet for hours, and two seconds after posting this I find the result!! So need for help anymore :D
For those of you who may want to know how to do this though:
body {
background-image: url(bg.gif);
background-attachment: fixed;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #466F8F;
}
Thanks anyway,
Matt Blank
pjrey
11-11-2005, 03:51 AM
the code below works just fine
place it between the <head> and </head>
<STYLE>
<!--
BODY {background-attachment: fixed;}
//-->
</STYLE>
web_geek
11-13-2005, 03:30 AM
Hi everyone,
I've only just recently started using Dreamweaver MX 2004 (I used to be on Dreamweaver 4).
To stop the background from scrolling I just used to put: bgproperties="fixed" and it worked fine.
But using Dreamweaver MX 2004 doing:
body {
background-image: url(bg.gif);
bgproperties: fixed;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #466F8F;
}
Doesn't work!! Can anyone help and tell me what to do to stop the background from scrolling??
Thanks!
Matt Blank
You can use do this:
<body background="yourbg.jpg" style="background-attachment: fixed">
Notice the style="background-attachment:fixed"
If you need any help, ask me! ;)
p0ng0
09-23-2007, 02:57 PM
Hey, i just have the same problem, im using MX 2004 also.
Heres my snipit, i can't stop it from repeating!
=====================================================
<tr>
<td colspan="23" style="width:800px; height:312px; background-image:url(images/index_24.gif); background-position:top center;"><table width="100%" border="0" align="left">
<tr>
<td><img src="images/welcome.gif" width="242" height="323"></td>
<td><h1 class="style1">Obaseki Solicitors </h1>
<span class="style11">The Obaseki family has a history practicing Law and servicing their local communities for over 100 years. This firm is established by Ms Jennifer Obaseki. AREAS OF PRACTICE We offer a comprehensive legal service in the following areas: </span> <ul class="style9">
<li> <a href="propertylaw.htm">Property Law </a> <li> <a href="immigration.htm">Immigration Law </a> <li> <a href="humanrights.htm">Human Rights Legislation </a> <li> <a href="civillitigation.htm">Civil Litigation </a> <li> <a href="criminallitigation.htm">Criminal Litigation </a> <li> <a href="familylaw.htm">Family Law </a> <li> <a href="shariahlaw.htm">Shariah Law </a> <li> <a href="businesslaw.htm">Business Law </a></li>
</ul>
<span class="style11">We aim to offer an affordable service with excellent standards. </span></td>
</tr>
</table></td>
</tr>
=====================================================
anyone help?
djr33
09-23-2007, 05:43 PM
style="width:800px; height:312px; background-image:url(images/index_24.gif); background-position:top center; background-attachment: fixed;"
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.