473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Can CSS specify generic content?

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
8 2131
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
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
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
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
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
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
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

49
by: Steven Bethard | last post by:
I promised I'd put together a PEP for a 'generic object' data type for Python 2.5 that allows one to replace __getitem__ style access with dotted-attribute style access (without declaring another...
12
by: Jim Cochrane | last post by:
I just google-searched this group and could not find any references to this. I'm trying to figure out how to specify a three-part header with html. For example, left part ...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
3
by: Scottie_do | last post by:
I'm considering switching to C# and using VS2005, but I'd like to know if I can have a list of values at runtime and then specify (at runtime) what it's value type is. For example, I would have...
4
by: rsa_net_newbie | last post by:
Hi there, I have a Managed C++ object (in a DLL) which has a method that is defined like ... Generic::List<String^>^ buildList(String^ inParm) Now, when I compile it, I get "warning C4172:...
3
by: shapper | last post by:
Hello, I have a generic list named Rows: Dim a As New Generic.List(Of Row) Row is a structure which has 2 properties: Name and Content. Is it possible, without a for loop, to find a Row...
0
by: shapper | last post by:
Hello, I have an enum as follows: Public Enum Feature Title Content Date Search End
5
by: Alan | last post by:
I was wondering if anyone had design advice on this. . . . I am doing some mathematical operations looking at different metrics for data (in objects) I have captured. The object class has several...
1
by: filhodapuc | last post by:
How to Load the class "MyContent" dynamically ? I have 1 interface<T>, 1 abstract generic class<T> and 1 class. Check my code out: public interface IMyObjectInterface{ } public abstract...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.