How to make grid text use multiple columns - html

For a school project, I need to use a grid. I want to change the position of some articles with text. Can anyone help me? I don't understand how columns work and how to make article 1 the biggest one for example. See my image where I explain how the articles need to be positioned.
.
For example, the second article needs to be displayed, and then the first one.
.product-text {
display: grid;
grid-template: [row1-start] "grid-area2 grid-area1 grid-area3" 50% [row1-end]
/* [row2-start] "grid-area6" 25% [row2-end] */
/* [row3-start] "grid-area5" 25% [row3-end] */
/* [row4-start] "grid-area1" 25% [row4-end] */
/33%;
}
.story {
grid-area: grid-area1;
color: #B12293;
}
.problem {
grid-area: grid-area2;
color: #2297B1;
}
.use {
grid-area: grid-area3;
color: #44CB5F;
}
.users {
grid-area: grid-area4;
color: #4452CB;
}
.expectations {
grid-area: grid-area5;
color: #CB444C;
}
.future {
grid-area: grid-area6;
color: #593E3F;
}
<section class="product-text">
<article class="story">
<p><strong> Story about the innovation: </strong> </p>
<p>The development of our product began in 2016. We created this company with love and passion. </p>
<p>We wanted to create a thing were people can see the data of shoes. To be specific runnin shoes. </p>
<p>With this data we can help a lot of people to determine which type of running shoes they need </p>
<p>We worked for 3 years on this innovation, with a lot of testing we came with the right product. </p>
</article>
<article class="problem">
<p><strong> What problem does this solve? </strong> </p>
<p>The type of shoes you have, do have a lot of impact on how you run. With this innovation you can </p>
<p>choose the best shoes made for you, so you can be the best of yourself. </p>
<p>Poeple can set their own personal records when running the right type of shoes. </p>
<p>Btw, It is way better for your feet when walking on the right type of shoes. You won't get any blisters. </p>
</article>
<article class="use">
<p> <strong> How to use this innovation? </strong> </p>
<p>There is a treadmill with sensors and a computer connected when using this. </p>
<p>A person puts on some running shoes and will walk a couple of times up and down. </p>
<p>The computer connected will collect data and there you will see how you place your foot and shoe. </p>
<p>On the computer it will suggest if you need softer or harder shoes based on the algoritm</p>
</article>
<article class="users">
<p> <strong> Who will use this innovation?</strong> </p>
<p>A lot of people can use this innovation. The age is most of the time between 15-60.</p>
<p>Since running is a populur type of sport, we will have a lot of clients. </p>
<p>We have some collabs in the future with celebrities. This way we can promote this product. </p>
<p>This month we will have a collab with a famous Canadian singer. </p>
<p>We will update very soon when we have more information. </p>
</article>
<article class="expectations">
<p> <strong> What can be expected from our company?</strong> </p>
<p>Anyone can walk in our store to use the innovation. We will kindly massure your shoes and which type you need. </p>
<p>With in 10 minutes we have all the data you need to buy the perfect shoes. </p>
<p>Our employies are always there for you and can answer anything. So you won't have any questions. </p>
<p>On our contact page you can see the opening times and much more. </p>
</article>
<article class="future">
<p> <strong> What is the future of this innovation? </strong> </p>
<p>We are constantly trying to improve this product. With the help of our programmers, we can make it more accurate. </p>
<p>Since our product is getting bigger and bigger, we will open more locations in and outside of The Netherlands.</p>
<p>This way, more people can massure there foot and shoes to buy the best shoes for them. </p>
<p>In 5 years, the company will be 5 times larger from our calculations.</p>
</article>
</section>

Writing the grid-are-templates clean will solve it for you already (see the grid-area-templates in the CSS part):
.product-text {
display: grid;
grid-auto-rows: 1fr; /* makes the rows equal height */
grid-template-areas:
"grid-area2 grid-area1 grid-area3"
"grid-area2 grid-area1 grid-area3"
"grid-area5 grid-area1 grid-area3"
"grid-area5 grid-area1 grid-area4"
"grid-area5 grid-area1 grid-area4"
"grid-area5 grid-area1 grid-area4"
"grid-area5 grid-area6 grid-area6";
}
.story {
grid-area: grid-area1;
color: #B12293;
}
.problem {
grid-area: grid-area2;
color: #2297B1;
}
.use {
grid-area: grid-area3;
color: #44CB5F;
}
.users {
grid-area: grid-area4;
color: #4452CB;
}
.expectations {
grid-area: grid-area5;
color: #CB444C;
}
.future {
grid-area: grid-area6;
color: #593E3F;
}
/* added by editor for visualisation purpose */
article {
border: 2px dashed red;
}
<section class="product-text">
<article class="story">
<p><strong> Story about the innovation: </strong> </p>
<p>The development of our product began in 2016. We created this company with love and passion. </p>
<p>We wanted to create a thing were people can see the data of shoes. To be specific runnin shoes. </p>
<p>With this data we can help a lot of people to determine which type of running shoes they need </p>
<p>We worked for 3 years on this innovation, with a lot of testing we came with the right product. </p>
</article>
<article class="problem">
<p><strong> What problem does this solve? </strong> </p>
<p>The type of shoes you have, do have a lot of impact on how you run. With this innovation you can </p>
<p>choose the best shoes made for you, so you can be the best of yourself. </p>
<p>Poeple can set their own personal records when running the right type of shoes. </p>
<p>Btw, It is way better for your feet when walking on the right type of shoes. You won't get any blisters. </p>
</article>
<article class="use">
<p> <strong> How to use this innovation? </strong> </p>
<p>There is a treadmill with sensors and a computer connected when using this. </p>
<p>A person puts on some running shoes and will walk a couple of times up and down. </p>
<p>The computer connected will collect data and there you will see how you place your foot and shoe. </p>
<p>On the computer it will suggest if you need softer or harder shoes based on the algoritm</p>
</article>
<article class="users">
<p> <strong> Who will use this innovation?</strong> </p>
<p>A lot of people can use this innovation. The age is most of the time between 15-60.</p>
<p>Since running is a populur type of sport, we will have a lot of clients. </p>
<p>We have some collabs in the future with celebrities. This way we can promote this product. </p>
<p>This month we will have a collab with a famous Canadian singer. </p>
<p>We will update very soon when we have more information. </p>
</article>
<article class="expectations">
<p> <strong> What can be expected from our company?</strong> </p>
<p>Anyone can walk in our store to use the innovation. We will kindly massure your shoes and which type you need. </p>
<p>With in 10 minutes we have all the data you need to buy the perfect shoes. </p>
<p>Our employies are always there for you and can answer anything. So you won't have any questions. </p>
<p>On our contact page you can see the opening times and much more. </p>
</article>
<article class="future">
<p> <strong> What is the future of this innovation? </strong> </p>
<p>We are constantly trying to improve this product. With the help of our programmers, we can make it more accurate. </p>
<p>Since our product is getting bigger and bigger, we will open more locations in and outside of The Netherlands.</p>
<p>This way, more people can massure there foot and shoes to buy the best shoes for them. </p>
<p>In 5 years, the company will be 5 times larger from our calculations.</p>
</article>
</section>

Related

Emojis turning into weird symbols

I finally finished a website and published it to heroku, but I noticed a strange thing, all emojis turned into strange symbols:
When I used to launch the html file on my pc, this is what I would get
But after it finally started working on heroku, this is what I would get:
I don't know how to fix this, and there is nothing that I found online that can help. This is the html part that I have:
<div class="description">
<p>
๐Ÿฌ Well, I see you have discovered Candy Lounge! ๐Ÿฌ
</p>
<p>
What makes us special?
</p>
<p>
๐ŸŽ‰ We host loads of Giveaways! ๐ŸŽ‰
</p>
<p>
๐ŸŽฎ We have GameNights ๐ŸŽฎ
</p>
<p>
๐Ÿ™‚ We have a very friendly owner , very friendly and helping staff ๐Ÿ™‚
</p>
<p>
๐Ÿ”ข We have a counting channel and we are trying to be the top on the leaderboard! ๐Ÿ”ข
</p>
<p>
๐Ÿญ Loads of roles for you to collect ๐Ÿญ
</p>
<p>
๐Ÿ‘ Decision of the week! ๐Ÿ‘
</p>
<p>
๐Ÿ‘ฅ Open for partners ๐Ÿ‘ฅ
</p>
<p>
๐Ÿธ Memes ๐Ÿธ
</p>
<p>
๐ŸŽจ A channel for you to post your own amazing and creative art! ๐ŸŽจ
</p>
<p>
๐ŸŽต A channel for you to post your own great and perfect songs! ๐ŸŽต
</p>
<p>
๐ŸŽฌ A place for you to advertise your own server and grow your own community ๐ŸŽฌ
</p>
<p>
๐ŸŽค Loads of voice channels so we can hear your amazing voices ๐ŸŽค
</p>
<p>
This is not just a normal server. its a family friendly server where you can have fun and get to know more people!
</p>
<p>
๐Ÿ”—https://discord.gg/DEvtq2k๐Ÿ”—
</p>
</div>
How do I turn these symbols into the actual emojis?
you have to add <meta charset="UTF-8"> in order for your emojis to display consistently across various browsers.
UTF-8 character encoding method is used to convert your typed characters into machine-readable code.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="description">
<p>
๐Ÿฌ Well, I see you have discovered Candy Lounge! ๐Ÿฌ
</p>
<p>
What makes us special?
</p>
<p>
๐ŸŽ‰ We host loads of Giveaways! ๐ŸŽ‰
</p>
<p>
๐ŸŽฎ We have GameNights ๐ŸŽฎ
</p>
<p>
๐Ÿ™‚ We have a very friendly owner , very friendly and helping staff ๐Ÿ™‚
</p>
<p>
๐Ÿ”ข We have a counting channel and we are trying to be the top on the leaderboard! ๐Ÿ”ข
</p>
<p>
๐Ÿญ Loads of roles for you to collect ๐Ÿญ
</p>
<p>
๐Ÿ‘ Decision of the week! ๐Ÿ‘
</p>
<p>
๐Ÿ‘ฅ Open for partners ๐Ÿ‘ฅ
</p>
<p>
๐Ÿธ Memes ๐Ÿธ
</p>
<p>
๐ŸŽจ A channel for you to post your own amazing and creative art! ๐ŸŽจ
</p>
<p>
๐ŸŽต A channel for you to post your own great and perfect songs! ๐ŸŽต
</p>
<p>
๐ŸŽฌ A place for you to advertise your own server and grow your own community ๐ŸŽฌ
</p>
<p>
๐ŸŽค Loads of voice channels so we can hear your amazing voices ๐ŸŽค
</p>
<p>
This is not just a normal server. its a family friendly server where you can have fun and get to know more people!
</p>
<p>
๐Ÿ”—https://discord.gg/DEvtq2k๐Ÿ”—
</p>
</div>
</body>
</html>

Validation (HTML5) Element 'Title' occurs too few time

I'm busy making my own website. I have the following as a homepage but I get the warning. Element 'title' occurs too few times. I would also like to know how you can do word rap, I want the text to fit neatly in the web browser window. It is not an error only a warning but I would like to know what it means.
<head>
<link href="CSS/StyleSheet1.css" rel="stylesheet" />
</head>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>FORM</title>
<link href="../CSS/StyleSheet1.css" rel="stylesheet" />
</head>
<body>
<table style="height: 92px; float: left;" >
<tbody>
<tr>
<td>Form</td>
</tr>
<tr>
<td style="text-align: left;">Contact Details</td>
</tr>
<tr>
<td>About</td>
</tr>
<tr>
<td>Musical Hereos </td>
</tr>
</tbody>
</table>
<p> <span style="text-decoration: underline;"><strong>MY TEACHING PHILOSOPHY:</strong></span></p>
<p> I would like to take this opportunity to introduce myself and what I do for a</p>
<p> living. I'm a music teacher specializing in Music Theory education, I also teach</p>
<p> Guitar to a lesser extent.</p>
<p> </p>
<p>I have been teaching since 2014 and in these last couple of years, I have learned a few things.</p>
<p>There is no reason Innate to a child that decides music ability. No child or person is born with</p>
<p>some sort of gift where the other is not. Being 'Tone Deaf' is a myth, if a teacher tells a child he</p>
<p>cannot do music then it speaks more to the teacher's inability than the child's ability.</p>
<p> </p>
<p>Music, for the most part, is just another trade. If a child is taught well and puts in the hours he or</p>
<p>she can become proficient in his or her instrument. I don't believe in talent, I believe in hard work.</p>
<p> </p>
<p>When natural born 'talent' has little to do with music, what has a profound effect on the progress of</p>
<p>the musician is the attitude and the work ethic. Children who are motivated and especially those who</p>
<p>motivate themselves will succeed where those who are stubborn and lazy will not.</p>
<p> </p>
<p>I teach both Guitar and Music Theory, I can teach both the Rock and Classical styles. I also insist that </p>
<p>my students do Music Theory as part of their training as it is important for there continued development.</p>
<p>I was raised on the rock music of the early 2000's. The pop-punk genre was a big part of my childhood. </p>
<p>I eventually graduated from popular music and found the wonderful world of classical music. My love for </p>
<p>the guitar grew further as I fell in love with this fascinating part of the guitar world. I eventually </p>
<p>came to know the great Andres Segovia and what he meant for the development of </p>
<p>the guitar as instrument.</p>
<p> </p>
<p>The guitar to me is the most beautiful of instruments, in all of it's forms it fascinates me. The electric version just </p>
<p>as much as the acoustic version. With the electric version there is a power to move you that is simply tremendous.</p>
<p> </p>
<p>All music gets us to move, that is why music and dance have such a rich history together, but with the electric guitar,</p>
<p>it is even more the case. When you stand in the crowd in front of those wall of Marshalls and you can feel the speaker cabinets</p>
<p>literally move the air around you. You feel the air thumping against you chest it moves you on a primitive, visceral level. When</p>
<p>the gods decided to add electricity to the guitar, music was made anew.</p>
<p> </p>
<p>The acoustic guitar in both it's steel and nylon string variants fascinates me on another level. The acoustic guitar</p>
<p>to me has a purity of tone. It also has a richness in harmonics, that is why a guitar can sound wonderful even when only few </p>
<p>notes are played.
<p> </p>
<p>The acoustic guitar is the instrument set between a piano and a violin. With it's six strings </p>
<p>it can play chords in a manner resembling the piano somewhat, but when it comes to dynamical qualities it resembles the violin.</p>
<p>You can do vibrato just like a violin and you can even do bends which is unique to the guitar. All of this gives you </p>
<p>an instrument with some siilarities with others and still enough things particular to it, to make it unique.</p>
<p> </p>
</body>
</html>
<head>
<link href="CSS/StyleSheet1.css" rel="stylesheet" />
</head>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>FORM</title>
<link href="../CSS/StyleSheet1.css" rel="stylesheet" />
</head>
You should merge duplicated head section. The parser do not see <title> tag in the first one. Also notice <head> must be child of <html>.
for word wrap add in css
style="word-wrap: break-word;"

How to wrap the contents around an image?

I am trying to create an about page for a personal website. I am wondering how to wrap the text around the picture. I want this kind of effect. http://alexbudak.com/about/
The code I have right now is:
<div class="about_content">
<img src="placeholder.jpg" alt="">
<h2>The Brand</h2>
</p>
The Tailory New York is an appointment only custom clothing company that combines the modernity of Fashion Design with the heritage art of Custom Tailoring. We are unique in that we cater to both the Men and Women market.
</p>
<h2>The Concept </h2>
<p>
Providing personally designed, fitted and curated collections for each individual client is the essence of who we are. At The Tailory New York, we believe that your wardrobe should not only fit perfectly, but should be designed with only YOU in mind. The end result?โ€”clients get the best of both worlds, impeccable custom fit and custom designed pieces that works seamlessly with their lifestyle.
</p>
<h2>A Note From the Founder</h2>
<p>
The idea for The Tailory New York began when I decided to direct my years of fashion design and menโ€™s tailoring experience towards my own wardrobe. As a pant suit aficionado and a lover of menโ€™s fashion and tailoring, I was always drawn to tailored clothing and strived to create fashion that conveyed the same message of confidence that a perfectly custom tailored suit did for men. Style icons like Sean Connery and Cary Grant, as well as modern day 007 Daniel Craig (shaken not stirred) were always my style inspirations. To me, they are the epitome of refinement and sophistication, true gentlemen in style.
My passion for fashion and tailoring led me through the Fashion Design program at Parsons followed by stints in custom tailoring, fashion design, fashion styling and brand development. But the more I integrated myself in the industry, the more I realized that impeccable fit, for men and women, was almost impossible to find in ready to wear clothing. So, I launched The Tailory New York, a way for me to combine my two passions, Fashion Design and Custom Tailoring. Everyone wants to look their best and having a wardrobe curated to your body and lifestyle not only enables you to look your best but makes you feel your best.
At The Tailory New York, โ€œwe believe that your wardrobe should not only fit perfectly, but should be designed with only YOU in mind.โ€ Providing personally designed, fitted and curated collections for each individual client is the essence of who we are. Let us curate and design the wardrobe fit for YOU! </br>
<br> </br>
Sincerely,</br>
Shao Yang, Founder
<br> </br>
</p>
</div>
and the css is:
h2{
margin: 0 0 1.2em 0;
font-family: 'Raleway', 'sans-serif';
font-weight: normal;
}
.about_content{
width: 500px;
overflow: hidden;
}
.about_content img{
margin-right: 15px;
float: left;
}
.about_content p: last-child{
margin-bottom: 0;
}
What you have now will cause the content to wrap around the image. The trick to doing this is applying float: left; to the image, which you have already done.
What I'm suspecting is happening is your image is too wide. If it's 500px or wider, the image will take up the entire width of .about_content, so you need to limit the size of the image. Here's an example utilizing max-width on the image.
h2{
margin: 0 0 1.2em 0;
font-family: 'Raleway', 'sans-serif';
font-weight: normal;
}
.about_content{
width: 500px;
overflow: hidden;
}
.about_content img{
margin-right: 15px;
float: left;
max-width: 250px;
}
.about_content p: last-child{
margin-bottom: 0;
}
<div class="about_content">
<img src="https://static1.squarespace.com/static/541ff355e4b03f1e8815bc58/t/54b43e30e4b0ad2aad39a7f2/1421098552235/budak?format=500w" alt="">
<h2>The Brand</h2>
</p>
The Tailory New York is an appointment only custom clothing company that combines the modernity of Fashion Design with the heritage art of Custom Tailoring. We are unique in that we cater to both the Men and Women market.
</p>
<h2>The Concept </h2>
<p>
Providing personally designed, fitted and curated collections for each individual client is the essence of who we are. At The Tailory New York, we believe that your wardrobe should not only fit perfectly, but should be designed with only YOU in mind. The end result?โ€”clients get the best of both worlds, impeccable custom fit and custom designed pieces that works seamlessly with their lifestyle.
</p>
<h2>A Note From the Founder</h2>
<p>
The idea for The Tailory New York began when I decided to direct my years of fashion design and menโ€™s tailoring experience towards my own wardrobe. As a pant suit aficionado and a lover of menโ€™s fashion and tailoring, I was always drawn to tailored clothing and strived to create fashion that conveyed the same message of confidence that a perfectly custom tailored suit did for men. Style icons like Sean Connery and Cary Grant, as well as modern day 007 Daniel Craig (shaken not stirred) were always my style inspirations. To me, they are the epitome of refinement and sophistication, true gentlemen in style.
My passion for fashion and tailoring led me through the Fashion Design program at Parsons followed by stints in custom tailoring, fashion design, fashion styling and brand development. But the more I integrated myself in the industry, the more I realized that impeccable fit, for men and women, was almost impossible to find in ready to wear clothing. So, I launched The Tailory New York, a way for me to combine my two passions, Fashion Design and Custom Tailoring. Everyone wants to look their best and having a wardrobe curated to your body and lifestyle not only enables you to look your best but makes you feel your best.
At The Tailory New York, โ€œwe believe that your wardrobe should not only fit perfectly, but should be designed with only YOU in mind.โ€ Providing personally designed, fitted and curated collections for each individual client is the essence of who we are. Let us curate and design the wardrobe fit for YOU! </br>
<br> </br>
Sincerely,</br>
Shao Yang, Founder
<br> </br>
</p>
</div>

How can align these elements so as to be in line?

I have this link: site
As you can see in the picture below. elements are not arranged in line
http://i62.tinypic.com/xyfeu.jpg
I tried to add this code #content > ul > div:nth-child(2) > li:nth-child(5) {margin-top:-21px;} but then spoil this page:
link
CODE HTML:
<div>
<li class="block first-post">
<img src="http://www.dg-design.ch/wp-content/uploads/2014/10/RT-Port11-436x272.jpg" class="attachment-vantage-grid-loop wp-post-image" alt="RT_Port1">
<h3>Reliance Trust</h3><br><p class="italic">May 8, 2015</p>
<p></p><div>
<p style="text-align: justify;">As you all probably know the area of Geneva is dominated by banking and financial environments. We have recently joined this group through our new project for a financial institution in Geneva:<span class="Apple-converted-space"> </span>Reliance Trust Group.</p>
</div>
<div style="text-align: justify;">
Reliance Trust, a newly established trust company provides financial advice both for corporate and private clients. Their range of services is very wide and their p...<p></p>
</div></li>
<li class="block">
<img src="http://www.dg-design.ch/wp-content/uploads/2015/02/IF-Port-200x200.jpg" class="attachment-blog wp-post-image" alt="IF_Port">
<h3>In Finรฉ Traiteur an...</h3><br>
<p class="italic"> April 8, 2015</p>
<p></p><div>
<p style="text-align: justify;">For the first time we went into...</p>
</div></li>
<li class="block">
<img src="http://www.dg-design.ch/wp-content/uploads/2014/10/HG-Port2-200x200.png" class="attachment-blog wp-post-image" alt="HG_Port2">
<h3>Home. Global...</h3><br>
<p class="italic"> February 14, 2015</p>
<p></p><p style="text-align: justify;">If you are looking for a place away fr...</p>
</li>
<li class="block">
<img src="http://www.dg-design.ch/wp-content/uploads/2015/02/FT-Port-Beh-Brochure14-Inside1-200x200.jpg" class="attachment-blog wp-post-image" alt="FT_Port-Beh_Brochure14-Inside">
<h3>New brochures for fo...</h3><br>
<p class="italic"> February 2, 2015</p>
<p></p><div>
<div>After successfully designing forimtech's brochure last yea...<p></p>
</div></div></li>
<li class="block">
<img src="http://www.dg-design.ch/wp-content/uploads/2015/02/IMG-6320-Edit-200x200.jpg" class="attachment-blog wp-post-image" alt="IMG_6320-Edit">
<h3>revolutions โ€ฆ ...</h3><br>
<p class="italic"> </p>
<p></p><div>Happy New Year! We figured we should show you some pictures from ...<p></p>
</div></li>
<li class="block">
<img src="http://www.dg-design.ch/wp-content/uploads/2015/02/DSC-1631-200x200.jpg" class="attachment-blog wp-post-image" alt="DSC_1631">
<h3>funโ€ฆvideoโ€ฆnew project</h3><br>
<p class="italic"></p>
<p></p><div>As you might have seen, we have been filming a new project on Saturday together with our well known by now Tamara Perez, Kevin Solleroz and this time, the beautiful blogger Natacha Baudot from Premier Page. We cannot wait to show you the results. We have only filmed the first part of our project this weekend. The rest will come at the end of the month, during the event we have organised at Beau Rivage Lausanne for Tamara Perez.</div>
<div></div>
<div>More details to come soon. This is very exciting and we are happy to share the great results of this half year for DG design soon. We have...<p></p>
</div></li>
<li class="block">
<h3>Photo Shooting SS2014 โ€“ Tamara Perez</h3><br>
<p class="italic"></p>
<p></p><div>Flirting with fashion becomes extremely interesting. We are loving the craziness behind it, the lack of sleep before a big event, taking care of last details, great creations and talented people.</div>
<div></div>
<div>This time I will not say anything more...I let you have a look at how we have spent our Sunday together withKevWestProduction who did an amazing job for the behind the scenes of Tamara Perez.</div>
<div>Enjoy and come see the rest at <a href="http:...</p>
</li>
<li class=" block"="">
</a><img src="http://www.dg-design.ch/wp-content/uploads/2015/02/The-Economist-200x200.jpg" class="attachment-blog wp-post-image" alt="The Economist">
<h3>Our clients are successful!</h3><br>
<p class="italic"></p>
<p></p><div>End of August we went on holidays to Romania. Fun crazy first day in Bucharest, just so we end up talking to people and then more people and ... that's how we ended up with a project. Great one, I don't say no, but very urgent.</div>
<div></div>
<div>So this is how our holidays end up spent mostly inside the house, with the laptops in front of us. We did go out a bit. For meetings with our new client :) And to make matters better, we went to the beach! Never forgot to take the laptops along.</div>
<div></div>
<div>We had to create the entire marketing campaign of Electronic Doctor, a ...<p></p>
</div></div></li>
<li class="block">
<img src="http://www.dg-design.ch/wp-content/uploads/2015/02/TP-Edelweiss-Invitation-200x200.jpg" class="attachment-blog wp-post-image" alt="TP_Edelweiss_Invitation">
<h3>โ€ฆand we do fashionโ€ฆ</h3><br>
<p class="italic"></p>
<p></p><div>Yes, it's right. We are getting more and more involved with the <b>fashion industry</b>. This is a direction that just happened to us and we are extremely excited. We appreciate design in general, and mixing & matching several areas seemed like a challenge we could not deny to ourselves!</div>
<div>So here we are sharing it with all of you!</div>
<div></div>
<div>A few days ago we met <b>Tamara Perez,</b> a young and dynamic Swiss Macedonian designer, whom we highly appreciate! We are working on some very exciting projects w...<p></p>
</div></li>
<li class="block">
<img src="http://www.dg-design.ch/wp-content/uploads/2015/02/UN-Image-Blogpost-200x200.jpg" class="attachment-blog wp-post-image" alt="UN Image Blogpost">
<h3>United Nations, WaterLex and DG Design</h3><br>
<p class="italic"></p>
<p></p><div>You've seen us Tweet, Instagram, and Facebook, and you are probably wondering what in the world are we doing at the United Nations today, Friday the 13th. As you might know from the Design4Good section of our site, we have partnered with WaterLex, an NGO based in Geneva.</div>
<div>Today WaterLex held a side-event on the topic of "Water and Human Rights in the Post 2015 Agenda. We were glad to be part of this high-level discussion, lead by leaders in the field of water governance, human rights and environmental affairs, as...<p></p>
</div></li>
</div>
CODE CSS:
.block{
margin-top:29px;
}
.block:nth-child(-n+5){
width:22.2%;
}
.block:nth-child(-n+4){
margin-right:3.5%;
}
Is the "Categories" menu the culprit? It looks like it is interfering with the block row.
It's because your div#secondary is pushing it down.
Give #secondary CSS like this:
#secondary {
float: right;
width: 16.762%;
height: 310px;
/* margin-bottom: 30px; */
}
The margin-bottom was pushing the div.block down and not setting a height was pushing it down more.
Remove this style:
#secondary {
margin-bottom: 30px;
}
#secondary .widget, #footer-widgets .widget {
margin-bottom: 40px;
}

Multi-column autoflow

So I'm building out a design for a client for a single-page newsletter site. Attached is the concept here and I have everything built out except the actual main copy. The idea is that they add in new news every day, and what they want to do is have a simple page that has basic styling markup applied to the news, that will then get sucked into the page via AJAX or something similar. However, with the column format, they want the columns to be auto-created by some method applied when the content is getting sucked into the page. Each news story preview will be the same length and formatting. My question is, is it possible to have columns auto-created that are a specific height and width and just have them be auto-created until they run out of copy? I'm a graphic designer with only experience in HTML and CSS, so I'm looking for solutions that are within my abilities. Thank you for any suggestions anyone might have! At this point I'm just looking to be pointed in the right direction.
Here is the current page I have up: http://personal.justgooddesign.net/dailydose/
What I want is for a new column to be created with each h2 element. Here's a sample of the code:
<h1>Top News Stories for November 11, 2011</h1>
<hr color="#fe0000" />
<h2>Coffee growers in Uganda and elsewhere find climate change hurting their crops</h2>
A farmer near Uganda's Mount Elgon holds Arabica coffee berries. It's getting more difficult to grow coffee berries because of erratic weather patterns. (Photo by Jill Braden Balderas.) In Uganda, the coffee trees are nearly empty โ€” and it's not ...
<br />http://www.pri.org
<h2>Exclusive: Europe coffee buyers upset at Liffe delivery delays</h2>
Some companies that urgently need robusta coffee -- used mostly in blends and instant coffee and the second largest grown variety after arabica coffee -- are scrambling to find other sources. Many are turning to the spot market and effectively paying ...
<br />
http://www.reuters.com
<h2>Asia Coffee: Vietnam Slow to Sell, Indonesia Premiums Dip</h2>
Robusta coffee beans are roasted at the Losari Coffee Plantation in Magelang, Central Java, Indonesia, on Saturday, Sept. 18, 2010. Indonesia is the largest Asian coffee grower after Vietnam. (Bloomberg Photo/ Dimas Ardian) Singapore. ...
<br />
http://www.thejakartaglobe.com
<h2>Coffee Cupping</h2>
By Rachel Gibian and Nicole J. Levin, CONTRIBUTING WRITERS With a metal spoon and the steady hands of a surgeon, Jaime Vanschyndel, general manager of Barismo, gently pushes aside the coffee grounds that have floated to the surface of the cup. ...
<br />
http://www.thecrimson.com
<h2>Espresso cups outsell mugs</h2>
Britain's coffee revolution has claimed another victim: the humble mug. According to two leading department stores, sales of espresso cups are now outselling mugs for the first time, as more and more households switch to using coffee machines. ...
<br />
http://www.telegraph.co.uk
<h2>Specialty coffee abounds in Austin</h2>
Austin has a number of local coffee outlets that specialize in roasting their own beans, providing much needed caffeination for countless Austinites. Third Coast Coffee is a fair trade coffee house that serves up many Austinites on a daily basis. ...
<br />
http://www.dailytexanonline.com
<img src="IMG/main-banner_2.jpg" id="ad-b" />
<h1>For Roasters and Retailers</h1>
<hr color="#fe0000" />
You could use divs that are 50% width and float, like this:
jsfiddle: http://jsfiddle.net/myn3h/
CSS
#Container {
overflow: auto;
}
.NewsItem {
float: left;
width: 50%;
height: 100px;
background: red;
}
HTML
<div id="Container">
<div class="NewsItem">
<h1>title</h1>
<p>
Lorem ipsum dolor sit amet..
</p>
</div>
<div class="NewsItem">
<h1>title</h1>
<p>
Lorem ipsum dolor sit amet..
</p>
</div>
<div class="NewsItem">
<h1>title</h1>
<p>
Lorem ipsum dolor sit amet..
</p>
</div>
</div>
Update
You could try CSS3 multi column layout. It's just not widely supported yet:
#container {
-moz-column-width: 13em;
-webkit-column-width: 13em;
-moz-column-gap: 1em;
-webkit-column-gap: 1em;
}
CSS3.info Reference: multi column layout
W3C reference: CSS multi-column layout module
caniuse reference: multiple column layout