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

"Bridge" CSS Classes?

DC
Hi,

I designed many usercontrols and some webcontrols and I using css-
classes to style elements in these controls. I now have the
requirement to use these controls in a different webproject which has
central stylesheets to which I must attach.

I.e. I intended to change the style in the .css file containing the
definition for cssclass="xyz-style", but now I must change all
occurrences (some for the webcontrols in codebehind) to cssclass="abc-
style".

I am not good at webdesign and I always wonder how to reuse the aspx/
ascx parts, but inserting different classes does not seem logical to
me. I guess I could use a construct like cssclass="<% =Styles.Style1
%>" but I was hoping there is a better way to bridge the "abc-style"
to the "xyz-style".

Thanks for any hint on this in advance,
Regards
DC

Oct 29 '07 #1
2 1045
Helllo DC

Maybe you`r searching for "themes and skins"
- http://www.google.ch/search?hl=de&q=...s+themes&meta=

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
Oct 30 '07 #2
DC
On 30 Okt., 09:41, "Peter Bucher [MVP]" <peter.buc...@aspnetzone.de>
wrote:
Helllo DC

Maybe you`r searching for "themes and skins"
-http://www.google.ch/search?hl=de&q=asp.net+skins+themes&meta=

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerlandhttp://www.aspnetzone.de/- ASP.NET Zone, die ASP.NET Communityhttp://www.aspnetzone.de/blogs/peterbucher/- Auf den Spuren von .NET
Thank you, Peter. Themeing is not exactly what I am looking for. I
have now decided that it will be too much effort to adapt to external
stylesheets, since many of the external styles are not applicable to
my layout anyway. However, it would be nice to import some properties,
simple stuff like font face and sizes, from the external stylesheet. I
guess this is not possible, at least no without producing the local
style sheet on the fly (and mixing some of the styles). The css
@import directive won't help since the external stylesheet contains
named elements unknown to my application.

Regards
DC

Nov 6 '07 #3

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

Similar topics

3
by: Dmitry | last post by:
Hi, I have defined interface for COM components which inludes an argument being filled with additional error info, if such occurs. If inside I raise COM Error, I populate that parameter. In COM...
0
by: epoxyparser | last post by:
Hi all, I work as a glue coder and often have to interface existing mechanisms with other platforms. Creating bridge code between command-line functionality and desktop GUIs takes up a lot of that...
2
by: morangolds | last post by:
Hi all, I work as a glue coder and often have to interface existing mechanisms with other platforms. Creating bridge code between command-line functionality and desktop GUIs takes up a lot of that...
2
by: oliharvey | last post by:
Hi - (not really a C# question -...apologies) I seem to have gravitated towards a particlar design pattern - and would welcome your opinions as to it's sanity - thanks... The basic idea is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.