Click here to Skip to main content
15,888,454 members
Home / Discussions / Web Development
   

Web Development

 
QuestionUsing DOM with Selector Values, Assignment Pin
Member 137687478-Apr-18 9:10
Member 137687478-Apr-18 9:10 
QuestionHow to perform addition from LineTotal to subtotal using HTML JavaScript Pin
Nikhil Dange21-Mar-18 3:24
Nikhil Dange21-Mar-18 3:24 
SuggestionQuestion about crud operations Pin
Maniteja Attili20-Mar-18 10:25
Maniteja Attili20-Mar-18 10:25 
QuestionRe: Question about crud operations Pin
Richard MacCutchan20-Mar-18 12:25
mveRichard MacCutchan20-Mar-18 12:25 
AnswerRe: Question about crud operations Pin
Maniteja Attili21-Mar-18 3:34
Maniteja Attili21-Mar-18 3:34 
GeneralRe: Question about crud operations Pin
Richard MacCutchan21-Mar-18 4:08
mveRichard MacCutchan21-Mar-18 4:08 
GeneralTemplates with just HTML/CSS (without a back-end) Pin
Ritwesh6-Mar-18 19:55
Ritwesh6-Mar-18 19:55 
QuestionHTML Tables and CSS control Pin
OzWaz5-Mar-18 11:30
OzWaz5-Mar-18 11:30 
The Situation
I am displaying data from MYSQL database into a HTML table on a web page.
I am using CSS to display alternative rows in different text size and background colours.

I am using the 'hover' function to change background colours and text size

The Problem
The 'hover' function works perfectly for the 'odd; rows however for the 'even' rows it will change the text size but not the background colour

My CSS code
table tbody tr:nth-child(odd) td {
			background-color: lightblue;
		}

.table tbody tr:nth-child(even) td {
			background-color: lightgreen;
		}
table tbody tr:hover  td {
	background-color: white;
	transition: all .5s;
	font-weight:normal;
	font-size: 2.5em;
	color: black;
	border-right: 1px solid grey;
}


Solution:
Can anyone spot the problem?
AnswerRe: HTML Tables and CSS control Pin
Richard Deeming5-Mar-18 12:46
mveRichard Deeming5-Mar-18 12:46 
GeneralRe: HTML Tables and CSS control Pin
OzWaz5-Mar-18 21:55
OzWaz5-Mar-18 21:55 
GeneralRe: HTML Tables and CSS control Pin
W Balboos, GHB4-May-18 7:10
W Balboos, GHB4-May-18 7:10 
AnswerRe: HTML Tables and CSS control Pin
Peter_in_27805-Mar-18 14:03
professionalPeter_in_27805-Mar-18 14:03 
GeneralRe: HTML Tables and CSS control Pin
OzWaz5-Mar-18 21:48
OzWaz5-Mar-18 21:48 
GeneralRe: HTML Tables and CSS control Pin
Peter_in_27805-Mar-18 22:46
professionalPeter_in_27805-Mar-18 22:46 
GeneralRe: HTML Tables and CSS control Pin
OzWaz6-Mar-18 20:31
OzWaz6-Mar-18 20:31 
Questionjavascript object.function().function() not working Pin
easyj5-Mar-18 9:40
easyj5-Mar-18 9:40 
AnswerRe: javascript object.function().function() not working Pin
Richard Deeming5-Mar-18 12:39
mveRichard Deeming5-Mar-18 12:39 
Questionwhy my sitemap can not be created by online sitemap generator ? Pin
babak11104-Mar-18 19:45
babak11104-Mar-18 19:45 
AnswerRe: why my sitemap can not be created by online sitemap generator ? Pin
OriginalGriff4-Mar-18 19:49
mveOriginalGriff4-Mar-18 19:49 
GeneralRe: why my sitemap can not be created by online sitemap generator ? Pin
babak11105-Mar-18 20:31
babak11105-Mar-18 20:31 
AnswerRe: why my sitemap can not be created by online sitemap generator ? Pin
Member 1406839626-Nov-18 20:14
Member 1406839626-Nov-18 20:14 
GeneralRe: why my sitemap can not be created by online sitemap generator ? Pin
Kelly Ferguson19-May-19 23:15
Kelly Ferguson19-May-19 23:15 
QuestionHow to Fill docing of a fieldset at HTML document? Pin
ICEFLOWER224-Feb-18 15:50
ICEFLOWER224-Feb-18 15:50 
AnswerRe: How to Fill docing of a fieldset at HTML document? Pin
W Balboos, GHB28-Feb-18 7:57
W Balboos, GHB28-Feb-18 7:57 
AnswerRe: How to Fill docing of a fieldset at HTML document? Pin
Christopher Charles8-May-18 1:02
Christopher Charles8-May-18 1:02 

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.