Click here to Skip to main content
15,899,658 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How to run Javascript queries in code (HTML) Pin
Richard Deeming30-Apr-18 1:12
mveRichard Deeming30-Apr-18 1:12 
QuestionCodeIgniter-Search Pin
Jireh Capao24-Apr-18 19:03
Jireh Capao24-Apr-18 19:03 
QuestionRe-code to get rid of Absolute Positioning? Pin
Member 1208020114-Apr-18 8:16
Member 1208020114-Apr-18 8:16 
AnswerRe: Re-code to get rid of Absolute Positioning? Pin
Blikkies17-Apr-18 22:33
professionalBlikkies17-Apr-18 22:33 
AnswerRe: Re-code to get rid of Absolute Positioning? Pin
Richard Deeming19-Apr-18 2:20
mveRichard Deeming19-Apr-18 2:20 
AnswerRe: Re-code to get rid of Absolute Positioning? Pin
W Balboos, GHB4-May-18 7:05
W Balboos, GHB4-May-18 7:05 
QuestionSaving data submitted online as pdf Pin
Deekkris13-Apr-18 9:23
Deekkris13-Apr-18 9:23 
AnswerRe: Saving data submitted online as pdf Pin
David Mujica17-Apr-18 3:20
David Mujica17-Apr-18 3:20 
QuestionNeed to Link to an Image on another Page already containing multiple images Pin
Member 1208020110-Apr-18 8:03
Member 1208020110-Apr-18 8:03 
AnswerRe: Need to Link to an Image on another Page already containing multiple images Pin
Richard Deeming19-Apr-18 2:07
mveRichard Deeming19-Apr-18 2:07 
QuestionRe: Need to Link to an Image on another Page already containing multiple images Pin
Sarcastic CA20-Apr-18 7:56
professionalSarcastic CA20-Apr-18 7:56 
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 

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.