Click here to Skip to main content
15,890,882 members
Home / Discussions / Web Development
   

Web Development

 
Questionbeginner URL rewrite question Pin
Jassim Rahma10-Jun-12 4:54
Jassim Rahma10-Jun-12 4:54 
AnswerRe: beginner URL rewrite question Pin
Sandeep Mewara11-Jun-12 23:10
mveSandeep Mewara11-Jun-12 23:10 
SuggestionRe: beginner URL rewrite question Pin
Naveen_1439-Aug-12 20:10
Naveen_1439-Aug-12 20:10 
Questioncrystal tool problem Pin
gopalmahadak9-Jun-12 17:38
gopalmahadak9-Jun-12 17:38 
AnswerRe: crystal tool problem Pin
Sandeep Mewara9-Jun-12 20:07
mveSandeep Mewara9-Jun-12 20:07 
QuestionDifferent text-align for columns in a table Pin
M-Badger8-Jun-12 10:35
M-Badger8-Jun-12 10:35 
AnswerRe: Different text-align for columns in a table Pin
User 17164928-Jun-12 11:34
professionalUser 17164928-Jun-12 11:34 
GeneralRe: Different text-align for columns in a table Pin
M-Badger8-Jun-12 12:45
M-Badger8-Jun-12 12:45 
Thanks for that, I had just started with that pseudo-class but I wasn't making much progress, however your code worked - though I changed the argument to -n+3 to catch columns 1 to 3. I am left wondering about a CSS 2.1 solution though, or is there nothing more effective than the td class="..." in 2.1? It's not too much of a problem since the audience is very limited and probably only some of their mobile browsers would get stroppy with CSS3 code (and it's not like it's mission critical or anything).

CSS
#content table.player th:nth-child(-n+3), #content table.player td:nth-child(-n+3) { text-align: left; }


For reference, the following option (using Chrome inspect element) assigns text-align to the colgroup but
(a) it gets assigned to both colgroup span="3" and colgroup span="6"
(b) the td doesn't see it at all, presumably since td doesn't descend from col or colgroup.

if I change it to this then it works somewhat better but still doesn't left-align the text, obviously I replaced the span="3" with 3 col's (and if I added a fourth it didn't have the text-align: left). I am assuming that reason (b) above is still at play.

CSS
#content table colgroup col:nth-child(-n+3) { text-align: left; }


I was then tempted to add the td as follows:

CSS
#content table colgroup.holeinfo td { text-align: left; }


The text-align: center doesn't show up an any of the elements so I stopped heading in that direction at all.

Mike
GeneralRe: Different text-align for columns in a table Pin
M-Badger8-Jun-12 12:52
M-Badger8-Jun-12 12:52 
GeneralRe: Different text-align for columns in a table Pin
User 17164928-Jun-12 13:27
professionalUser 17164928-Jun-12 13:27 
AnswerRe: Different text-align for columns in a table Pin
vvashishta18-Jun-12 20:36
vvashishta18-Jun-12 20:36 
Questionwhat are hidden links?? Pin
johnkennedy14-Jun-12 2:49
johnkennedy14-Jun-12 2:49 
AnswerRe: what are hidden links?? Pin
jfriedman4-Jun-12 2:56
jfriedman4-Jun-12 2:56 
AnswerRe: what are hidden links?? Pin
mccurdy4-Jun-12 21:41
mccurdy4-Jun-12 21:41 
AnswerRe: what are hidden links?? Pin
Gerben Jongerius6-Jun-12 22:36
Gerben Jongerius6-Jun-12 22:36 
AnswerRe: what are hidden links?? Pin
vvashishta18-Jun-12 20:38
vvashishta18-Jun-12 20:38 
QuestionForm using AJAX / jQuery to set session with dropdown menu Pin
cde1113-Jun-12 11:28
cde1113-Jun-12 11:28 
Questionweb site contet most recent view Pin
amanpavanker2-Jun-12 16:37
amanpavanker2-Jun-12 16:37 
QuestionIs aspx still useful face to HTML5 and Javascript? Pin
Bastien Vandamme31-May-12 23:10
Bastien Vandamme31-May-12 23:10 
AnswerRe: Is aspx still useful face to HTML5 and Javascript? Pin
Eddy Vluggen6-Jun-12 22:51
professionalEddy Vluggen6-Jun-12 22:51 
GeneralMessage Closed Pin
29-May-12 16:07
SophiaGreen29-May-12 16:07 
AnswerRe: How to make your support service efficiently? Pin
Eddy Vluggen6-Jun-12 22:49
professionalEddy Vluggen6-Jun-12 22:49 
QuestionExample for a desktop app developed with HTML5 Pin
amit123429-May-12 15:34
amit123429-May-12 15:34 
AnswerRe: Example for a desktop app developed with HTML5 Pin
Eddy Vluggen6-Jun-12 22:52
professionalEddy Vluggen6-Jun-12 22:52 
AnswerRe: Example for a desktop app developed with HTML5 Pin
Tonyglen8-Jun-12 7:39
Tonyglen8-Jun-12 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.