Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Three Column template

#3
Hey man, nice share.

I'm a little curious as to why you've decided to use a large image of pure white to create a white background? You could simply use "background: #fff;".

Have you tried looking into flexbox?

You could save a lot of time and stress (it does for me Tongue ) using flexbox, achieving this sort of layout is hard no more! Big Grin

I'm going to show you the changes I would make to your CSS, might save you some time.
Quote:....
 
.main{
/*background:transparent url(http://orig09.deviantart.net/d6e6/f/2015...8ceprb.jpg)
repeat-x 0 0;*/


    background: #fff;
    padding:28.2px;
    /*overflow: scroll;  Why add a scroll bar when there is no need? */
    font-family: "Arial";
    line-height: 13.3px;
    font-size: 12.5px;

}
 
.inner-main{
    padding:10px;
    width:100%;
    display: flex;
    justify-content: space-evenly;

}
 
 
 
.inner-main > * {     /* Use > * to select all direct children of the .inner-main class. */
    width: 100%;

    border-left: 1.5px dashed #000;
    border-right: 1.5px dashed #000;
    padding: 20px;
}


/* Remove all .columnsfit classes. */

 
.footer{
    clear:both;
}

Then all it takes to make this layout responsive is this:
Code:
@media (max-width: 960px) {
    .inner-main {
        flex-wrap: wrap;
    }
}


Be sure to add the responsive meta tag to inside your <head> to tell the browser your page is optimised for mobile.
Code:
<meta name="viewport" content="width=device-width">


Look at the difference: https://i.imgur.com/NYhunuw.mp4

Forgot to add the borders in the vid, try this:
Code:
.inner-main > * {
   border-left: 3px dashed black;
}
.inner-main > *:last-child {
   border-right: 3px dashed black;
}
@media (max-width: 960px) {
   .inner-main > * {
     border-right: 3px dashed black;
   }
}
[Image: forumonic-bar.png]...............[Image: xige-logo-png-blue-sml.png]
Latest snapshots: Postbit Design - Multi Login Modal (1) - Responsive Pollbar
Reply


Messages In This Thread
Three Column template - by Altair - February 7th, 2019 at 12:21 AM
RE: Three Column template - by Darth-Apple - February 7th, 2019 at 4:02 AM
RE: Three Column template - by Harry K. - February 8th, 2019 at 8:40 PM
RE: Three Column template - by Thomas - February 9th, 2019 at 8:14 AM
RE: Three Column template - by SpookyZalost - February 10th, 2019 at 7:03 PM
RE: Three Column template - by Altair - February 12th, 2019 at 5:28 AM
RE: Three Column template - by effone - February 13th, 2019 at 8:41 AM
RE: Three Column template - by Thomas - February 14th, 2019 at 12:33 AM
RE: Three Column template - by SpookyZalost - February 16th, 2019 at 6:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Two-column template Altair 0 2,608 February 7th, 2019 at 12:41 AM
Last Post: Altair



Users browsing this thread: 1 Guest(s)

Dark/Light Theme Selector

Contact Us | Makestation | Return to Top | Lite (Archive) Mode | RSS Syndication 
Proudly powered by MyBB 1.8, © 2002-2024
Forum design by Makestation Team © 2013-2024