| Author |
I can't get CSS Style to work
|
|
| soflaimports 2005-09-14, 4:20 am |
| Please take a look at this page;
http://www.floridastreetscene.com/featured/test/
I have the following CSS style defined in the document;
<style type="text/css">
<!--
.unnamed1 {
background-attachment: fixed;
background-image: url(cf2.gif);
background-repeat: repeat;
}
-->
</style>
How come the background doesn't stay fixed?
Yet when I use the code;
url(http://www.floridastreetscene.com/f...ges/misc/cf.gif) repeat fixed
It works fine on my forums...
Thank you for the help. :)
| |
|
|
| soflaimports 2005-09-14, 7:30 pm |
| well the code is in the head section;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.unnamed1 {
background-attachment: fixed;
background-image: url(cf2.gif);
background-repeat: repeat;
}
-->
</style>
</head>
and i've applied it to one of the tables that has a width of 100% and inside
it is the content;
<table width="100%" border="0" cellpadding="0" cellspacing="0"
class="unnamed1">
| |
| Murray *TMM* 2005-09-14, 7:30 pm |
| Can you upload the page and post a link to it?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"soflaimports" <webforumsuser@macromedia.com> wrote in message
news:dg980c$1o$1@forums.macromedia.com...
> well the code is in the head section;
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <style type="text/css">
> <!--
> .unnamed1 {
> background-attachment: fixed;
> background-image: url(cf2.gif);
> background-repeat: repeat;
> }
> -->
> </style>
> </head>
>
> and i've applied it to one of the tables that has a width of 100% and
> inside
> it is the content;
> <table width="100%" border="0" cellpadding="0" cellspacing="0"
> class="unnamed1">
>
| |
|
|
|
|
|
|
| Duncan HL 2005-09-14, 7:30 pm |
| It's fixed in firefox - it's an IE problem that it'll only apply a fixed
background image to the body, or to any element with a scrollbar, I believe.
Either way, not a table. Given it's the background for the page, could you not
apply the class to the body tag instead of the table?
| |
| soflaimports 2005-09-14, 7:32 pm |
| Thanks Duncan that did it.
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |