CSS query.

Discussion in 'HTML' started by John Fitzsimons, Dec 9, 2004.

  1. Hi,

    I have two web sites. On one I have the following in the header ;

    <BODY BGCOLOR="#FFFF86" BACKGROUND="web15.jpg">

    On the other I have a style sheet as follows ;

    BODY { background: #FFFF86; color: #000000;

    It seems like whatever way I try to incorporate the former into the
    latter it doesn't display correctly. Can anyone here tell me what I
    might be doing wrong and how to make the CSS display the same
    as the first site please ? Or cannot graphics be part of a CSS ?

    Any help appreciated. TIA.

    Regards, John.
    John Fitzsimons, Dec 9, 2004
    #1
    1. Advertising

  2. John Fitzsimons

    Steve Pugh Guest

    On Thu, 09 Dec 2004 23:21:40 +1100, John Fitzsimons
    <> wrote:

    >I have two web sites. On one I have the following in the header ;
    >
    ><BODY BGCOLOR="#FFFF86" BACKGROUND="web15.jpg">
    >
    >On the other I have a style sheet as follows ;
    >
    >BODY { background: #FFFF86; color: #000000;
    >
    >It seems like whatever way I try to incorporate the former into the
    >latter it doesn't display correctly.


    Perhaps it would help if you said what you had tried and didn't work?

    >Can anyone here tell me what I
    >might be doing wrong and how to make the CSS display the same
    >as the first site please ? Or cannot graphics be part of a CSS ?


    body {background-color: #FFFF86; background-image: url(web15.jpg);
    color: #000000;}

    or

    body {background: #FFFF86 url(web15.jpg); color: #000000;}

    It's all in the CSS spec:
    http://www.w3.org/TR/CSS2/colors.html#q2

    Steve
    Steve Pugh, Dec 9, 2004
    #2
    1. Advertising

  3. John Fitzsimons

    Toby Inkster Guest

    John Fitzsimons wrote:

    > <BODY BGCOLOR="#FFFF86" BACKGROUND="web15.jpg">
    >
    > On the other I have a style sheet as follows ;
    >
    > BODY { background: #FFFF86; color: #000000;
    >
    > It seems like whatever way I try to incorporate the former into the
    > latter it doesn't display correctly.


    Do you mean like this?

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <title>Example page</title>
    <style type="text/css">
    body {
    background: #FFFF86 url("web15.jpg") repeat scroll top left;
    color: #000000;
    }
    </style>
    <body>
    ...
    </body>

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact
    Toby Inkster, Dec 9, 2004
    #3
  4. John Fitzsimons

    Mark Parnell Guest

    Mark Parnell, Dec 9, 2004
    #4
  5. John Fitzsimons

    Duende Guest

    Duende, Dec 9, 2004
    #5
  6. On Thu, 09 Dec 2004 13:05:50 +0000, Steve Pugh <> wrote:

    >On Thu, 09 Dec 2004 23:21:40 +1100, John Fitzsimons
    ><> wrote:


    < snip >

    >body {background: #FFFF86 url(web15.jpg); color: #000000;}


    >It's all in the CSS spec:
    >http://www.w3.org/TR/CSS2/colors.html#q2


    Excellent ! Worked perfectly. Thank you for the solution and the
    reference. :)

    Regards, John.
    John Fitzsimons, Dec 10, 2004
    #6
  7. On Thu, 09 Dec 2004 14:00:53 +0000, Toby Inkster
    <> wrote:

    >John Fitzsimons wrote:


    < snip >

    >> It seems like whatever way I try to incorporate the former into the
    >> latter it doesn't display correctly.


    >Do you mean like this?


    < snip >

    Thank you for your help Toby. :)
    John Fitzsimons, Dec 10, 2004
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Learner
    Replies:
    1
    Views:
    984
    Marina Levit [MVP]
    Jan 30, 2006
  2. Anonymous
    Replies:
    0
    Views:
    1,459
    Anonymous
    Oct 13, 2005
  3. David Gordon

    xpath query query

    David Gordon, May 18, 2005, in forum: XML
    Replies:
    2
    Views:
    788
    David Gordon
    May 18, 2005
  4. Eric Nelson
    Replies:
    5
    Views:
    1,526
    Alexey Smirnov
    Feb 4, 2009
  5. Jon F.

    CAML Query: Multiple Query Fields Issue

    Jon F., May 12, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    754
    Jon F.
    May 12, 2004
Loading...

Share This Page