Help, stupid wordpress post desing

kimomalcolmx

Power Member
Joined
Apr 11, 2011
Messages
727
Reaction score
262
Hello
I need some help, I searched all over the place but cant manage to find how to add vertical lines in wordpress post or page, here is a example of what i want
Sin título.webp
I can increase indent but then the next line of text is bellow
I am shore it is a stupid thing I am missing. if anyone can help it would be nice
thanks
 
Easiest way?

HTML
Code:
<div class="container">
<div class="box number1">
<p>text</p>
</div>
<div class="box number2">
<p>text</p>
</div>
<div class="box number3">
<p>text</p>
</div>
<div class="box number4">
<p>text</p>
</div>
</div>

CSS
Code:
.box {
float: left;
margin-right: 15px;
}

.container {
width: 500px;
}

Something like that.
 
You have done good job.. Thanks for sharing.. I will make use of this for sure..

Easiest way?

HTML
Code:
<div class="container">
<div class="box number1">
<p>text</p>
</div>
<div class="box number2">
<p>text</p>
</div>
<div class="box number3">
<p>text</p>
</div>
<div class="box number4">
<p>text</p>
</div>
</div>

CSS
Code:
.box {
float: left;
margin-right: 15px;
}

.container {
width: 500px;
}

Something like that.
 
Use http://cssdesk.com/ and in the upper-left box called HTML, fill the following code (I've modified my friend TreeOfL1's above-given codes slightly) --------->


<div class="container">
<div class="box number1">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
</div>
<div class="box number2">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
</div>
<div class="box number3">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
</div>
<div class="box number4">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
</div>
</div>


-----------

In the bottom-left box called CSS, fill the following -------->

.container {
width: 100%;
}

.box {
float: left;
padding: 0 2.5% 0 2.5%;
width:20%;
height: auto;
}

p
{
font-family: arial;
font-size: 14px;
}

@media all and (max-width: 420px) {
.container, .box {
float: none;
width: auto;
border-bottom:1px solid red;
}
}

----------------------

Play with the code as much as you wish, experiment with some more html/css, and learn and enjoy html/css basic programming!

Reduce the width of the browser slowly, and go all the way slowly of course (well, don't reduce too much, may be reduce the browser width up to a certain extent, for example, approx. 200px width), and see what happens in the right-hand (result) box.

Clicking on the left-arrow that is next to the HTML box at the top, you can hide the HTML and CSS boxes and keep only the result box visible.

Enjoy!


P.S.:
From one learner to another... :D. If there are any/many mistakes/errors please forgive the student. lol
 
Last edited:
Or use bootstrap and divide the 12 column grid into 4 x 3 cols.

<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-3"></div>
<div class="col-lg-3"></div>
<div class="col-lg-3"></div>
</div>
 
Of course, you can also add your graphic boxes inside the html and css codes and align + reposition them (while the browser width reduces and changes in formatting begin to appear) whichever way you wish. Look for auto-resizing and re-positioning those image boxes also. It's quite simple actually... :). Google is your friend.
 
Last edited:
Back
Top