473,387 Members | 1,890 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,387 software developers and data experts.

Creating a Template with CSS

Hi -

I hope this isn't too silly of a question but I am really confused...

I have an external style sheet that defines a header and a left
sidebar as well as a content body.

What I want to do is put an image in both the header (a complex
rollover with menus created in Fireworks and outputted as a table) and
the sidebar. These images will appear on every page.

How can I do this using style sheets? It seems simple to do. If I
understand correctly, these images are considered content and need to
be added to an HTML file not a CSS file, however, this defeats the
entire purpose of what I am doing...to not have to copy and paste
images over and over.

So, how can I load images into these regions with as little redundance
as possible?

Thanks in Advance,
Ryan
Jul 20 '05 #1
3 1877
In article <i2********************************@4ax.com>, Ryan R. Rosario
wrote:
Hi -

I hope this isn't too silly of a question but I am really confused...

I have an external style sheet that defines a header and a left
sidebar as well as a content body.

What I want to do is put an image in both the header (a complex
rollover with menus created in Fireworks and outputted as a table) and
the sidebar. These images will appear on every page.
What is that image? Decoration or content?
How can I do this using style sheets? It seems simple to do. If I
understand correctly, these images are considered content and need to
be added to an HTML file not a CSS file, however, this defeats the
entire purpose of what I am doing...to not have to copy and paste
images over and over.
CSS is not there to replace HTML, even if you can do that with it.
So, how can I load images into these regions with as little redundance
as possible?


It is possible, but if your images are content, you should use
preprosessor, SSI, replace, php or whatever, but CSS.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #2
Ryan R. Rosario wrote:

What I want to do is put an image in both the header (a complex
rollover with menus created in Fireworks
I don't know what these rollovers are, but it sounds like images as
text. Links are more accessible as text than images made to look like
text. And css can be used to enhance their look and mimic js rollovers.
and outputted as a table) and the sidebar.
< http://www.allmyfaqs.com/faq.pl?Tableless_layouts >
How can I do this using style sheets? It seems simple to do. If I
understand correctly, these images are considered content and need
to be added to an HTML file not a CSS file,
Yes.
however, this defeats the entire purpose of what I am doing...to
not have to copy and paste images over and over
Then you're hoping for something for css that it can't deliver.
So, how can I load images into these regions with as little
redundance as possible?


< http://david.us-lot.org/www/frames/#worm >

--
Brian
follow the directions in my address to email me

Jul 20 '05 #3
Thanks for the replies. I guess I am going to stick to SSI for this
site.

It seems like that contradicts the purpose of CSS...maybe this
functionality will be added in a future standard?

Thanks Again,
Ryan

On Thu, 24 Jul 2003 07:47:00 GMT, Ryan R. Rosario
<uc****************@NO-SPAMhotmail.com> wrote:
Hi -

I hope this isn't too silly of a question but I am really confused...

I have an external style sheet that defines a header and a left
sidebar as well as a content body.

What I want to do is put an image in both the header (a complex
rollover with menus created in Fireworks and outputted as a table) and
the sidebar. These images will appear on every page.

How can I do this using style sheets? It seems simple to do. If I
understand correctly, these images are considered content and need to
be added to an HTML file not a CSS file, however, this defeats the
entire purpose of what I am doing...to not have to copy and paste
images over and over.

So, how can I load images into these regions with as little redundance
as possible?

Thanks in Advance,
Ryan


Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Thomas Matthews | last post by:
Hi, How do I create a const table of pointers to member functions? I'm implementing a Factory pattern (or jump table). I want to iterate through the table, calling each member function until a...
0
by: Ex-Em-El | last post by:
I have a problem in creating a dynamic table in the same xml : 1.xml: <?xml version="1.0" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="2.xsl"?> <aaa...
4
by: Martin | last post by:
I want to build a data entry form for creating and updating info on something. When I'm first creating an item all the fields need to be editable. There after some fields become readonly. Most...
1
by: Hasani \(remove nospam\) | last post by:
The way the system works is, you create a user control (ascx) that will be a template and must implement the interface IPageTemplate. You then create one or more user controls (ascx) that implement...
2
by: jen_designs | last post by:
I am trying to create a template in dot net. All the articles I have read on the net are rather confusing. I need a simple solution to create a header and a footer on each page. Can someone...
9
by: hazz | last post by:
I want to display 'n' records for a table-driven data entry page. The first column should be readonly and the 2nd column, a checkbox WRITABLE (NOT READONLY). I can't use the gridview because it...
3
by: alan | last post by:
Hello all, I'd like to know if there is a nice method of defining a functor creator which accepts an N-ary function and returns a functor based on that function. For example I have a function:...
13
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I am not accustomed to creating xml files programmatically. The big picture is this: This will be in VB/VS 2005/ winforms. I have a DTD, a sample XML, and an outside data source I will use to...
2
by: slizorn | last post by:
hi guys, i need to make a tree traversal algorithm that would help me search the tree.. creating a method to search a tree to find the position of node and to return its pointer value basically i...
5
by: randysimes | last post by:
I am making a previous program into a template to calculate all 11 options. (int, double, long double, char, etc) I believe I have the right idea, but the syntax is way off. Could you please provide...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.