Click here to Skip to main content
13,045,001 members (40,269 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I have some questions regarding styling can any one help me on those.

1. In my page i am giving some div elements and some textboxes and some other widgets.
For all the widgets and div i am defining some classes and id. For those id and classes
i am defining the styling in <style> tag in the same page. Then the changes have been
applied to the view page.
Now my question is can i give these styling in site.css and can i use those for all the
pages and remove the <style> tag in every page.

2. I am using kendo ui widgets. For each of the widget(listview,grid) i am defining an css
file. I am including the css file in every page where i required. But i want to style
like in one page i want list view background color as grey and in another page i want
the listview background color as light orange. Can i able to give the coloring in the
same css file or i include another css file
Hope you guys understand my questions. I am waiting for the reply

Posted 18-Nov-12 19:46pm
Updated 8-Apr-13 21:10pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


1: For consistent look of textboxes you have to write that css in site.css & also for div
element css put that css in site.css.Therefore defined css in site.css in beneificial because in each page you need not write css again you may reuse that css by just defined css
url at top/bottom of the page.

2: In second case you just override background color property by giving "!important".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 9 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100