Make your site's style easy to modify by users

by David Alfaro 6. October 2008 11:48

What are we facing

Users may use a customized style to see your web page. That’s true for Firefox and Internet Explorer, and it’s a powerful tool for users to survive an inaccessible site. How do you make users' life easier when they customized your site's style?

The Solution

You can do it by setting a “id” attribute to the “body” element. That “id” attribute must not be used by you, but it may be used by any user to customize how your page is displayed in his/her browser. Using appropriated rules and taking advantage of the high hierarchy of the “body”, users can restyle your site at their will.

For instance, if you add the attribute “ id=’aggiornosite’ ” to element “body” the user could do something like:

#aggiornosite h1 {
    font-family: Impact, sans-serif;
  } 
That's a heading 1 style just for your site!!

Some external references

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

css | accessibility

Comments

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



About Aggiorno KC

Aggiorno RSS Feeds As Web developers, we are always hunting for pieces of wisdom spread all over the Web, by friends, by books, or both. Normally it requires time and effort to search and locate that wisdom and then even more to implement it. Knowledge Capsules provide you with a consolidated place to find all the specific pieces of code and advice you are commonly looking for, all provided by fellow Web developers.

IE8 Compatibility Wizard

Automatically upgrades your website to render correctly in IE8!

Internet Explorer 8 Compatibility Wizard

Get it today!


ArtinSoft Corporation ArtinSoft is Microsoft Certified Partner ISV/Software Solutions and Microsft Visual Studio Partner

With over fifteen years of experience, ArtinSoft has proven to be a key player in software evolution, by allowing customers from all over the world to ensure business continuity and compliance through software migration solutions and developer tools created upon principles of artificial intelligence. At present time, ArtinSoft Corporation remains a private firm in constant growth through a strategic partner network. Read More...