Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 11:45 PM
Timothy Casey
Guest
 
Posts: n/a
Default 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
worloq@iprimus.com.au

Formerly:
casey@smart.net.au

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


  #2  
Old July 20th, 2005, 11:45 PM
brucie
Guest
 
Posts: n/a
Default Re: Can CSS specify generic content?

in post: <news:40b44e4f_1@news.iprimus.com.au>
Timothy Casey <worIoq@iprimus.com.au> said:
[color=blue]
> 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...?[/color]

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.
[color=blue]
> a relatively sized cell that includes a scrollbar when the content
> overflows the bounds of the cell...?[/color]

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


  #3  
Old July 20th, 2005, 11:45 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: Can CSS specify generic content?

On Wed, 26 May 2004 17:32:04 +0930, Timothy Casey wrote:
[color=blue]
> Sub: Can CSS specify generic content?[/color]

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
  #4  
Old July 20th, 2005, 11:45 PM
Timothy Casey
Guest
 
Posts: n/a
Default Re: Can CSS specify generic content?

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
worloq@iprimus.com.au

Formerly:
casey@smart.net.au

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



"brucie" <shit@bruciesusenetshit.info> wrote in message
news:2hj20kFdf2saU1@uni-berlin.de...[color=blue]
> in post: <news:40b44e4f_1@news.iprimus.com.au>
> Timothy Casey <worIoq@iprimus.com.au> said:
>[color=green]
> > Is there any way to code an external style sheet to ensure that all[/color][/color]
pages[color=blue][color=green]
> > opening with a reference to that style sheet include generic content[/color][/color]
such as[color=blue][color=green]
> > headers, logos, taglines, universal navigation links, etc...?[/color]
>
> 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.
>[color=green]
> > a relatively sized cell that includes a scrollbar when the content
> > overflows the bounds of the cell...?[/color]
>
> 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
>
>[/color]


  #5  
Old July 20th, 2005, 11:45 PM
brucie
Guest
 
Posts: n/a
Default Re: Can CSS specify generic content?

in post: <news:40b4784c$1_1@news.iprimus.com.au>
Timothy Casey <worIoq@iprimus.com.au> said:
[color=blue]
> Well, here's the thing,[/color]

heres another thing:

How am I supposed to post my replies in a newsgroup?:
http://allmyfaqs.com/faq.pl?How_to_post
[color=blue]
> I would rather not have the extra scroll bar,[/color]

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.
[color=blue]
> 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....[/color]

use position:fixed. not supported by IE but there is a workaround:
http://devnull.tagsoup.com/fixed/
[color=blue]
> 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.[/color]

position:fixed applies to all elements, not just images.
[color=blue]
> Fixing an SSI within an absolute span seems like the go here, but
> I'd rather minimise duplicated code if possible...[/color]

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


  #6  
Old July 20th, 2005, 11:45 PM
brucie
Guest
 
Posts: n/a
Default Re: Can CSS specify generic content?

in post: <news:40b4784c$1_1@news.iprimus.com.au>
Timothy Casey <worIoq@iprimus.com.au> said:
[color=blue]
> 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.[/color]

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


  #7  
Old July 20th, 2005, 11:45 PM
Mikko Rantalainen
Guest
 
Posts: n/a
Default Re: Can CSS specify generic content?

Andrew Thompson / 2004-05-26 11:27:[color=blue]
> On Wed, 26 May 2004 17:32:04 +0930, Timothy Casey wrote:
>[color=green]
>>Sub: Can CSS specify generic content?[/color]
>
> No. You need server-side scripting for that.[/color]

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
  #8  
Old July 20th, 2005, 11:45 PM
Wolfgang Wildeblood
Guest
 
Posts: n/a
Default Re: Can CSS specify generic content?

Mikko Rantalainen <mira@st.jyu.fi> wrote:
[color=blue]
> Andrew Thompson / 2004-05-26 11:27:[color=green]
> > On Wed, 26 May 2004 17:32:04 +0930, Timothy Casey wrote:
> >[color=darkred]
> >>Sub: Can CSS specify generic content?[/color]
> >
> > No. You need server-side scripting for that.[/color]
>
> 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.[/color]

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.
  #9  
Old July 20th, 2005, 11:46 PM
Timothy Casey
Guest
 
Posts: n/a
Default Re: Can CSS specify generic content?


"Wolfgang Wildeblood" <wolfgangwildeblood@yahoo.com.au> wrote in message
news:a9f17fcb.0405262055.4082a573@posting.google.c om...[color=blue]
> Mikko Rantalainen <mira@st.jyu.fi> wrote:
>[color=green]
> > Andrew Thompson / 2004-05-26 11:27:[color=darkred]
> > > 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.[/color]
> >
> > 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.[/color]
>
> 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.[/color]

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

=~=
Timothy Casey
South Australia
worloq@iprimus.com.au

Formerly:
casey@smart.net.au

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


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles