Style sheet in FP 2003

C

Charlie

I am experimenting with a style sheet, trying to learn enough to update a
non-CSS website to CSS. I'm new to CSS, and need some help.

First thing, I made sure that CSS was enabled on my FrontPage. It was at
level 1; I added level 2.

Using one of the default FP website templates, I created a simple multi-page
site. I used one of the default FP CSS templates to create a CSS file within
the website. I linked to the style sheet from the home page, for all the
pages in the site. The code for each page has the proper <link
rel="stylesheet" type="text/css" href="new_page_1.css"> line in place. All
look fine.

Testing, I changed the h3 CSS definition to be a different color. I saved
the whole site to my disk.

When I look at the site home page (or any page) in Design, Split, or
Preview, nothing has changed with the displayed h3 lines. When I look at the
test site in my IE6 browser, they also is not changed. Exiting everything
back to the desktop and restart FP made no difference.

My test website has no other stylesheets linked, not is h3 redefined
anywhere in the site.

I tried an embedded style on one h3 line, and it worked fine under all
views.

I tried unlinking and relinking new_page_1.css but nothing changed.

The CSS file link seems to be totally ignored.

What am I doing wrong ? What am I missing?

....Charlie
 
W

Windsun

I would guess there is something wrong in your definition if the other
styles work.
 
C

Charlie

I found the problem, based on suggestions given here.

When FP2003 inserted the CSS to the source code, it placed it ahead of the
Theme that already existed. And the Theme redefined h3 to its own color
value. So my CSS was never really being used to show on my screen.

I guess the moral of this tale is to not use my own CSS with a Theme. Or to
change the code to make my CSS last. Or modify the Theme to my liking.

Thanks.
 
S

Stefan B Rusynko

FP will always apply the themes last - over riding any css file you add
Add your CSS to your FP theme
Format Theme Modify/Customize Text More Text Styles
(save as new theme name)
Also see http://sbrenjoy.bizland.com/frontpage/themes/newthemes.html#Granular




|I found the problem, based on suggestions given here.
|
| When FP2003 inserted the CSS to the source code, it placed it ahead of the
| Theme that already existed. And the Theme redefined h3 to its own color
| value. So my CSS was never really being used to show on my screen.
|
| I guess the moral of this tale is to not use my own CSS with a Theme. Or to
| change the code to make my CSS last. Or modify the Theme to my liking.
|
| Thanks.
|
|
|
|
|
|
 
R

Ronx

The theme will *always* place itself last in the <head> section, and
thus will always over-ride your own styles, unless you set styles for
classes and apply the classes to your HTML elements.
 

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

Top