Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: CSS3
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 18-Nov-12 20:46pm
Edited 8-Apr-13 22:10pm
v2

1 solution

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

Solution 1

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".
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 380
1 OriginalGriff 230
2 DamithSL 220
3 Zoltán Zörgő 150
4 Maciej Los 135
0 OriginalGriff 7,740
1 DamithSL 5,694
2 Sergey Alexandrovich Kryukov 5,404
3 Maciej Los 5,061
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 9 Apr 2013
Copyright © CodeProject, 1999-2014
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