Search:
Namespaces
Discussions
.NET v1.1
Feedback
CSS: User-defined
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngwishlist' list
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Mike Connelly
I would like to permit users to define custom colors for my website.
Traditionally, this is done by creating variables that are placed in
html <font> tags. Of course, <font> tags are greatly discouraged these
days in favor of the more efficient CSS tags, which define classes and
then apply colors against the class members. Currently, I have a
site-wide CSS file; the challenge is to have a user-specific CSS file.
Given that I am using CSS, is there a way to permit users to define
their own colors, store them in a database record associated with their
user account or on a client-side cookie and thereby modify the CSS file?
If not, shouldn't there be?
Note that this is distinct from a browser based CSS override, which
would apply to all sites that the user visits as opposed to just my
site.
Regards,
Mike
Reply to this message...
Mark McEahern (VIP)
Why not just generate a <style/> tag with user-specific settings for the
various class selectors?
<html>
<head>
<style>
<%
' You get the idea, I'm sure...
RenderUserStyles userId
%>
</style>
// mark
[Original message clipped]
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com