html - How to vertically align (justify) multiple elements -


i not quite sure how want going try. want vertically align 3 different elements, 3 wrapped in individual divs. code:

.service_info {    margin-top: 45px;    clear: both;    background-color: #ffffff;    font-family: "source-sans-pro", sans-serif;  }  .title_text_serviceinfo {    margin-top: 85px;    margin-left: 60px;    padding-bottom: 20px;    color: #333132;    font-size: 24px;    font-family: "source-sans-pro", sans-serif;  }  .service_info_times {    margin-top: -110px;    margin-left: 200px;    font-size: 18px;    line-height: 175%;    border-left: 5px solid #0b496f;    padding-left: 20px;    color: #333132;  }  .service_info_events {    postion: fixed;    left: 300px;    top: 20px;    font-size: 18px;    line-height: 175%;    color: #333132;  }
<!--service information-->    <section class="service_info">    <h2 class="secondary_header"> when gather </h2>      <h3 class="title_text_serviceinfo"> sunday </h3>     <div class="service_info_times">      <ul>        <li>7:00am</li>        <li>8:30am</li>        <li>9:00am</li>        <li>10:15am</li>        <li>4:00pm</li>      </ul>    </div>      <div class="service_info_events">      <ul>        <li>men's prayer</li>        <li>fellowship time</li>        <li>sunday school</li>        <li>worship service</li>        <li>revolution student ministries</li>      </ul>    </div>      <h3 class="title_text_serviceinfo"> monday </h3>    <div class="service_info_times">      <ul>        <li>6:00pm</li>      </ul>    </div>      <div class="service_info_events">      <ul>        <li>precept bible study</li>      </ul>    </div>      <h3 class="title_text_serviceinfo"> tuesday </h3>    <div class="service_info_times">      <ul>        <li>9:15am</li>      </ul>    </div>      <div class="service_info_events">      <ul>        <li>p.e.a.r.l.s. (lady's ministry</li>      </ul>    </div>      <h3 class="title_text_serviceinfo"> wednesday </h3>    <div class="service_info_times">      <ul>        <li>7:00am</li>        <li>7:00pm</li>        <li>7:00pm</li>        <li>7:00pm</li>      </ul>    </div>      <div class="service_info_events">      <ul>        <li>stronger senior</li>        <li>clc</li>        <li>club 56</li>        <li>house of prayer</li>      </ul>    </div>  </section>

feel free me correct other errors...i started learning how code website.

here image of want final product be: (i have link since new site.)

fujifame.com/art260/

edit: @gcyrillus has codepen that's cleaner: http://codepen.io/gc-nomade/pen/raovxv

i managed hack code submission. hope helps out code needs rewritten. based on image have, should have 2 columns of divs. day of week should in first column div , events should in second. add css property foat:left; second column divs, , clear them using css property clear: if arent moving down next column. hope gives head start! here go.

.header{ clear:both; }  .service_info {    margin-top: 45px;      background-color: #ffffff;    font-family: "source-sans-pro", sans-serif;  }  .title_text_serviceinfo {    margin-top: 100px;    margin-left: 60px;    /*padding-bottom: 20px;*/    color: #333132;    font-size: 24px;    font-family: "source-sans-pro", sans-serif;    float:left;    clear:left;    width:140px;  }  .service_info_times {    margin-top: 20px;    /*margin-left: 200px;*/    font-size: 18px;    line-height: 175%;    border-left: 5px solid #0b496f;    padding-left: 20px;    color: #333132;    float:left;    clear:right;  }  .service_info_events {    font-size: 18px;    line-height: 175%;    color: #333132;    clear:right;  }    .secondmargin{ margin-top:40px; }  .thirdmargin{ margin-top:80px; }
<section class="service_info">    <div id = "header">      <h2 class="secondary_header"> when gather </h2>    </div>      <h3 class="title_text_serviceinfo"> sunday </h3>     <div class="service_info_times">      <ul>        <li>7:00am men's prayer</li>        <li>8:30am fellowship time</li>        <li>9:00am sunday school</li>        <li>10:15am worship service</li>        <li>4:00pm revolution student ministries</li>      </ul>    </div>          <h3 class="title_text_serviceinfo secondmargin"> monday </h3>    <div class="service_info_times">      <ul>        <li>6:00pm precept bible study</li>      </ul>    </div>      <h3 class="title_text_serviceinfo secondmargin"> tuesday </h3>    <div class="service_info_times">      <ul>        <li>9:15am p.e.a.r.l.s. (lady's ministry)</li>      </ul>    </div>      <h3 class="title_text_serviceinfo"> wednesday </h3>    <div class="service_info_times">      <ul>        <li>7:00am stronger senior</li>        <li>7:00pm clc</li>        <li>7:00pm club 56</li>        <li>7:00pm house of prayer</li>      </ul>    </div>  </section>


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -