HighDots Forums  

stringing bg properties together..

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss stringing bg properties together.. in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
maya
 
Posts: n/a

Default stringing bg properties together.. - 12-03-2007 , 09:05 AM






hi,

am getting W3C error on this code:

background-color:#FFFFFF; background-image:url(images/more.jpg)
no-repeat 1% 50%;

what is wrong w/it, pls..

thank you very much...

Reply With Quote
  #2  
Old   
rf
 
Posts: n/a

Default Re: stringing bg properties together.. - 12-03-2007 , 09:54 AM







"maya" <maya778899 (AT) yahoo (DOT) com> wrote

Quote:
hi,

am getting W3C error on this code:

background-color:#FFFFFF; background-image:url(images/more.jpg) no-repeat
1% 50%;
Care to tell us what the actual error is?

Quote:
what is wrong w/it, pls..
What is a w/it?

--
Richard.




Reply With Quote
  #3  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: stringing bg properties together.. - 12-03-2007 , 10:18 AM



maya wrote:
Quote:
hi,

am getting W3C error on this code:

background-color:#FFFFFF; background-image:url(images/more.jpg)
no-repeat 1% 50%;

what is wrong w/it, pls..

thank you very much...
background-image is just the single property hat has only one value:
/the image/

If you want to combine your properties then what you what is "background"

http://www.w3.org/TR/CSS21/colors.ht...def-background

background: #fff background-image:url(images/more.jpg) no-repeat 1% 50%;

TIP: When in doubt, RT*M... so reference this page:

http://www.w3.org/TR/CSS21/propidx.html

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #4  
Old   
maya
 
Posts: n/a

Default Re: stringing bg properties together.. - 12-03-2007 , 10:39 AM



rf wrote:
Quote:
"maya" <maya778899 (AT) yahoo (DOT) com> wrote

hi,

am getting W3C error on this code:

background-color:#FFFFFF; background-image:url(images/more.jpg) no-repeat
1% 50%;

Care to tell us what the actual error is?

what is wrong w/it, pls..

What is a w/it?

sure..

Value Error : background-image Too many values or values are not
recognized : url(images/more.jpg) no-repeat 1% 50%

thank you very much..



Reply With Quote
  #5  
Old   
maya
 
Posts: n/a

Default Re: stringing bg properties together.. - 12-03-2007 , 10:46 AM



Jonathan N. Little wrote:
Quote:
maya wrote:
hi,

am getting W3C error on this code:

background-color:#FFFFFF; background-image:url(images/more.jpg)
no-repeat 1% 50%;

what is wrong w/it, pls..

thank you very much...

background-image is just the single property hat has only one value:
/the image/

If you want to combine your properties then what you what is "background"

http://www.w3.org/TR/CSS21/colors.ht...def-background

background: #fff background-image:url(images/more.jpg) no-repeat 1% 50%;

TIP: When in doubt, RT*M... so reference this page:

http://www.w3.org/TR/CSS21/propidx.html

ok, am getting errors on BOTH of these:

background:#FFFFFF; background-image: url(images/more_roll.jpg)
no-repeat 1% 50%;

background:#FFFFFF url(images/more_roll.jpg) no-repeat 1% 50%;

??

I have properties in correct order as per here:
http://www.w3.org/TR/CSS21/colors.ht...def-background

thank you very much..


Reply With Quote
  #6  
Old   
Rik Wasmus
 
Posts: n/a

Default Re: stringing bg properties together.. - 12-03-2007 , 10:48 AM



On Mon, 03 Dec 2007 17:46:33 +0100, maya <maya778899 (AT) yahoo (DOT) com> wrote:
Quote:
Jonathan N. Little wrote:
maya wrote:
am getting W3C error on this code:

background-color:#FFFFFF; background-image:url(images/more.jpg)
no-repeat 1% 50%;
what is wrong w/it, pls..

background-image is just the single property hat has only one value:
/the image/
If you want to combine your properties then what you what is
"background"
http://www.w3.org/TR/CSS21/colors.ht...def-background
background: #fff background-image:url(images/more.jpg) no-repeat 1%
50%;

ok, am getting errors on BOTH of these:

background:#FFFFFF; background-image: url(images/more_roll.jpg)
no-repeat 1% 50%;

background:#FFFFFF url(images/more_roll.jpg) no-repeat 1% 50%;
Show us the URL.
--
Rik Wasmus


Reply With Quote
  #7  
Old   
maya
 
Posts: n/a

Default Re: stringing bg properties together.. - 12-03-2007 , 11:07 AM



Rik Wasmus wrote:
Quote:
On Mon, 03 Dec 2007 17:46:33 +0100, maya <maya778899 (AT) yahoo (DOT) com> wrote:
Jonathan N. Little wrote:
maya wrote:
am getting W3C error on this code:

background-color:#FFFFFF; background-image:url(images/more.jpg)
no-repeat 1% 50%;
what is wrong w/it, pls..

background-image is just the single property hat has only one value:
/the image/
If you want to combine your properties then what you what is
"background"
http://www.w3.org/TR/CSS21/colors.ht...def-background
background: #fff background-image:url(images/more.jpg) no-repeat 1%
50%;

ok, am getting errors on BOTH of these:

background:#FFFFFF; background-image: url(images/more_roll.jpg)
no-repeat 1% 50%;

background:#FFFFFF url(images/more_roll.jpg) no-repeat 1% 50%;

Show us the URL.
I'm sorry, I can't.. this is at work, am still in dev server... (this
is for JSP's/XSL's/dynamic content, the works..) need to experiment more
in plain HTML then..

thank you very much...



Reply With Quote
  #8  
Old   
Rik Wasmus
 
Posts: n/a

Default Re: stringing bg properties together.. - 12-03-2007 , 11:15 AM



On Mon, 03 Dec 2007 18:07:25 +0100, maya <maya778899 (AT) yahoo (DOT) com> wrote:

Quote:
Rik Wasmus wrote:
On Mon, 03 Dec 2007 17:46:33 +0100, maya <maya778899 (AT) yahoo (DOT) com> wrote:
Jonathan N. Little wrote:
maya wrote:
am getting W3C error on this code:

background-color:#FFFFFF; background-image:url(images/more.jpg)
no-repeat 1% 50%;
what is wrong w/it, pls..

background-image is just the single property hat has only one value:
/the image/
If you want to combine your properties then what you what is
"background"
http://www.w3.org/TR/CSS21/colors.ht...def-background
background: #fff background-image:url(images/more.jpg) no-repeat 1%
50%;

ok, am getting errors on BOTH of these:

background:#FFFFFF; background-image: url(images/more_roll.jpg)
no-repeat 1% 50%;

background:#FFFFFF url(images/more_roll.jpg) no-repeat 1% 50%;
Show us the URL.

I'm sorry, I can't.. this is at work, am still in dev server... (this
is for JSP's/XSL's/dynamic content, the works..) need to experiment more
in plain HTML then..

thank you very much...
I'd say that saving an HTML(/CSS) source and putting it up somewhere else
should not be a problem, is it?
--
Rik Wasmus


Reply With Quote
  #9  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: stringing bg properties together.. - 12-03-2007 , 11:53 AM



Jonathan N. Little wrote:

Quote:
background: #fff background-image:url(images/more.jpg) no-repeat 1% 50%;
Sorry about that stupid cut'n paste error

<inserting foot and chewing vigorously>

Should have been:

background: #ffffff url(images/more.jpg) no-repeat 1% 50%;



--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #10  
Old   
maya
 
Posts: n/a

Default Re: stringing bg properties together.. - 12-03-2007 , 12:14 PM



Rik Wasmus wrote:
Quote:
On Mon, 03 Dec 2007 18:07:25 +0100, maya <maya778899 (AT) yahoo (DOT) com> wrote:

Rik Wasmus wrote:
On Mon, 03 Dec 2007 17:46:33 +0100, maya <maya778899 (AT) yahoo (DOT) com> wrote:
Jonathan N. Little wrote:
maya wrote:
am getting W3C error on this code:

background-color:#FFFFFF; background-image:url(images/more.jpg)
no-repeat 1% 50%;
what is wrong w/it, pls..

background-image is just the single property hat has only one
value: /the image/
If you want to combine your properties then what you what is
"background"
http://www.w3.org/TR/CSS21/colors.ht...def-background
background: #fff background-image:url(images/more.jpg) no-repeat
1% 50%;

ok, am getting errors on BOTH of these:

background:#FFFFFF; background-image: url(images/more_roll.jpg)
no-repeat 1% 50%;

background:#FFFFFF url(images/more_roll.jpg) no-repeat 1% 50%;
Show us the URL.

I'm sorry, I can't.. this is at work, am still in dev server...
(this is for JSP's/XSL's/dynamic content, the works..) need to
experiment more in plain HTML then..

thank you very much...

I'd say that saving an HTML(/CSS) source and putting it up somewhere
else should not be a problem, is it?
no, of course not.. am so buys.. will do as soon as I can.. because AM
curious about this.. thank you very much..




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.