CSS basic question

  • Thread starter Thread starter =?iso-8859-1?Q?Crash_Gordon=AE?=
  • Start date Start date
?

=?iso-8859-1?Q?Crash_Gordon=AE?=

Howdy all.

Once I decide upon a CSS for my main web, is there any reason I can't (or shan't) link my subweb to the same sheet if I want the subweb to look exactly like the main web?

part 2:
Is there a way to include the link in every new page created, or do you have to manually include it in each page? Create a .tem ??

cssnoob
rob
 
Inline:

--
The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--


Howdy all.

Once I decide upon a CSS for my main web, is there any reason I can't (or
shan't) link my subweb to the same sheet if I want the subweb to look
exactly like the main web?

only that you'll have to manually add the style sheet links (or should have
to based on the sub-web typical division in frontpage).

part 2:
Is there a way to include the link in every new page created, or do you have
to manually include it in each page? Create a .tem ??

If you add the line (.css include) to a template it'll be there but there is
an option under format/ style sheet links to include the link in every page
so it's probably not worth any extra trouble than that, unless you're going
to use a tricky include or @ rule which frontpage doesn't do automatically.

HTH

cssnoob
rob
 
Rob,

I don't work with subwebs very often, but I just tested this using FP2002
and a disk based web and I was able to use "Format | Style Sheet Links..."
to attach a CSS file in the parent web to an HTML in the subweb. I then
renamed the CSS file but the subweb file did not update to reflect the new
name.

So, I'd say don't do this. If you change the filenames of your CSS files,
they probably won't update, and if you move files around in your subweb,
the path to the CSS probably won't update either.

As an alternative, I'd suggest that you use two CSS files. The first, in
the parent web, has all your CSS declarations in it. The second in your
subweb(s) has only one @import declaration, importing the file from the
parent web. Then you can link the style sheets as appropriate in each web
and the paths should be maintained. Just remember to update the subweb CSS
file if you make a change to the parent CSS filename or path.

For the @import declaration, you should be able to use a relative path so it
will remain correct in your development and production environments. In
case you're not familiar with the syntax:
http://www.westciv.com/style_master/academy/css_tutorial/introduction/statements.html#atimport

Make sense?!

--
Jack Brewster - Microsoft FrontPage MVP

Howdy all.

Once I decide upon a CSS for my main web, is there any reason I can't (or
shan't) link my subweb to the same sheet if I want the subweb to look
exactly like the main web?

part 2:
Is there a way to include the link in every new page created, or do you have
to manually include it in each page? Create a .tem ??

cssnoob
rob
 
You can apply the style sheet to all pages at one time. With your web and a page open,
Toolbar, > Format > Style Sheet Links then select your style sheet, check all pages and
then click OK. The info will automatically be added to the head section of every page.

iirc, you have to have the style sheet in the subwebs and then do the same there.

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

Howdy all.

Once I decide upon a CSS for my main web, is there any reason I can't (or shan't) link my
subweb to the same sheet if I want the subweb to look exactly like the main web?

part 2:
Is there a way to include the link in every new page created, or do you have to manually
include it in each page? Create a .tem ??

cssnoob
rob
 
thanks both!

probably simplier for me to remember and impliment if I just use two sheets (there may actually be a few differences now that I think about it anyway).

i finally had a few hours to spend with topstyle 3 today...so i learned a few new things.

btw topstyle pro is mo' better than the lite.

tnx again

rob


| Rob,
|
| I don't work with subwebs very often, but I just tested this using FP2002
| and a disk based web and I was able to use "Format | Style Sheet Links..."
| to attach a CSS file in the parent web to an HTML in the subweb. I then
| renamed the CSS file but the subweb file did not update to reflect the new
| name.
|
| So, I'd say don't do this. If you change the filenames of your CSS files,
| they probably won't update, and if you move files around in your subweb,
| the path to the CSS probably won't update either.
|
| As an alternative, I'd suggest that you use two CSS files. The first, in
| the parent web, has all your CSS declarations in it. The second in your
| subweb(s) has only one @import declaration, importing the file from the
| parent web. Then you can link the style sheets as appropriate in each web
| and the paths should be maintained. Just remember to update the subweb CSS
| file if you make a change to the parent CSS filename or path.
|
| For the @import declaration, you should be able to use a relative path so it
| will remain correct in your development and production environments. In
| case you're not familiar with the syntax:
| http://www.westciv.com/style_master/academy/css_tutorial/introduction/statements.html#atimport
|
| Make sense?!
|
| --
| Jack Brewster - Microsoft FrontPage MVP
|
| | Howdy all.
|
| Once I decide upon a CSS for my main web, is there any reason I can't (or
| shan't) link my subweb to the same sheet if I want the subweb to look
| exactly like the main web?
|
| part 2:
| Is there a way to include the link in every new page created, or do you have
| to manually include it in each page? Create a .tem ??
|
| cssnoob
| rob
|
|
| --
| Non pensare che non ci siano coccodrilli perché
| l'acqua è calma
| From: "Crash Gordon"
| email: (e-mail address removed)
|
|
|
 
got it now!
everyday a new lightbulb flashes above me head :-)
(directly proportional to the amount of bud maybe?) kidding.

laters..

robo



| You can apply the style sheet to all pages at one time. With your web and a page open,
| Toolbar, > Format > Style Sheet Links then select your style sheet, check all pages and
| then click OK. The info will automatically be added to the head section of every page.
|
| iirc, you have to have the style sheet in the subwebs and then do the same there.
|
| --
| Steve Easton
| Microsoft MVP FrontPage
| 95isalive
| This site is best viewed............
| .......................with a computer
|
| | Howdy all.
|
| Once I decide upon a CSS for my main web, is there any reason I can't (or shan't) link my
| subweb to the same sheet if I want the subweb to look exactly like the main web?
|
| part 2:
| Is there a way to include the link in every new page created, or do you have to manually
| include it in each page? Create a .tem ??
|
| cssnoob
| rob
|
|
| --
| Non pensare che non ci siano coccodrilli perché
| l'acqua è calma
| From: "Crash Gordon"
| email: (e-mail address removed)
|
|
|
 

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