Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 17th, 2006, 01:35 AM
Mike Barnard
Guest
 
Posts: n/a
Default Can someone examine this link and tell me whats wrong?

It's a simple test... VERY SIMPLE. But...

In an external stlyesheet some attributes don't show. With the same
styles cut and pasted to the test internally it works as expected.

Anyone tell me why? Its probably sooooooo obvious, but it is 1.19 am!

Thanks.

www.thunderin.co.uk/


--
The Source For Premium Newsgroup Access
Great Speed, Great Retention
1 GB/Day for only $8.95
  #2  
Old March 17th, 2006, 01:35 AM
Mark Parnell
Guest
 
Posts: n/a
Default Re: Can someone examine this link and tell me whats wrong?

Deciding to do something for the good of humanity, Mike Barnard
<m.barnard.trousers@thunderin.co.uk> declared in
comp.infosystems.www.authoring.stylesheets:
[color=blue]
> In an external stlyesheet some attributes don't show. With the same
> styles cut and pasted to the test internally it works as expected.[/color]

http://jigsaw.w3.org/css-validator/v...uk%2Ftest1.css
http://tinyurl.com/ed8ot

Take the HTML out of the CSS file.

--
Mark Parnell

Now implementing http://blinkynet.net/comp/uip5.html
  #3  
Old March 17th, 2006, 08:55 AM
Mike Barnard
Guest
 
Posts: n/a
Default Re: Can someone examine this link and tell me whats wrong?

On Fri, 17 Mar 2006 12:24:58 +1100, Mark Parnell
<webmaster@clarkecomputers.com.au> wrote:
[color=blue]
>Deciding to do something for the good of humanity, Mike Barnard
><m.barnard.trousers@thunderin.co.uk> declared in
>comp.infosystems.www.authoring.stylesheets:
>[color=green]
>> In an external stlyesheet some attributes don't show. With the same
>> styles cut and pasted to the test internally it works as expected.[/color]
>
>http://jigsaw.w3.org/css-validator/v...uk%2Ftest1.css
>http://tinyurl.com/ed8ot
>
>Take the HTML out of the CSS file.[/color]

Ridiculously, I thought about validation about 30 seconds after I shut
down the PC. Then I went to bed. Sigh.

Thanks for taking the time to look, I really do appreciate it. I said
it was something obvious.

As an aside, I used topstyle lite to enter the css code. This makes
me think that I should not bother buying the pro version! Anyone use
it?


--
The Source For Premium Newsgroup Access
Great Speed, Great Retention
1 GB/Day for only $8.95
  #4  
Old March 17th, 2006, 09:55 AM
Mike Barnard
Guest
 
Posts: n/a
Default Re: Can someone examine this link and tell me whats wrong?

On Fri, 17 Mar 2006 01:19:44 +0000, Mike Barnard
<m.barnard.trousers@thunderin.co.uk> wrote:
[color=blue]
>It's a simple test... VERY SIMPLE. But...
>
>In an external stlyesheet some attributes don't show. With the same
>styles cut and pasted to the test internally it works as expected.
>
>Anyone tell me why? Its probably sooooooo obvious, but it is 1.19 am!
>
>Thanks.
>
>www.thunderin.co.uk/[/color]

Hmmm. Still don't see whats wrong! The line that doesn't validate
is...

#header{ background-color: Fuchsia; color: White; }

Breaking it down using the following links to confirm my thoughts
http://www.w3schools.com/css/pr_background-color.asp

#header{ - defines an id for an element.

background-color: - correctly spelled and with the seperating colon in
place

Fuchsia - a colour name. This is a legal css element according to
this link
http://www.w3schools.com/css/css_colornames.asp

; - correctly seperated from the next part of the line by a semicolon

color: - correctly spelled and with the seperating colon
http://www.w3schools.com/css/pr_text_color.asp

White; - again, a legal css colour name.

} - closing bracket.




OK, open my blind eyes please? Why doesn't this VERY BASIC line
validate and why does it work when it's put in the body of the
document?

I really want to find out for myself but can't see whats wrong!
Grrrrrr. Unless, this line really is OK but it's broken by something
above or below it? Off to look.


--
The Source For Premium Newsgroup Access
Great Speed, Great Retention
1 GB/Day for only $8.95
  #5  
Old March 17th, 2006, 09:55 AM
Mike Barnard
Guest
 
Posts: n/a
Default Re: Can someone examine this link and tell me whats wrong?

On Fri, 17 Mar 2006 01:19:44 +0000, Mike Barnard
<m.barnard.trousers@thunderin.co.uk> wrote:

ARRRRRGGGGGGHHHHHHHH!

I'm off to whip myself with some birchtwigs for a loooooong time!

<fx>quietly deletes the style tags from the css file...


--
The Source For Premium Newsgroup Access
Great Speed, Great Retention
1 GB/Day for only $8.95
  #6  
Old March 17th, 2006, 06:25 PM
Tony
Guest
 
Posts: n/a
Default Re: Can someone examine this link and tell me whats wrong?

Mike Barnard wrote:[color=blue]
>
> As an aside, I used topstyle lite to enter the css code. This makes
> me think that I should not bother buying the pro version![/color]

I would agree.
[color=blue]
> Anyone use it?[/color]

I code my CSS by hand, and now you see why :)
  #7  
Old March 17th, 2006, 09:35 PM
Chris Hughes
Guest
 
Posts: n/a
Default Re: Can someone examine this link and tell me whats wrong?

In message <121lur493sik983@corp.supernews.com>, Tony
<tony23@dslextreme.WHATISTHIS.com> writes[color=blue]
>Mike Barnard wrote:[color=green]
>> As an aside, I used topstyle lite to enter the css code. This makes
>> me think that I should not bother buying the pro version![/color]
>
>I would agree.
>[color=green]
>> Anyone use it?[/color]
>
>I code my CSS by hand, and now you see why :)[/color]

That's how you use Topstyle Pro... great product. The only editor you
need for html/xhtml and for CSS.
--
Chris Hughes
"Reality is that which, when you cease to believe, continues to exist."
http://www.epicure.demon.co.uk
  #8  
Old March 17th, 2006, 09:45 PM
Tony
Guest
 
Posts: n/a
Default Re: Can someone examine this link and tell me whats wrong?

Chris Hughes wrote:[color=blue]
> In message <121lur493sik983@corp.supernews.com>, Tony
> <tony23@dslextreme.WHATISTHIS.com> writes[color=green]
>>
>> I code my CSS by hand, and now you see why :)[/color]
>
>
> That's how you use Topstyle Pro... great product. The only editor you
> need for html/xhtml and for CSS.[/color]

Why bother? I have a good (free) text editor. That's all you need, if
you can code HTML & CSS manually...
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles