2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								title: Create Visual Balance Using the text-align Property
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								---
							 
						 
					
						
							
								
									
										
										
										
											2019-03-09 19:37:39 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								 Remember to use < a > **`Read-Search-Ask` **</ a >  if you get stuck. Try to pair program  and write your own code 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								## Create Visual Balance Using the text-align Property
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-03-09 19:37:39 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								##  Hint
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Use the `text-align`  property.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  _try to solve the problem now_
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## Spoiler Alert!
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								**Solution ahead!**
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The following lines of code solves the challenge:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```html
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< style >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  h4 {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  text-align: center;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  p {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    text-align: justify;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  .links {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    margin-right: 20px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  .fullCard {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    border: 1px solid #ccc ;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    border-radius: 5px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    margin: 10px 5px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    padding: 4px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  .cardContent {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    padding: 10px;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / style >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< div  class = "fullCard" >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < div  class = "cardContent" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < div  class = "cardText" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      < h4 > Google< / h4 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      < p > Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.< / p > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < div  class = "cardLinks" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      < a  href = "https://en.wikipedia.org/wiki/Larry_Page"  target = "_blank"  class = "links" > Larry Page< / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      < a  href = "https://en.wikipedia.org/wiki/Sergey_Brin"  target = "_blank"  class = "links" > Sergey Brin< / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / div >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-03-09 19:37:39 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Code Explanation:
  
						 
					
						
							
								
									
										
										
										
											2018-10-12 15:37:13 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-03-09 19:37:39 +05:30 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  The `h4{}`  selects the `h4`  element. 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  `text-align: center;`  align the text in the `h4`  to the center. 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  The `p{}`  selects the `p`  element. 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  `text-align: justify;`  justifies the text in the `p` .