Connecting Tech Pros Worldwide Forums | Help | Site Map

Basic CSS Question

Member
 
Join Date: Mar 2008
Posts: 55
#1: Oct 1 '08
Hi all,

i have a very basic css question. I already have a big css file with lot of classes init.

Expand|Select|Wrap|Line Numbers
  1. div.text label.full,
  2. div.text2 label.full,
  3. div.text3 label.full,
  4. div.text4 label.full
  5.  {
  6.   width: 152px;
  7.   padding-right: 10px;
  8.   font-size: 12px;
  9. }
  10.  
  11. div.radio p.question 
  12. {
  13.   font-weight: italic;
  14. }
1) and within the code should i use them like

div class =
p class =

2) I am trying to apply these styles for a table

confused how to do that....if i want to apply a style say that div class or p class to a row..should i do that before <tr> and aftter <table> ???

3) I am actually using this styles into usercontrol, are these styles to be applied in any other way for using them in usercontrols

Could anyone please let me know.

drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,580
#2: Oct 1 '08

re: Basic CSS Question


Quote:

Originally Posted by splendid9

1) and within the code should i use them like

div class =
p class =

Yes.
Quote:
2) I am trying to apply these styles for a table

confused how to do that....if i want to apply a style say that div class or p class to a row..should i do that before <tr> and aftter <table> ???
table tr p{css stuff}
Quote:
3) I am actually using this styles into usercontrol, are these styles to be applied in any other way for using them in usercontrols
Not sure what you mean here.
insertAlias's Avatar
Forum Leader
 
Join Date: Apr 2008
Location: San Antonio, TX (USA)
Posts: 2,608
#3: Oct 3 '08

re: Basic CSS Question


I think that he means .NET user controls. They're custom server controls. There should be no difference styling them than there is styling standard html.
Reply


Similar HTML / CSS bytes