PC Review


Reply
 
 
Trevor L.
Guest
Posts: n/a
 
      29th Oct 2005

Trevor L. wrote:
> Kieren Evans" <"news[at]jedifans[--=dot=-]com wrote:
>> Trevor L. wrote:
>>> I have a general body style on style.css
>>> body {
>>> width: 760px;
>>> font: 16px Times New Roman,Arial,Helvetica,sans-serif;
>>> background: lightblue
>>>
>>> url("images/display/04-08-24-1-bird-bath.jpg") repeat fixed;}
>>> There are also other styles
>>>
>>> On a particular page, I want some of the styles on style.css but a
>>> different background - just a blue colour
>>>
>>> So I tried
>>> <link rel="stylesheet" type="text/css" href="style.css">
>>> <style type="text/css">
>>> body {background-color: lightblue}
>>> </style>
>>>
>>> I did not get the background color. Instead I got the birdbath.jpg
>>>
>>> How am I breaking the CSS rules?
>>> What do I have to do without repeating all the styles in a separate
>>> <style></style> section in <head>?
>>>

>> to override try:
>> background:lightblue URL('');
>>
>> --
>> Hope This Helped and MTFBWY...
>> Kieren aka JediFans - <URL:http://jedifans.com/>
>> The Force Is With Me, SUSE Linux 10.0, Mozilla Firefox 1.5 Beta 2,
>> Mozilla Thunderbird 1.5 Beta 2 and Revenge Of The Sith!

>
> Yes, that did the job.
>
> Actually I thought of that overnight.
> Who says going to sleep on a problem does no good :-)
>
> Howver, I now have anther problem
>
> I have this code
> <head>
> <link rel="stylesheet" type="text/css" href="style.css">
> <link rel="stylesheet" type="text/css" media="print"
> href="print.css"> <style type="text/css">
> body {background: lightblue url("")}
> </style>
> </head>
> <body>
> <span id="newstext"></span>
>
> <input type="button" value="Print" class="hidden"
> onClick="print()">
>
> The function writenews() writes some text into the span
> The styleprint.css is
> body {background: white }
> .hidden {visibility: hidden ;}
>
> When I print I get a grey background
>
> I tried changing print.css to
> body {background: white url('')}
>
> and
> body {background-color: white }
>
> and neither worked
> --
> Cheers,
> Trevor L.
> Website: http://tandcl.homemail.com.au


I posted this on microsoft.public.scripting.jscript, which wasn't really the
right place

Can anyone help with this problem, or suggest a better newsgroup

TIA,
Trevor L.
Website: http://tandcl.homemail.com.au

--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au


 
Reply With Quote
 
 
 
 
Chris Leeds, MVP-FrontPage
Guest
Posts: n/a
 
      29th Oct 2005
I think you need a ; after lightblue:
>>> So I tried
>>> <link rel="stylesheet" type="text/css" href="style.css">
>>> <style type="text/css">
>>> body {background-color: lightblue}
>>> </style>

also, if i remember right, on your style sheet, font names with spaces like
Times New Roman need to be in " "

HTH

--
Chris Leeds,
Microsoft MVP-FrontPage

If you make web sites for other people, you should check out ContentSeed:
http://contentseed.com/
--
"Trevor L." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Trevor L. wrote:
>> Kieren Evans" <"news[at]jedifans[--=dot=-]com wrote:
>>> Trevor L. wrote:
>>>> I have a general body style on style.css
>>>> body {
>>>> width: 760px;
>>>> font: 16px Times New Roman,Arial,Helvetica,sans-serif;
>>>> background: lightblue
>>>>
>>>> url("images/display/04-08-24-1-bird-bath.jpg") repeat fixed;}
>>>> There are also other styles
>>>>
>>>> On a particular page, I want some of the styles on style.css but a
>>>> different background - just a blue colour
>>>>
>>>> So I tried
>>>> <link rel="stylesheet" type="text/css" href="style.css">
>>>> <style type="text/css">
>>>> body {background-color: lightblue}
>>>> </style>
>>>>
>>>> I did not get the background color. Instead I got the birdbath.jpg
>>>>
>>>> How am I breaking the CSS rules?
>>>> What do I have to do without repeating all the styles in a separate
>>>> <style></style> section in <head>?
>>>>
>>> to override try:
>>> background:lightblue URL('');
>>>
>>> --
>>> Hope This Helped and MTFBWY...
>>> Kieren aka JediFans - <URL:http://jedifans.com/>
>>> The Force Is With Me, SUSE Linux 10.0, Mozilla Firefox 1.5 Beta 2,
>>> Mozilla Thunderbird 1.5 Beta 2 and Revenge Of The Sith!

>>
>> Yes, that did the job.
>>
>> Actually I thought of that overnight.
>> Who says going to sleep on a problem does no good :-)
>>
>> Howver, I now have anther problem
>>
>> I have this code
>> <head>
>> <link rel="stylesheet" type="text/css" href="style.css">
>> <link rel="stylesheet" type="text/css" media="print"
>> href="print.css"> <style type="text/css">
>> body {background: lightblue url("")}
>> </style>
>> </head>
>> <body>
>> <span id="newstext"></span>
>>
>> <input type="button" value="Print" class="hidden"
>> onClick="print()">
>>
>> The function writenews() writes some text into the span
>> The styleprint.css is
>> body {background: white }
>> .hidden {visibility: hidden ;}
>>
>> When I print I get a grey background
>>
>> I tried changing print.css to
>> body {background: white url('')}
>>
>> and
>> body {background-color: white }
>>
>> and neither worked
>> --
>> Cheers,
>> Trevor L.
>> Website: http://tandcl.homemail.com.au

>
> I posted this on microsoft.public.scripting.jscript, which wasn't really
> the right place
>
> Can anyone help with this problem, or suggest a better newsgroup
>
> TIA,
> Trevor L.
> Website: http://tandcl.homemail.com.au
>
> --
> Cheers,
> Trevor L.
> Website: http://tandcl.homemail.com.au
>



 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      30th Oct 2005
FWIW,

I resolved my problem by re-ordering my styles
<link rel="stylesheet" type="text/css" href="style.css">
<style type="text/css">
body {background: lightblue url("")}
</style>
<link rel="stylesheet" type="text/css" media="print" href="print.css">
where print.css is:
body {background: white url("");}
..hidden {visibility: hidden ;}

This gave me all the styles in style.css, overwriting the style for body
with lightblue background when displaying, and with white background when
printing.

This must mean that CSSs cascade in the order in which they are invoked,
and *not* external, then internal, then in-line

Still, this is not a CSS newsgroup.
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
"Chris Leeds, MVP-FrontPage" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I think you need a ; after lightblue:
>>>> So I tried
>>>> <link rel="stylesheet" type="text/css" href="style.css">
>>>> <style type="text/css">
>>>> body {background-color: lightblue}
>>>> </style>

> also, if i remember right, on your style sheet, font names with spaces
> like Times New Roman need to be in " "
>
> HTH
>
> --
> Chris Leeds,
> Microsoft MVP-FrontPage
>
> If you make web sites for other people, you should check out ContentSeed:
> http://contentseed.com/
> --
> "Trevor L." <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>
>> Trevor L. wrote:
>>> Kieren Evans" <"news[at]jedifans[--=dot=-]com wrote:
>>>> Trevor L. wrote:
>>>>> I have a general body style on style.css
>>>>> body {
>>>>> width: 760px;
>>>>> font: 16px Times New Roman,Arial,Helvetica,sans-serif;
>>>>> background: lightblue
>>>>>
>>>>> url("images/display/04-08-24-1-bird-bath.jpg") repeat fixed;}
>>>>> There are also other styles
>>>>>
>>>>> On a particular page, I want some of the styles on style.css but a
>>>>> different background - just a blue colour
>>>>>
>>>>> So I tried
>>>>> <link rel="stylesheet" type="text/css" href="style.css">
>>>>> <style type="text/css">
>>>>> body {background-color: lightblue}
>>>>> </style>
>>>>>
>>>>> I did not get the background color. Instead I got the birdbath.jpg
>>>>>
>>>>> How am I breaking the CSS rules?
>>>>> What do I have to do without repeating all the styles in a separate
>>>>> <style></style> section in <head>?
>>>>>
>>>> to override try:
>>>> background:lightblue URL('');
>>>>
>>>> --
>>>> Hope This Helped and MTFBWY...
>>>> Kieren aka JediFans - <URL:http://jedifans.com/>
>>>> The Force Is With Me, SUSE Linux 10.0, Mozilla Firefox 1.5 Beta 2,
>>>> Mozilla Thunderbird 1.5 Beta 2 and Revenge Of The Sith!
>>>
>>> Yes, that did the job.
>>>
>>> Actually I thought of that overnight.
>>> Who says going to sleep on a problem does no good :-)
>>>
>>> Howver, I now have anther problem
>>>
>>> I have this code
>>> <head>
>>> <link rel="stylesheet" type="text/css" href="style.css">
>>> <link rel="stylesheet" type="text/css" media="print"
>>> href="print.css"> <style type="text/css">
>>> body {background: lightblue url("")}
>>> </style>
>>> </head>
>>> <body>
>>> <span id="newstext"></span>
>>>
>>> <input type="button" value="Print" class="hidden"
>>> onClick="print()">
>>>
>>> The function writenews() writes some text into the span
>>> The styleprint.css is
>>> body {background: white }
>>> .hidden {visibility: hidden ;}
>>>
>>> When I print I get a grey background
>>>
>>> I tried changing print.css to
>>> body {background: white url('')}
>>>
>>> and
>>> body {background-color: white }
>>>
>>> and neither worked
>>> --
>>> Cheers,
>>> Trevor L.
>>> Website: http://tandcl.homemail.com.au

>>
>> I posted this on microsoft.public.scripting.jscript, which wasn't really
>> the right place
>>
>> Can anyone help with this problem, or suggest a better newsgroup
>>
>> TIA,
>> Trevor L.
>> Website: http://tandcl.homemail.com.au
>>
>> --
>> Cheers,
>> Trevor L.
>> Website: http://tandcl.homemail.com.au
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the Out of Office Rules override the Rules and Alerts Rules? DJ Ref Microsoft Outlook Discussion 3 3rd Apr 2008 01:12 AM
Office 2003--Rules on machine don't match rules on exchange server bscace Microsoft Outlook Discussion 0 28th Feb 2008 04:13 PM
My rules started freezing outlook! Deleted rules to receive! =?Utf-8?B?c2V2ZTAwNDk=?= Microsoft Outlook Discussion 0 10th Mar 2005 02:49 PM
Outlook Rules Limit, XCLN: Maximum Number of Rules Per Folder =?Utf-8?B?Q29sb25pYWxob3VzZSBNZWRpYQ==?= Microsoft Outlook Discussion 3 10th Nov 2004 10:45 PM
Outlook 2003: Rules and Alerts, Client Side Rules do not run on startup Justin Tymee Microsoft Outlook Discussion 2 5th Dec 2003 06:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:08 AM.