Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <main id="main">
  <h1 id="title">Red Star Belgrade retake their place with the big boys of Europe</h1>


 <!--Kontejner koji obuhvata dve slicice i podnaslov -->
 <div class="container">
      <div id="subtitle"> <i> - <b> Red Army</b> -</i></div>
      <div class="bottom-right"> <img id="RedStar"  src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/Logo_FC_Red_Star_Belgrade.svg/1200px-Logo_FC_Red_Star_Belgrade.svg.png" alt="Red Star Logo"> 
      
    
      </div>
      <div>  <img id="CL" src="https://images-na.ssl-images-amazon.com/images/I/715oHOC1gfL._SY717_.jpg">
      </div>
  
 </div> <!--Kraj kontejnera -->
  
 
  <!-- div sa slikom i opisom-->
  <div id="img-div">
    <img id="image" src="https://i.ytimg.com/vi/wSkjqyrSLOM/maxresdefault.jpg" alt "Red Star Belgrade">

    <div id="img-caption">
    Red Star Belgrade. A name that echoes with nostalgic resonance. After a 26-year absence, the Serbian champions are finally back in the Champions League group stages, where they have been pitted against <a style="color:blue;" > Liverpool, Paris Saint-Germain and Napoli</a>.
    </div>
    
    
  </div> <!-- kraj div elementa-->
  
  
  
    
  
  
  <div id="tribute-info">
    <ul>
      <h3 id="headline">The biggest success:</h3>
      
     <li><strong>1992</strong> - Their most recent participation in the round-robin stage of European football’s elite competition came in 1992, the first year of the tournament’s new and revised – but not current – format.</li>
  .<li>A team that goes by the name of Crvena Zvezda in their home country, Red Star will not care that the European Cup final they won was, by common consensus, the worst of all time. Paralysed by the fear of losing, they played out a dreary scoreless draw with similarly cautious Marseille in the Stadio San Nicola in Bari before winning on penalties. Robert Prosinecki, a Croat who Portsmouth fans will remember fondly, scored first from the spot for Red Star, who went on to convert all five penalties. Marseille right-back Manuel Amoros’s miss ensured the trophy went back to Red Star’s Marakana Stadium.</li>

      
      
      <li>“That final is still very vivid in my memory,” recalled Mihajlovic in an interview with France Football two decades later. “It was the most boring final match in European Cup history. Had we approached the match with an attacking mentality, we probably would’ve lost. Not because Olympique were necessarily better than us, but because their players were used to playing big matches like this one. We had a squad full of kids.</li>
  
      <li>Red Star made this season’s group stages the hard way. After seeing off the Latvian side FK Spartaks in the first preliminary round, they swatted aside Lithuania’s FK Suduva before making extremely heavy weather of beating the Slovak champions, FC Spartak Trnava, to set up a winner-takes-all play-off with Red Bull Salzburg. Comparative church mice taking on the financial muscle of a team built by an energy drinks company with more money than a horse has hairs, Red Star found themselves two goals down early in the second half and on the brink of being consigned to the Europa League. Rat-a-tat strikes from Ben Nabouhane in the 65th and 66th minutes were enough to keep them in the Champions League on away goals. For all the money that has been pumped into their club, it was the Austrian side’s seventh consecutive failure to negotiate the Champions League qualifying stages. The karmic poetry of this bloated behemoth being beaten by a side set up in 1945 by communists to help the poor and disaffected will have been lost on nobody.</li>
     
    </ul>
    <blockquote>
      <p>Now a new generation of largely unknown Red Star players will test themselves against the European elite.</p>
      <div>--The Guardian</div>
    </blockquote>
    <h3>If you have time, you should read more about this football club <a id="tribute-link" href="http://www.crvenazvezdafk.com/en" target="_blank">Red Star Belgrade</a>.</h3>
  </div>
</main>
            
          
!
            
              html,body{
  font-family:"Trebuchet MS", Helvetica, sans-serif;
  text-align:left;
  min-width:260px;
  color:#333;

}
#main{
  margin:30px auto;
  padding:15px;
  border:0px solid;
  border-radius:5px;
  background: linear-gradient(to bottom left, #ff0000 15%, #ffffff 102%);
    
}
img{
  max-width: 100%; 
  display: block; 
  height: auto;
  margin: auto;
  opacity:0.9;
  
}
#img-div{
  margin:-5px;
  margin-top:20px;
  width:100%;
  border:5px solid white;
  background: linear-gradient(to bottom, #ff0000 75%, #ffffff 100%);
  border-radius:5px;
}
#img-caption{
  margin:15px;
  font-style:oblique;
  color:white;
}
#headline{
  margin-top:50px;
  text-align:left;
}
ul{
  max-width:550px;
  margin:0 auto;
  text-align:left;
}
li{
  margin: 10px;
  font-style:oblique;
  text-align:justify;
}


  

blockquote{
  font-style: italic;
  text-align:justify;
}
h1 {
  font-family:"monspace", Courier New;
  text-align:center;
  text-transform:uppercase;
   text-shadow: 1px 1px red;
  color:white;
}
#subtitle{
  text-align:center;
  font-size:20px;
  font-family:"monspace", Courier New;
  position:relative;
  top:55px;
  color:white
}
#CL {
  width:80px;;
  height:70px;
border-style:solid;
 
 border-radius:35px;
  position:relative;
 top:10px;
  
 display:inline; 
  
  box-shadow:1px 4px 8px;
  
}
#RedStar{
  width:70px;
  height:90px;
  margin-right:5px;

  
}


/*Kontejner koji obuhvata slike */
.container {
  
  height:95px;
  width:100%;; 
  opacity:0.5
  
}
.bottom-right{
  position:absolute;
  right:25px;
  
}
/*Kraj kontejnera*/



/*media queries    */
@media only screen and (max-width: 600px) {
  
  body {
    max-width:100%;
  }
}

@media only screen and (max-width: 400px){
  #subtitle{
   display:none;
    
  }

}
@media only screen and (min-width: 900px){
  #subtitle{
    font-size:35px;
    
  }
  #CL{
    margin-top:-15px;
  }
  #RedStar{
    margin-top:-15px;
  }
  
}
@media only screen and (max-width: 300px){
  
  img{
    border-radius:300px;
  }
  #img-div{
    background:white;
  }
  #img-caption{
    color:black;
  }
}
@media only screen and (min-width: 750px){
  
  #img-caption{
    color:blue;
  }
}
/*end of media   */
            
          
!
            
              // coded by @ChaituVR
const projectName = 'tribute-page';
localStorage.setItem('example_project', 'Tribute Page');


            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console