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


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


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.


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.



	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<script defer src="" integrity="sha384-SlE991lGASHoBfWbelyBPLsUlwY1GwNDJo3jSJO04KZ33K2bwfV9YBauFfnzvynJ" crossorigin="anonymous"></script>
  <title>Martín Comito - Home</title>

  <!--  NAVBAR  -->
    <nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
      <a class="navbar-brand" href="#">Martín Comito</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>

      <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
          <li class="nav-item active">
            <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
          <li class="nav-item">
            <a class="nav-link" href="#aboutme">About me</a>

          <li class="nav-item">
            <a class="nav-link" href="#portfolio">Portfolio</a>
          <li class="nav-item">
            <a class="nav-link" href="#contact">Contact me</a>
  <!--  NAVBAR  -->
	  <div class="container-fluid seccion" id="aboutme">
      <div class="row">
        <div class="col-md aboutme-div text-center my-5 px-5">
          A ver
	  <div class="container-fluid seccion" id="portfolio">
	  <div class="container-fluid seccion" id="contact">
      Contact me

		<p>Copyright 2018 Martín Comito</p>




                body {
  background-color: green;

.seccion {
  background-color: grey;
  height: 500px;
  border: 1px solid black;
  margin-bottom: 10px;
  margin-top: 10px;

footer {
  text-align: center;

.aboutme-div {
  background-color: yellow;



                $(document).ready(() => {
  // set up scrollspy - only needed on codepen because they add the <body> tag for you
    "data-spy": "scroll",
    "data-target": ".navbar",
    "data-offset": "80"

  //Ajusta la posición del scroll cuando estás navegando para guardar links desde otra página
  const scrollAdjust = () => scrollBy(0, -60);
  if (location.hash) scrollAdjust();
  window.addEventListener("hashchange", scrollAdjust);

  // Scroll suave
  $("a.navbar-brand, .navbar-nav li a:not(.dropdown-toggle)").on("click", e => {
    $(".collapse").collapse("hide"); // close mobile menu on click
    $("html, body")
          scrollTop: $($(e.currentTarget).attr("href")).offset().top - 60