Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="dropdown">
  
  <div class="dropdown-content">
  <a href="#">
      <div class="grid-holder">
  <div class="left-grid">
    <div class="left-txtarea">
        <div class="title">
          <div class="intro">
            <h3 class="blue">Oferim formació per a tots els perfils <span class="fas fa-angle-right blue"></span></h3>
            <p>Activitats d’un dia o més, itineraris i programes a mida. Compara ràpidament tota la nostra oferta formativa. </p>
          </div>
        </div>
        <div class="title">
          <h3 class="blue">Activities agenda </h3>
          <span class="fas fa-angle-right blue"></span>
          <p>Consulta el nostre àmpli catàleg d’activitats.</p>
        </div>
        <div class="title">
          <h3 class="blue">Equip expert</h3>
          <span class="fas fa-angle-right blue"></span>
          <p>Coneix tots els experts i expertes que hi ha radera d’Emprenedoria.</p>
        </div>
      </div>
    </div>
  <div class="rg-background">      
      <div class="right-grid mb-20">
        <div class="intro">
           <div class="right-title blue">Programes per empendre <span class="fas fa-angle-right blue"></span></div>
           <div class="subtitle">Accions d’acompanyament a la creació d’empreses adreçades a determinats<br> col·lectius o sectors d’activitat específics.</div>
        </div>
        <span class="section-title">Per a sectors</span>
        <span class="section-title">Per a col·lectius</span>
        <ul class="flex-container">
          <li id="1" class="two-lines-item">
            <span class="blue">Ecommerce</span><br>
            <p>Per a projectes de <br>comerç online. One <br>more line here.</p>
          </li>
          <li id="2" class="two-lines-item">
            <span class="blue">Fet a mà</span><br>
            <p>Per a projectes<br> d'artesania. At least<br> a standar text length.</p>
          </li>
          <li id="9" class="flex-item">
            <span class="blue">Idees amb futur</span><br>
            <p>Per a persones de 16<br> a 30 anys o més amb una<br> idea de negoci a Barcelona.</p>
          </li>
          <li id="10" class="flex-item mb-20"> 
            <span class="blue">Inicia</span><br>
            <p>Curs per a dones que proporciona els coneixements empresarials bàsics.</p>
          </li>
          <li id="3" class="two-lines-item"> 
            <span class="blue">Creamedia</span><br>
            <p>Per a projectes relacionats amb la indústria creativa.<br> Just to make it look<br> compact.</p>
          </li>
          <li id="4" class="two-lines-item"> 
            <span class="blue">La comunificadora</span><br>
            <p>Per a projectes amb enfocament procomú.<br> A basic rule
              for format.
            </p>
          </li>
          <li id="11" class="flex-item">
            <span class="blue">Idees madures</span><br>
            <p>Per a persones amb 45<br> anys o més amb una idea<br> de negoci a Barcelona.</p>
          </li>
          <li id="12" class="flex-item mb-20">
            <div class="grid-title">Per a starts-ups</div><br>
            <span class="blue">Preacceleració</span><br>
            <p>Per a startups de base tecnològica.</p>
          </li>
          <li id="5" class="two-lines-item">
            <span class="blue">Emprenedoria social</span><br>
            <p>Per a projectes amb incidència social. <br>One more
            line.</p>
          </li>
          <li id="6" class="two-lines-item"> 
            <span class="blue">Futurisme</span><br>
            <p>Per a projectes en l'àmbit <br>de les energies netes.
            One more line.</p>
          </li>
          <li id="13" class="flex-item"> 
            <span class="blue">Construïm en femení<br> altres economies</span><br>
            <p>Per a dones que volen impulsar un projecte amb impacte social.</p>
          </li>
          <li id="14" class="flex-item mt-20">
             <span class="blue">Preincubació</span><br>
            <p>Per a startups digitals que vulguin validar el seu model de negoci.</p>
          </li>
          <li id="7" class="two-lines-item">
            <span class="blue">Cleantech camp</span><br>
            <p>Per a projectes en l'àmbit <br>de les energies netes. <br>A third line for format.</p>
          </li>
          <li id="8" class="two-lines-item"> 
            <span class="blue">Innofood</span><br>
            <p>Relacionats amb l'alimentació saludable.<br>An extra line here for format.</p>
          </li>
          <li id="15" class="flex-item"></li>
          <li id="16" class="flex-item"></li>
      </ul>
      </div>
  </div>
</div>
    </a>
  </div>
</div>

              
            
!

CSS

              
                body {
  font-family: 'Source Sans Pro', serif;
}
.grid-holder {
  max-width: 1560px;
  width: 1600px;
  max-height:838px;
  height: 713px;
  display: block;
  margin: auto;
}
.section-title {
   color:#5a5a58;
   display: inline-block;
   width: 47%;
   height: auto;
   font-size: 16px;
   padding-left: -12px;
   border-bottom: solid 1px #bdbdbc;
}
.section-title:nth-of-type(2) {
   padding-left: -16px;
   margin-left: 24px;
}
.rg-background {
  background-color: #f4f1e9;
  display: inline-block;
  max-width: 1000px;
  height: 711px;
  float: right;
  padding-right:150px;
}
.right-grid {
  max-width: 916px;
  height: 711px;
  display: inline-block;
  padding-left: 26px;
  padding-top: 42px;
}
.left-grid {
  max-width: 510px;
  display: block;
  float: left;
  padding-right: 18px;
  margin-top: 40px;
  margin-left: 85px;
}
.left-txtarea {
  width: 263px;
  display: inline-block;
}
.intro {
  display: block;
}
.left-grid .title h3 {
  margin: 0;
  display: inline-block;
}
.left-grid .title p {
  font-size: 16px;
  color: #31302e;
  margin-top: 10px;
}
.subtitle {
  width: 900px;
  padding: 0px 60px 10px 0px;
  margin-bottom: 20px;
}
.right-title {
  font-size: 21px;
  font-weight: 600px;
  padding:8px 0px 4px 0px ;
}
.blue {
  color: #005e85;
  font-weight: 600;
}
.mb-20 {
  display: block;
  margin-bottom: 20px;
}
li.mt-20 {
  display: block;
  margin-top: 20px;
}
span.fas.fa-angle-right.blue {
    vertical-align: middle;
}
/* GRID SYSTEM */
.flex-container {
  padding: 0;
  margin: 0;
  list-style: none;
  
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  
  -webkit-flex-flow: row wrap;
  justify-content: space-around;
}
.flex-item {
  /*background: white;tomato*/
  padding: 10px 0px;
  width: 200px;
  height: 100px;
  margin-top: 10px;
  
  line-height: 21px;
  color: #31302e;
  font-weight: 400;
  font-size: 1em;
  text-align: left;
}
.two-lines-item {
  padding: 10px 0px;
  width: 200px;
  height: 80px;
  margin-top: 10px;
  
  line-height: 21px;
  color: black;
  font-size: 1em;
  text-align: left;
}
.flex-item .two-lines-item p {
  font-weight: 500;
  color: black;
}
li.two-lines-item   {
  margin-bottom:-21px;
}
.flex-item-title {
  padding: 10px;
  width: 200px;
  height: auto;
  margin-top: 10px;
  
  color: white;
  font-weight: bold;
  font-size: 1em;
  text-align: left;
}
.grid-title {
  color: #5a5a58;
  border-bottom: solid 1px #bdbdbc;
  height: 25px;
  font-size: 16px;
  font-weight: 400;
}
/* DROPD MENU */
.dropbtn {
  background-color: #gray;
  color: black;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: block;
  position: absolute;
  width: 1440px;
  min-width: 1400px;
  /*box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);*/
  z-index: 1;
}
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover {
  background-color: #fff;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown:hover .dropbtn {
  background-color: #3e8e41;
}
              
            
!

JS

              
                
              
            
!
999px

Console