cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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>
  <head>
    <title>BBC Clone</title>
  </head>
  <body>
    <div class="container">
  <div class="top-bar">
  <div class="fixed-width">
    <div id="logo">
    <img src="https://static.bbci.co.uk/frameworks/barlesque/3.20.5/orb/4/img/bbc-blocks-dark.png" width="84" height="24" alt="BBC" />
   </div><!--End logo-->
    <div id="sign-in">
      <img src="http://bbcpersian.net/style/bbcid_orb_signin_dark.png" />Sign In   
</div><!--End sign-in-->
    <ul>
      <li>News</li>
      <li>Sport</li>
      <li>Weather</li>
      <li>Shop</li>
      <li>Earth</li>
      <li>Travel</li>
      <li>More</li>
    </ul>
    
    <div id="search-box">
      <input type="text" placeholder="Search" />
    </div><!--End search-box-->
  </div><!--End fixed-width-->
  
  </div><!-- End top-bar-->
  
  <div class="news-bar">
      <div class="fixed-width">
        <p>NEWS</p>
    </div><!--End fixed-width-->
      </div><!-- End news-bar-->
  
  <div class="category-bar">
      <div class="fixed-width">
        <ul>
          <li>Home</li>
          <li>Video</li>
          <li>World</li>
          <li>US & Canada</li>
          <li>UK</li>
          <li>Business</li>
          <li>Tech</li>
          <li>Science</li>
          <li>Magazine</li>
          <li>Entertainment & Arts</li>
          <li>Health</li>
          <li>More</li>
        </ul>
      </div><!--End fixed-width-->
      </div><!-- End category-bar-->
  
  <div class="location-bar">
      <div class="fixed-width">
        <ul>
          <li id="bold">UK</li>
          <li>England</li>
          <li>N. Ireland</li>
          <li>Scotland</li>
          <li>Wales</li>
          <li>Politics</li>
        </ul>
      </div><!--End fixed-width-->
      </div><!-- End location-bar-->
  
  <div class="content">
    <div class="fixed-width">
      <h1>No Trident Debate At Labour Conference</h1>
      <img srcset="https://c.files.bbci.co.uk/6D35/production/_85775972_corbyn_pa.jpg" src="https://c.files.bbci.co.uk/6D35/production/_85775972_corbyn_pa.jpg" alt="" class="" />
      
      <p>Labour will not debate the case for scrapping Britain's Trident nuclear weapons after the motion failed to get support from conference delegates.</p>
      <p id="content-links">
        <a href="#">Labour calls for UN Syria safe zones</a>
        <br />
        <a href="#">'Disaster of amazing proportions'</a>
        <br />
        <a href="#">Compromise in the sea air</a>
        <br />
        <a href="#">Piketty and Stiglitz to advise Corbyn?</a>
        <br />
        <a href="#">Labour conference: day one</a>
      </p>
        
    </div><!--End fixed-width-->
      </div><!-- End content-->
      <div class="watch-listen">
        <h2>Watch/Listen</h2>
        <img src="https://i.imgur.com/2S2UEFI.png" />
      </div><!--End watch-listen-->
       
</div><!-- End container -->
     
  </body>
</html>
            
          
!
            
              body {
  margin: 0;
  font-family: Arial, Helvetica, freesans, sans-serif;
}
/* centers in the middle */
.fixed-width {
  width: 1000px;
  margin: 0 auto;
}

#bold {
  font-weight: bold;
  font-size: 1.3em;
}
.top-bar {
  background-color: white;
  width: 100%;
  height: 40px;
  color: black;
}
.top-bar ul{
  margin: 0;
  padding: 0;
}
.top-bar ul li{
  float: left;
  list-style: none;
  border-right: 1px solid #B4B4B4;
  color: black;
  font-weight: bold;
  font-size: 1.1em;
  padding: 10px 10px;
}
.news-bar{
  background-color: #BB1919;
  width: 100%;
  height: 60px;
  color: white;
}

.news-bar p {
  margin: 0;
  padding: 0;
  font-size: 2.5em;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  right: 2px;
}
.category-bar{
  background-color: #A91717;
  width: 100%;
  height: 30px;
  color: white;
}

.category-bar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-bar ul li {
  float: left;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9em;
  border-right: 1px solid #BB4545;
  padding: 3px 10px 9px 10px;
  position: relative;
  right: 10px;
  top: 2px
}
.location-bar{
  background-color: white;
  width: 100%;
  height: 40px;
  color: black;
}

.location-bar ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.location-bar ul li{
  float: left;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8em;
  position: relative;
  right: 27px;
  padding: 0 12px 0 12px;
  border-right: 1px solid #B4B4B4;
}
.content{
  background-color: white;
  width: 100%;
  color: #000000;
}

.content h1 {
  color: #1167A8;
}

.content img {
  float: right;
  position: relative;
  right: 295px;
}

.content p {
  width: 215px;
}

.content a {
  text-decoration: none;
}

.watch-listen {
  float: right;
  position: relative;
  bottom: 350px;
  right: 100px;
  border-left: 1px solid #B4B4B4;
  padding: 0 0 0 25px;
}

.watch-listen h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 100px;
  margin: 0 0 20px 0;
  padding: 0;
}

.watch-listen img {
  position: relative;
  right: 5px;
}

#content-links {
  margin-top: 60px;
  line-height: 1.7em;
  width: 250px;
}

#logo{
  float: left;
  padding: 6px 10px 6px 0;
  border-right: 1px solid #B4B4B4;
}
#sign-in{
  float: left;
  font-weight: bold;
  font-size: 1.1em;
  color: black;
  padding: 10px 80px 10px 10px;
  border-right: 1px solid #B4B4B4;
}

#search-box{
  float: left;
  width: 200px;
  padding: 10px;
}

#search-box input {
  height: 20px;
  padding-bottom: 2px;
  background-image: url("https://nav.files.bbci.co.uk/searchbox/1.0.0-123/img/gel-icon-search-dark.svg");
  background-repeat: no-repeat;
  background-position: right center;
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console