Use CSS to handle the overall style of your pages, the look and feel,
and the layout and attach those styles to the HTML elements, either
through IDs or classes or both. Use jQuery to add additional
functionality to your pages, but keep as much of the styling as
possible within the CSS file(s).

This actually accomplishes two things:
1. You can easily change the look and feel and layout of your pages by
just editing the CSS (see CSS Zen Garden for examples of this)
2. Users who have JavaScript disabled, will still get a nicely styled
page, even if they do miss out on the added functionality.

On Apr 16, 2:04 pm, "JFrameworks.com" <[EMAIL PROTECTED]> wrote:
> Hi,
> I have moderate experience with CSS, HTML & JScript.
> I have task of making for HTML Pages using CSS and JQuery.  Those
> pages will be further extended, copied to full fledged system.
>
> I am thinking of two patterns for html pages
> 1. Define only class selectors in CSS and use JQuery to attach those
> class to relevant IDs & handle events?
> or
> 2. Use CSS to apply styles to html elements too and use JQuery only to
> handle events etc.
>
> What approach you guys use? Is there any blog or link to discuss on
> this topic more?
>
> I am more looking into generic pattern which can be applied to new
> pages.
>
> Thanks
> Ashish J

Reply via email to