Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
"Right-align the contents of the second and third data cells within each row.(Hint: Use the nth-of-type pseudo-class in your selector.)"

CSS
/*
   New Perspectives on HTML and CSS
   Additional Cases
   Case 1

   Young Notes Tables Style Sheet
   Author: 
   Date:   

   Filename:         tstyles.css
   Supporting Files: none

*/


table{
	font-size: 14px;
	border: 10px outset rgb(68,76,169);
	width:400px;
	margin:10px auto 10px auto;
	border-collapse: collapse;
}
table th{
	background-color: ivory;
	padding: 5px;
	vertical-align: top;
	border: 1px solid black;
}
table tr{
	text-align:vertical-align; baseline;
	padding: 5px;
	border: 1px solid black;
}
Posted
Updated 4-Oct-14 23:46pm
v3

1 solution

You can study CSS here CSS Tutorial[^]
Specifically nth-of-type() Selector[^]
And there are many other sites.
Using a search engine is less work than posting a question here. :)
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900