Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 11:45 PM
Alex
Guest
 
Posts: n/a
Default Moving from CSS in html to a file.css

Hi all,

I'm kind of new to CSS, and I have a few lines of CSS code in my page
that I want moved to a .css file instead of using Style tabs in page.

Below is what I have that works:

<html>
<head>
<title>Sample Page</title>
<style>
all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold
12px Arial; color: #FFCC33; cursor: hand; z-index:100}
#MainTable A:hover {color: #ffffff}
</style>
</head>
<body> ... and so forth.

The code above works great, but I want the CSS moved into a file.
Below is what I'm trying, but it's not yielding any results:

<html>
<head>
<title>Sample Page</title>
<link rel="stylesheet" href="alex1.css" type="text/css">
</head>
<body> ... and so forth.

alex1.css contains the following:
all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold
12px Arial; color: #FFCC33; cursor: hand; z-index:100}
#MainTable A:hover {color: #ffffff}

Any suggestions? What am I doing wrong? According to the resources
I've looked at this syntax is correct.

Thanks,

Alex.
  #2  
Old July 20th, 2005, 11:45 PM
Neal
Guest
 
Posts: n/a
Default Re: Moving from CSS in html to a file.css

On 26 May 2004 13:38:09 -0700, Alex <alex@totallynerd.com> wrote:
[color=blue]
> I'm kind of new to CSS, and I have a few lines of CSS code in my page
> that I want moved to a .css file instead of using Style tabs in page.[/color]

It looks like it should work, unless I'm missing something obvious.

1) css file is in same directory as html?

2) Browsers you tested it with are...?

  #3  
Old July 20th, 2005, 11:45 PM
Neal
Guest
 
Posts: n/a
Default Re: Moving from CSS in html to a file.css

On Wed, 26 May 2004 17:09:59 -0400, Neal <neal413@yahoo.com> wrote:
[color=blue]
> On 26 May 2004 13:38:09 -0700, Alex <alex@totallynerd.com> wrote:
>[color=green]
>> I'm kind of new to CSS, and I have a few lines of CSS code in my page
>> that I want moved to a .css file instead of using Style tabs in page.[/color]
>
> It looks like it should work, unless I'm missing something obvious.
>
> 1) css file is in same directory as html?
>
> 2) Browsers you tested it with are...?
>[/color]

In addition, please upload to the WWW and provide a URL to make this
easier...
  #4  
Old July 20th, 2005, 11:45 PM
P.J.M. Smit
Guest
 
Posts: n/a
Default Re: Moving from CSS in html to a file.css


"Alex" <alex@totallynerd.com> schreef in bericht
news:2ba4b4eb.0405261238.2bf0992d@posting.google.c om...[color=blue]
> Hi all,
>
> I'm kind of new to CSS, and I have a few lines of CSS code in my page
> that I want moved to a .css file instead of using Style tabs in page.
>
>
> The code above works great, but I want the CSS moved into a file.
> alex1.css contains the following:
> all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold
> 12px Arial; color: #FFCC33; cursor: hand; z-index:100}
> #MainTable A:hover {color: #ffffff}
>
> Any suggestions? What am I doing wrong? According to the resources
> I've looked at this syntax is correct.
>
> Thanks,
>
> Alex.[/color]
works all right for me
Pierre


 

Bookmarks

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