This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > September 2005 > I can't get CSS Style to work





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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. :)

Murray *TMM*

2005-09-14, 7:18 pm

Where have you applied unnamed1 in your page?

--
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:dg8evt$md4$1@forums.macromedia.com...
> 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">
>



soflaimports

2005-09-14, 7:30 pm

the page is located here;
http://www.floridastreetscene.com/f.../test/index.htm

thanks.
.: Nadia :. *TMM*

2005-09-14, 7:30 pm

You should be applying the style to the body if you want that image as a
background image to your page. Here's an example and the css :
http://tinyurl.com/cdfm8


--
Nadia
Team MM Volunteer for Dreamweaver
--------------------------------------------
http://www.csstemplates.com.au
Templates | CSS Templates |
http://www.DreamweaverResources.com
Dropdown Menu Templates | SEO Articles |Tutorials
---------------------------------------------
MM Dreamweaver Tutorials
http://macromedia.com/devnet/mx/dreamweaver/
---------------------------------------------
"soflaimports" <webforumsuser@macromedia.com> wrote in message
news:dg9975$1ue$1@forums.macromedia.com...
> the page is located here;
> http://www.floridastreetscene.com/f.../test/index.htm
>
> thanks.



Murray *TMM*

2005-09-14, 7:30 pm

But - it is working, no?

The first table on the page is this one -

<body leftmargin="0" topmargin="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
class="unnamed1">

and that is showing the background which is tiling just the way you style
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:dg9975$1ue$1@forums.macromedia.com...
> the page is located here;
> http://www.floridastreetscene.com/f.../test/index.htm
>
> thanks.



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.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews