By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,631 Members | 1,423 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,631 IT Pros & Developers. It's quick & easy.

Can CSS specify generic content?

P: n/a
Is there any way to code an external style sheet to ensure that all pages
opening with a reference to that style sheet include generic content such as
headers, logos, taglines, universal navigation links, etc...?

While limiting the unique content of the page making the external style
sheet reference to a relatively sized cell that includes a scrollbar when
the content overflows the bounds of the cell...?

Thanks in Advance...

=~=
Timothy Casey
South Australia
wo****@iprimus.com.au

Formerly:
ca***@smart.net.au

Phenomenal Speed Comprehension:
Discover the World's most advanced speed reading application at:
http://www.fieldcraft.biz/shop/
Jul 20 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
in post: <news:40********@news.iprimus.com.au>
Timothy Casey <wo****@iprimus.com.au> said:
Is there any way to code an external style sheet to ensure that all pages
opening with a reference to that style sheet include generic content such as
headers, logos, taglines, universal navigation links, etc...?
possible but with limited browser support and thats not what CSS is for.
CSS is for attaching style to structured documents.

use your favorite server side language to stick common goodies into each
requested page before it gets sent to the visitor.
a relatively sized cell that includes a scrollbar when the content
overflows the bounds of the cell...?


you can do it but you really need to think about if you should. browsers
already have two scrollbars built in.

--
b r u c i e
Jul 20 '05 #2

P: n/a
On Wed, 26 May 2004 17:32:04 +0930, Timothy Casey wrote:
Sub: Can CSS specify generic content?


No. You need server-side scripting for that.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 20 '05 #3

P: n/a
Well, here's the thing, I would rather not have the extra scroll bar, so;
It would be great if we could get the browser's scrollbar to move all the
unique content instead of duplicating scrollbars as seen in frames - while
all the generic content remains static and unmoved by scrolling....

This can be done with images in CSS by setting the background-attachment
property to "fixed". However, embedding text and Menus just doesn't work in
this case. Fixing an SSI within an absolute span seems like the go here, but
I'd rather minimise duplicated code if possible...

As for favourite server side language - I'd have one if there were any that
can be read by a WYSIWYG HTML editor and applied to test view. Any
suggestions?

Thanks in Advance...

=~=
Timothy Casey
South Australia
wo****@iprimus.com.au

Formerly:
ca***@smart.net.au

Phenomenal Speed Comprehension:
Discover the World's most advanced speed reading application at:
http://www.fieldcraft.biz/shop/

"brucie" <sh**@bruciesusenetshit.info> wrote in message
news:2h************@uni-berlin.de...
in post: <news:40********@news.iprimus.com.au>
Timothy Casey <wo****@iprimus.com.au> said:
Is there any way to code an external style sheet to ensure that all pages opening with a reference to that style sheet include generic content such as headers, logos, taglines, universal navigation links, etc...?


possible but with limited browser support and thats not what CSS is for.
CSS is for attaching style to structured documents.

use your favorite server side language to stick common goodies into each
requested page before it gets sent to the visitor.
a relatively sized cell that includes a scrollbar when the content
overflows the bounds of the cell...?


you can do it but you really need to think about if you should. browsers
already have two scrollbars built in.

--
b r u c i e

Jul 20 '05 #4

P: n/a
in post: <news:40**********@news.iprimus.com.au>
Timothy Casey <wo****@iprimus.com.au> said:
Well, here's the thing,
heres another thing:

How am I supposed to post my replies in a newsgroup?:
http://allmyfaqs.com/faq.pl?How_to_post
I would rather not have the extra scroll bar,
then don't put one in with css. the browser scrollbars will appear if
needed. try to avoid a horizontal scrollbar as long as you can.
It would be great if we could get the browser's scrollbar to move all the
unique content instead of duplicating scrollbars as seen in frames - while
all the generic content remains static and unmoved by scrolling....
use position:fixed. not supported by IE but there is a workaround:
http://devnull.tagsoup.com/fixed/
This can be done with images in CSS by setting the background-attachment
property to "fixed". However, embedding text and Menus just doesn't work in
this case.
position:fixed applies to all elements, not just images.
Fixing an SSI within an absolute span seems like the go here, but
I'd rather minimise duplicated code if possible...


not really an issue if you're using SSIs to stick common markup in
before sending and the size of the markup is usually (but not always) a
lot less than the other page content such as images. you can further
reduce the size before sending it by gziping. caching directives can
suggest not asking for it again.

--
b r u c i e
Jul 20 '05 #5

P: n/a
in post: <news:40**********@news.iprimus.com.au>
Timothy Casey <wo****@iprimus.com.au> said:
This can be done with images in CSS by setting the background-attachment
property to "fixed". However, embedding text and Menus just doesn't work in
this case.


i think i misread this bit in my previous reply. if you're talking about
sticking in content using CSS then don't. it is not a solution.

--
b r u c i e
Jul 20 '05 #6

P: n/a
Andrew Thompson / 2004-05-26 11:27:
On Wed, 26 May 2004 17:32:04 +0930, Timothy Casey wrote:
Sub: Can CSS specify generic content?


No. You need server-side scripting for that.


It's also possible to use XHTML (or come up with your own XML
markup!) and XSLT, if you want to go with client-side solution, but
that is supported only by Mozilla and MSIE. Opera didn't have XSLT
support last time I checked. In addition, XSLT has a bit steep
learning curve.

--
Mikko
Jul 20 '05 #7

P: n/a
Mikko Rantalainen <mi**@st.jyu.fi> wrote:
Andrew Thompson / 2004-05-26 11:27:
On Wed, 26 May 2004 17:32:04 +0930, Timothy Casey wrote:
Sub: Can CSS specify generic content?


No. You need server-side scripting for that.


It's also possible to use XHTML (or come up with your own XML
markup!) and XSLT, if you want to go with client-side solution, but
that is supported only by Mozilla and MSIE. Opera didn't have XSLT
support last time I checked. In addition, XSLT has a bit steep
learning curve.


No need for learning XSLT just to do simple inclusions with XML. In
theory, you can do it by defining a few entities. Implementation may
not match theory.
Jul 20 '05 #8

P: n/a

"Wolfgang Wildeblood" <wo****************@yahoo.com.au> wrote in message
news:a9**************************@posting.google.c om...
Mikko Rantalainen <mi**@st.jyu.fi> wrote:
Andrew Thompson / 2004-05-26 11:27:
On Wed, 26 May 2004 17:32:04 +0930, Timothy Casey wrote:

>Sub: Can CSS specify generic content?

No. You need server-side scripting for that.


It's also possible to use XHTML (or come up with your own XML
markup!) and XSLT, if you want to go with client-side solution, but
that is supported only by Mozilla and MSIE. Opera didn't have XSLT
support last time I checked. In addition, XSLT has a bit steep
learning curve.


No need for learning XSLT just to do simple inclusions with XML. In
theory, you can do it by defining a few entities. Implementation may
not match theory.


Can all this be set up to run server-side?

=~=
Timothy Casey
South Australia
wo****@iprimus.com.au

Formerly:
ca***@smart.net.au

Phenomenal Speed Comprehension:
Discover the World's most advanced speed reading application at:
http://www.fieldcraft.biz/shop/
Jul 20 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.