Question about applying Style Sheets (CSS)

  • Thread starter Thread starter Viken Karaguesian
  • Start date Start date
V

Viken Karaguesian

Hi all,

I recently discovered how to use Cascading Style Sheets. I've been working
on a site and it's almost complete and discovered the CSS a bit late :>)

My question is: Do I have to apply the custom Style to *everything*? When I
right-clicked and chose "page properties" and applied my new custom Style,
everything changed except the content within the tables. I had to go a
choose *every* table in *every* page and apply the style. Is this because
the tables had already been created? If I create a new page and apply my
Style, will it automatically apply to everything in the page, including
tables? As I understand it, it will apply to everything in a new page unless
I change the properties for individual text or tables, etc.

Also, when I choose "Table Properties" and apply my style, I'm assuming that
the style is applied to the text and content within the tables. Am I right?

Thanks in advance for any replies!

Viken Karaguesian
 
If the style also contained the td tag identifier in your style sheet, then it would also
automatically apply to the tables.
Example:

p, td, div{
font-style: normal; font-variant: normal; font-weight: bold; font-size: 14px; font-family: "Comic
Sans MS", sans-serif, Arial, Helvetica, Verdana;
}

applies the selected font to all p ( text ) td ( table data ) and div tags. To apply it to
hyperlinks simply add the a tag like so.

a, p, td, div{
font-style: normal; font-variant: normal; font-weight: bold; font-size: 14px; font-family: "Comic
Sans MS", sans-serif, Arial, Helvetica, Verdana;
}


hth.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
Thanks Steve,

I'm having more issues and I can't figure out what's going on. My CSS keeps
on appearing and disappearing and I can't figure out why. Here's what I
mean:

I created a style sheet (File->New->Style Sheet->Normal. Then I modified the
sheet using the Style toolbar). Then I create new page. I go to
Format->Style and choose "user defined", but my new style sheet is not
there! But, if I go to Format->Style Sheet Links, I can see it there. Then I
right-click, choose "Page Properties->Advanced->Body Style and my new Style
sheet doesn't appear in the "Class" drop-down box. Furthermore, if I go to
Format->Style Sheet Links, I can load up my CSS file, but the next time I
start Frontpage up again my style sheet doesn't appear in the "class"
drop-down boxes anymore.

Even when I go to Format->Style and create a new style, the newly created
style does not show up in the "user created styles".

I'm not sure what's going on. Is it normal for FrontPage 2003 to do this?
I'm confused and a bit frustrated....

Thanks.

Viken
 
Have you applied your style sheet across your web.
If you look at a page in code view you should see:

<link rel="stylesheet" type="text/css" href="yoursheetname.css">

between the head tags on the page.

"yoursheetname" being the name you saved it as.
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
Hi Steve,

Yes, I have applied the style sheet across my web. Here's what the
\head looks like in one of my pages.

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Calendar</title>

<style>
<!--
-->
</style>

<link rel="stylesheet" type="text/css" href="Abaka.css">
</head>

I had applied the Style to my entire web before the last post. So I
just went and opened up the page with the above HEAD tag and went to
Format->Style. The style was NOT in the "user defined styles" list.
But it seems like the Style does not become the default Style in any
new page in my web unless I go to Format->Style Sheet Links and then
apply the style. Only after that does it appear in the Class boxes,
but still not in the "user defined style" list. I was of the mindset
that once I applied the Style to the whole web, any new page would
default to that style. I guess not?

Thanks a lot for all your help.


Viken Karaguesian
 
OK.

Remove this from the head section.

<style>
<!--
-->
</style>


Then to edit your style sheet go to folder view and right click on Abaka.css and open it for
editing. Use Notepad to edit it.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top