Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

cracked.io | Best Forum Around | Free Premium Accounts




 1941

How To Create a Blog Layoutw

by pruned - 12 September, 2019 - 03:47 PM
This post is by a banned member (pruned) - Unhide
pruned  
Godlike
933
Posts
132
Threads
4 Years of service
#1
How To Create a Blog Layout
Step 1) Add HTML:
Example
Quote:<div class="header">
  <h2>Blog Name</h2>
</div>

<div class="row">
  <div class="leftcolumn">
    <div class="card">
      <h2>TITLE HEADING</h2>
      <h5>Title description, Dec 7, 2017</h5>
      <div class="fakeimg" style="height:200px;">Image</div>
      <p>Some text..</p>
    </div>
    <div class="card">
      <h2>TITLE HEADING</h2>
      <h5>Title description, Sep 2, 2017</h5>
      <div class="fakeimg" style="height:200px;">Image</div>
      <p>Some text..</p>
    </div>
  </div>
  <div class="rightcolumn">
    <div class="card">
      <h2>About Me</h2>
      <div class="fakeimg" style="height:100px;">Image</div>
      <p>Some text about me in culpa qui officia deserunt mollit anim..</p>
    </div>
    <div class="card">
      <h3>Popular Post</h3>
      <div class="fakeimg">Image</div><br>
      <div class="fakeimg">Image</div><br>
      <div class="fakeimg">Image</div>
    </div>
    <div class="card">
      <h3>Follow Me</h3>
      <p>Some text..</p>
    </div>
  </div>
</div>

<div class="footer">
  <h2>Footer</h2>
</div>


Step 2) Add CSS:


Example

Code:
[code]body {
 font-family: Arial;
 padding: 20px;
 background: #f1f1f1;
}

/* Header/Blog Title */
.header {
 padding: 30px;
 font-size: 40px;
 text-align: center;
 background: white;
}

/* Create two unequal columns that floats next to each other */
/* Left column */
.leftcolumn {
 float: left;
 width: 75%;
}

/* Right column */
.rightcolumn {
 float: left;
 width: 25%;
 padding-left: 20px;
}

/* Fake image */
.fakeimg {
 background-color: #aaa;
 width: 100%;
 padding: 20px;
}

/* Add a card effect for articles */
.card {
 background-color: white;
 padding: 20px;
 margin-top: 20px;
}

/* Clear floats after the columns */
.row:after {
 content: "";
 display: table;
 clear: both;
}

/* Footer */
.footer {
 padding: 20px;
 text-align: center;
 background: #ddd;
 margin-top: 20px;
}

/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {
 .leftcolumn, .rightcolumn {
   width: 100%;
   padding: 0;
 }
}
[/code]
Thanks Everyone  for Rep+ and Like

[Image: GQvTjMu.gif]  Fake Traffic to Earn Money [Image: GQvTjMu.gif]
Pruned#4956 
This post is by a banned member (pruned) - Unhide
pruned  
Godlike
933
Posts
132
Threads
4 Years of service
#2
This is a bump
Thanks Everyone  for Rep+ and Like

[Image: GQvTjMu.gif]  Fake Traffic to Earn Money [Image: GQvTjMu.gif]
Pruned#4956 
This post is by a banned member (pruned) - Unhide
pruned  
Godlike
933
Posts
132
Threads
4 Years of service
#3
(12 September, 2019 - 03:47 PM)pruned Wrote: Show More
How To Create a Blog Layout
Step 1) Add HTML:
Example
Code:
 
Quote:<div class="header">
  <h2>Blog Name</h2>
</div>

<div class="row">
  <div class="leftcolumn">
    <div class="card">
      <h2>TITLE HEADING</h2>
      <h5>Title description, Dec 7, 2017</h5>
      <div class="fakeimg" style="height:200px;">Image</div>
      <p>Some text..</p>
    </div>
    <div class="card">
      <h2>TITLE HEADING</h2>
      <h5>Title description, Sep 2, 2017</h5>
      <div class="fakeimg" style="height:200px;">Image</div>
      <p>Some text..</p>
    </div>
  </div>
  <div class="rightcolumn">
    <div class="card">
      <h2>About Me</h2>
      <div class="fakeimg" style="height:100px;">Image</div>
      <p>Some text about me in culpa qui officia deserunt mollit anim..</p>
    </div>
    <div class="card">
      <h3>Popular Post</h3>
      <div class="fakeimg">Image</div><br>
      <div class="fakeimg">Image</div><br>
      <div class="fakeimg">Image</div>
    </div>
    <div class="card">
      <h3>Follow Me</h3>
      <p>Some text..</p>
    </div>
  </div>
</div>

<div class="footer">
  <h2>Footer</h2>
</div>


Step 2) Add CSS:


Example
Code:
[code]body {
 font-family: Arial;
 padding: 20px;
 background: #f1f1f1;
}

/* Header/Blog Title */
.header {
 padding: 30px;
 font-size: 40px;
 text-align: center;
 background: white;
}

/* Create two unequal columns that floats next to each other */
/* Left column */
.leftcolumn {
 float: left;
 width: 75%;
}

/* Right column */
.rightcolumn {
 float: left;
 width: 25%;
 padding-left: 20px;
}

/* Fake image */
.fakeimg {
 background-color: #aaa;
 width: 100%;
 padding: 20px;
}

/* Add a card effect for articles */
.card {
 background-color: white;
 padding: 20px;
 margin-top: 20px;
}

/* Clear floats after the columns */
.row:after {
 content: "";
 display: table;
 clear: both;
}

/* Footer */
.footer {
 padding: 20px;
 text-align: center;
 background: #ddd;
 margin-top: 20px;
}

/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {
 .leftcolumn, .rightcolumn {
   width: 100%;
   padding: 0;
 }
}
Code:
 


[/quote]


thanks for support
Thanks Everyone  for Rep+ and Like

[Image: GQvTjMu.gif]  Fake Traffic to Earn Money [Image: GQvTjMu.gif]
Pruned#4956 
This post is by a banned member (pruned) - Unhide
pruned  
Godlike
933
Posts
132
Threads
4 Years of service
#4
This is a bump
Thanks Everyone  for Rep+ and Like

[Image: GQvTjMu.gif]  Fake Traffic to Earn Money [Image: GQvTjMu.gif]
Pruned#4956 
This post is by a banned member (pruned) - Unhide
pruned  
Godlike
933
Posts
132
Threads
4 Years of service
#5
This is a bump
Thanks Everyone  for Rep+ and Like

[Image: GQvTjMu.gif]  Fake Traffic to Earn Money [Image: GQvTjMu.gif]
Pruned#4956 
This post is by a banned member (pruned) - Unhide
pruned  
Godlike
933
Posts
132
Threads
4 Years of service
#6
This is a bump
Thanks Everyone  for Rep+ and Like

[Image: GQvTjMu.gif]  Fake Traffic to Earn Money [Image: GQvTjMu.gif]
Pruned#4956 
This post is by a banned member (pruned) - Unhide
pruned  
Godlike
933
Posts
132
Threads
4 Years of service
#7
This is a bump
Thanks Everyone  for Rep+ and Like

[Image: GQvTjMu.gif]  Fake Traffic to Earn Money [Image: GQvTjMu.gif]
Pruned#4956 

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)