Pen Settings

HTML

CSS

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

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

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.

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

              
                <link href='https://fonts.googleapis.com/css?family=Finger+Paint' rel='stylesheet' type='text/css'>
  <link href='https://fonts.googleapis.com/css?family=Metal+Mania' rel='stylesheet' type='text/css'>
 
    
  <br/><br/><br/>
 <center> 
   <div id="syncer">
   <span class="texx">Cigarette Search Bar</span><br/><br/>
   
<form id="cigar" action="your-search-results-URL">
  <div class="cig"></div>
  <input type="text" width="20" name="q" class="cig-bar"/>
  <input type="submit" class="cig-bud" value="search"/>
  </form>
   </div>
    </center>
              
            
!

CSS

              
                body {background:#111;}

.cig-bar
{padding:0 10px;
  height:40px;
vertical-align:top;
  margin:auto;
font-size:20px;
font-family: 'Finger Paint', cursive;
background-image:url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAHgAA/+4ADkFkb2JlAGTAAAAAAf/bAIQAEAsLCwwLEAwMEBcPDQ8XGxQQEBQbHxcXFxcXHx4XGhoaGhceHiMlJyUjHi8vMzMvL0BAQEBAQEBAQEBAQEBAQAERDw8RExEVEhIVFBEUERQaFBYWFBomGhocGhomM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px #777 inset, 5px 0 50px #555 inset;
transition:all 0.5s;
-webkit-transition:all 0.5s;
-moz-transition:all 0.5s;
-o-transition:all 0.5s;}

.cig-bud
{ height:40px;
  background:#ffc400;
  border-type:solid;
border-width:0px 0px 0px 10px;
border-color:#c79900;
font-family: 'Finger Paint', cursive;
font-size:20px;border-radius:0 5px 5px 0;
-webkit-border-radius:0 5px 5px 0;
-moz-border-radius:0 5px 5px 0;
  margin-top:auto;
  height:40px;
  margin-left:-5px;
  box-shadow:-2px 0 20px #555 inset;
  vertical-align:top;}

.cig-bud:hover
{background:#cfb002;
border-color:#cc6d00;
color:gold;
 text-shadow:-2px 0 2px #000;
cursor:pointer;}

.cig-bud:active
{text-shadow:-1px 0 1px #000;
border-color:#cc6d00;}

.cig
{height:40px;width:30px;background:red;
  border-radius: 20px;
  -moz-border-radius:20px;
  -webkit-border-radius:20px;
  box-shadow:10px 0 25px #555 inset;
  display:inline-block;
  margin-right:-22px;
transition:all 0.5s;
-webkit-transition:all 0.5s;
-moz-transition:all 0.5s;
-o-transition:all 0.5s;}

#cigar:hover > .cig
{box-shadow:5px 0 8px orange inset, 2px 0 20px yellow, 0 0 30px orange;}
#cigar:hover > .cig-bar
{box-shadow:2px 0 10px orange inset, -5px 0 50px orange inset;}

.texx
{color:#000;font-family: 'Metal Mania', cursive;font-size:50px;
  text-shadow:0 0 5px red, 0 0 10px orange, 0 0 15px yellow;
transition:all 0.5s;
-webkit-transition:all 0.5s;
-moz-transition:all 0.5s;
-o-transition:all 0.5s;
  line-height:50px;}

.texx2
{color:#555;
text-shadow: 0 0 10px black;
font-size:50px;}

#syncer
{display:none;}

.texx:hover
{font-size:35px;line-height:50px;opacity:0.1;}
              
            
!

JS

              
                $(window).load(function(){
  $('#syncer').fadeIn(500);
});
$('#cigar').hover(function(){
  $('.texx').toggleClass('texx2');
});
//this can be used for GCSE results only template. All you gotta do is change the form action URL. More info at http://monkeyraptor.johanpaul.net/2013/05/cigarette-themed-search-bar.html
              
            
!
999px

Console