Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

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

Regards,
Srinivas
Posted
Updated 8-Apr-13 21:10pm
v2

1 solution

hi,

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".
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900