How to align text within a column?

Course Queries Syllabus Queries 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Syllabus Queries related to Course Queries. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago


I am trying to create a 3 column webpage. How do I center the header and paragraph on the middle column? How would I align the text to the right when I enter information in the last column? Appreciate the help, thanks.

Also, how do I align the copy right in the middle of the page to the right?

 

*{  
    font-family: Melvetica;
    margin: 0px;
    padding: 0px;
    }

body{
    background-color: #6B6A67;
     }     
#container{
    width: 920px;
    background-color: white;
    padding: 10px;
    margin-left: auto; /*will center your page*/
    margin-right: auto; /*will center your page*/
    }
    
h1, h2{
   text-align: center;
    }



li{
    text-align: center;
    padding: 5px;
    }
h4{
    padding: 5px;
    text-align: center;
    }

/*To style an ID within an ID under it use the parent ID--start with header then call the ID you want to select*/
#container #header{
    height: 80px;
    background-color: #ADA9A0;
    padding-top: 20px;
    padding-left: 10px;
    padding-right: 20px;
    margin-bottom: 5px; /*To add empty space to bottom of the element*/
    }  
#container #navigation{
    margin-top: 5px;
    background-color: #ADA9A0;
    color: white;
    padding-top: 5px;
    padding-bottom: 5px;
    border: 2px solid #ADA9A0;
    }    
    
#container #content{
    background-color: #D9D5CE;
    min-height: 300px; 
    margin-top: 5px;
    margin-bottom: 5px; /*To add empty space to bottom of the element*/
    }  
    
#container #content #sidebar1{
    background-color: #ADA9A0;
    float: left;
    width: 200px;
    min-height: 300px;
    margin-bottom: 3px;
    }     
#container #content #column1{
    background-color: white;
    min-height: 300px;
    margin-bottom: 3px; 
    margin-left: 200px;
    margin-right: 200px;
    margin: 0;
    }         
#
                                                
                                                
0 views
0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.