Test CSS/HTML Grafikart - JSFiddle - Code Playground

JSFiddle - Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle.

AI Code Completion

AI Code Completion is a BYOK implementation.

Get your API Key →

The model we use is Codestral by Mistral.

We won't save your API Key in our database, it's only stored in the browser for your convinience.

Your recent fiddles

Collections PRO

Select collections:

  • New collection

Resources CDNJS

  • Type a library name to fetch from CDNJS
  • URL - add directly into the HTML panel as a SCRIPT or LINK

Async requests

Simulating async requests:

  • JSON /echo/json/
  • JSONP /echo/jsonp/
  • HTML /echo/html/
  • XML /echo/xml/

See docs for more info.

Changelog

JSFiddle Apps

  • Coder Fonts
  • Color Palette Generator
  • CSS Flexbox Generator
  • Sign in
  • HTML
  • JavaScript
  • CSS

Language

  • HTML
  • HAML

Doctype

XHTML 1.0 Strict XHTML 1.0 Transitional HTML 5 HTML 4.01 Strict HTML 4.01 Transitional HTML 4.01 Frameset

Body tag

Language

  • JavaScript
  • CoffeeScript
  • JavaScript 1.7
  • Babel + JSX
  • TypeScript
  • CoffeeScript 2
  • Vue
  • React
  • Preact

Extensions

Alpine.js 2.1.2 AngularJS 1.1.1 AngularJS 1.2.1 AngularJS 1.4.8 AngularJS 2.0.0-alpha.47 Bonsai 0.4.1 Brick edge CreateJS 2013.09.25 CreateJS 2015.05.21 D3 3.x D3 4.13.0 D3 5.9.2 Dojo (nightly) Dojo 1.4.8 Dojo 1.5.6 Dojo 1.6.5 Dojo 1.7.12 Dojo 1.8.14 Dojo 1.9.11 Dojo 1.10.8 Dojo 1.11.4 Dojo 1.12.2 Ember (latest) Enyo (nightly) Enyo 2.0.1 Enyo 2.1 Enyo 2.2.0 Enyo 2.4.0 Enyo 2.5.1 Enyo 2.7.0 ExtJS 3.1.0 ExtJS 3.4.0 ExtJS 4.1.0 ExtJS 4.1.1 ExtJS 4.2.0 ExtJS 5.0.0 ExtJS 5.1.0 ExtJS 6.2.0 FabricJS 1.5.0 FabricJS 1.7.7 FabricJS 1.7.15 FabricJS 1.7.20 Inferno 1.0.0-beta9 JSBlocks (edge) KineticJS 4.0.5 KineticJS 4.3.1 Knockout.js 2.0.0 Knockout.js 2.1.0 Knockout.js 2.2.1 Knockout.js 2.3.0 Knockout.js 3.0.0 Knockout.js 3.4.2 Lo-Dash 2.2.1 Minified 1.0 beta1 MithrilJS 0.2.0 MithrilJS 1.1.6 Mootools (nightly) Mootools 1.3.2 Mootools 1.3.2 (compat) Mootools 1.4.5 Mootools 1.4.5 (compat) Mootools 1.5.1 Mootools 1.5.2 Mootools 1.5.2 (compat) Mootools 1.6.0 Mootools 1.6.0 (compat) No-Library (pure JS) OpenUI5 (latest, mobile) Paper.js 0.22 Pixi 3.0.11 Pixi 4.0.0 Processing.js 1.2.3 Processing.js 1.3.6 Processing.js 1.4.1 Processing.js 1.4.7 Prototype 1.6.1.0 Prototype 1.7.3 RactiveJS 0.7.3 Raphael 1.4 Raphael 1.5.2 Raphael 2.1.0 React 0.3.2 React 0.4.0 React 0.8.0 React 0.9.0 React 0.14.3 RightJS 2.1.1 RightJS 2.3.1 Riot 3.7.4 Shipyard (nightly) Shipyard 0.2 Thorax 2.0.0rc3 Thorax 2.0.0rc6 Three.js r54 Three.js 105 Underscore 1.3.3 Underscore 1.4.3 Underscore 1.4.4 Underscore 1.8.3 Vue (edge) Vue 1.0.12 Vue 2.2.1 WebApp Install 0.1 XTK edge YUI 2.8.0r4 YUI 3.5.0 YUI 3.6.0 YUI 3.7.3 YUI 3.8.0 YUI 3.10.1 YUI 3.14.0 YUI 3.16.0 YUI 3.17.2 Zepto 1.0rc1 jQuery (edge) jQuery 1.9.1 jQuery 2.1.3 jQuery 2.2.4 jQuery 3.2.1 jQuery 3.3.1 jQuery 3.4.1 jQuery Slim 3.2.1 jQuery Slim 3.3.1 jQuery Slim 3.4.1 jTypes 2.1.0 qooxdoo 2.0.3 qooxdoo 2.1 svg.js 2.6.5 svg.js 2.7.1 svg.js 3.0.5

script attribute

Language

  • CSS
  • SCSS
  • SASS
  • PostCSS (Stage 0+)
  • PostCSS (Stage 3+)
  • Tailwind CSS

Reset CSS

<!DOCTYPE html> <html> <head> <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;700&display=swap" rel="stylesheet" /> <link rel="stylesheet" href="style.css" /> <title>Test grafiKart</title> </head> <body> <div class="container"> <h2 class="title">Modifier mon profil</h2> <div class="hr"></div> <div class="wrapper"> <div class="colonne_1 colonne"> <div class="name colonne"> <label for="">Nom</label> <input type="Votre Nom" class="input_text" /> </div> <div class="email colonne"> <label for="">Email</label> <input type="Votre email" class="input_text" placeholder="[email protected]" /> </div> <div class="adresse colonne"> <label for="">Adresse</label> <input type="Votre adresse" class="input_text" /> </div> </div> <div class="colonne_2 colonne"> <div class="prenom colonne"> <label for="">Prénom</label> <input type="Votre Prénom" class="input_text" /> </div> <div class="Téléphone colonne"> <label for="">Téléphone</label> <input type="Votre Téléphone" class="input_text" /> </div> <div class="Ville colonne"> <label for="">Ville</label> <input type="Votre Ville" class="input_text" /> </div> </div> <div class="colonne_3 colonne"> <div class="Bio colonne"> <label for="">Bio</label> <textarea type="textarea" class="input_text Bio"></textarea> </div> <div class="Code_postal colonne"> <label for="">Code postal</label> <input type="Votre Code postal" class="input_text" /> </div> </div> </div> <div class="checkbox"> <div class="checkbox_1"> <input type="checkbox" id="Yes" name="Yes" /> <label for="scales">Je souhaite recevoir la newsletter</label> </div> <div class="checkbox_2"> <input type="checkbox" id="Partner" name="Partner" /> <label for="scales" >Je souhaite recevoir la newsletter des partenaires</label > </div> </div> <div class="button"> <a class="">Enregistrer les modification</a> </div> </div> </body> </html> * { box-sizing: border-box; font-family: "roboto"; } .hr { border: solid 1px #d2d6db; margin-bottom: 5px; } .title { font-size: 24px; font-weight: bold; } .container { width: 80vw; height: 100vh; padding: 30px; margin: 0 auto; } .wrapper { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 40px; } @media screen and (max-width: 1200px) { .wrapper { grid-template-columns: 1fr 1fr; grid-gap: 40px; } .input_text { width: 80%; } } @media screen and (max-width: 992px) { .wrapper { grid-template-columns: 1fr; grid-gap: 20px; } .input_text { width: 50%; } } @media screen and (max-width: 768px) { .wrapper { grid-template-columns: 1fr; grid-gap: 20px; } .input_text { width: 50%; } .title { font-size: 18px; } label { font-size: 12px; } } @media screen and (max-width: 576px) { .wrapper { grid-template-columns: 1fr; grid-gap: 10px; } .input_text { width: 50%; } .title { font-size: 18px; } label { font-size: 12px; } } .colonne { display: flex; flex-direction: column; margin-top: 25px; } .input_text { width: 100%; height: 35px; border-radius: 6px; border: 1px solid #d2d6db; margin-top: 5px; padding-left: 5px; } label { font-size: 16px; font-weight: 300; color: #374151; } .Bio { height: 100%; } .checkbox { display: flex; justify-content: flex-start; margin-top: 25px; } .checkbox_1 { margin-right: 15px; } /* Button */ .button { float: right; width: 28%; padding: 10px 3px 10px 3px; background-color: #5850eb; border-radius: 6px; color: white; text-align: center; font-size: 16px; margin-top: 20px; margin-bottom: 20px; }
  • This fiddle has previously unsaved changes. Apply changes Discard

Tabs:

JavaScript HTML CSS Result

Visual:

Light Dark

Embed snippet Prefer iframe?:

No autoresizing to fit the code

Render blocking of the parent page

Behavior

Auto-run code

Only auto-run code that validates

Auto-save code

Live code validation

Hot reload CSS

Hot reload HTML

General

Line numbers

Wrap lines

Indent With Spaces

Code Autocomplete

Indent size: 2 spaces 4 spaces Font size: 10px 11px 12px 13px 14px 15px 16px 17px 18px 19px 20px Font family:

Console

Console in the editor

Clear console on run

  • Curated list of monospace coder fonts

    You can now use different monospace fonts in the editor − we now have a curated list of pretty awesome fonts available including premium ones. Just open the Coder Fonts mini-app from the sidebar or from Editor settings. My current favorites are Input and Commit Mono.

  • CSS Flexbox generator as a JSFiddle app

    Our CSS Flexbox generator lets you create a layout, and skip knowing the confusing properties and value names (let's be honest the W3C did not make a good job here). Not gonna lie, this was heavily inspired by flexer.dev but coded completely from scratch.

  • Behavior change for External Resources

    Adding External Resources will no longer create a list of resources in the sidebar but will be injected as a LINK or SCRIPT tag inside of the HTML panel.

  • Code Completion with additional context

    The Code Completion will now also have the context of all panels before suggesting code to you - so if for example you have some CSS or JS, the HTML panel will suggest code based on the other two panels.

  • 🦄 AI Code Completion (beta)

    Introducing some AI sprinkle in the editor - Code Completion based on the Codestral model (by Mistral).

    For now it's a BYOK implmentation which means you need to provide your own API Key − you can get it for free.

  • Editor switch from CodeMirror to Monaco (same as VSCode)

    After much deliberation I've decided to make the switch from CodeMirror to Monaco.

    There's a few reasons for this. CodeMirror 5 is no longer being developed, and the switch to 6 would be a huge rewrite since there's not much compatibility between the two versions.

    Monaco itself has lots of features already built-in, things that took quite a few external plugins to get into the CodeMirror implementation.

    I'm incredibly thankful to Marijn for his work on CodeMirror, it has served well for many years.

  • JSFiddle will load faster

    Technical debt is a drag man. Remember the time when MooTools was state-of-art JS framework? We do and so much of JSFiddle was still dependant on it till this day, but since almost all MooTools features are now available in native JS it was high-time to strip it out of the codebase.

    This took around a week of work, lots of testing, but it's now done. And the final package of our JS bundle is ~30% smaller.

  • Sign up for a Mistral account, and pick the free Experiment subscription plan.

  • Log in, and go to your organization's API Keys section.

  • Click Create new key, fill "JSFiddle" as the name for the API key, and save.

  • Copy the key, and paste it into JSFiddle − under the AI Code Completion in the Sidebar.

  • Done! AI Code Completion should now be working.

Classic Columns Bottom results Right results Tabs (columns) Tabs (rows) System Light Dark
Set fiddle expiration
1 day 10 days 1 month 6 months 1 year Keep forever

Please Whitelist JSFiddle in your content blocker.

Help keep JSFiddle free for always by one of two ways:

  • Whitelist JSFiddle in your content blocker (two clicks)
  • Go PRO and get access to additional PRO features →
  • Ad-free

    All ads in the editor and listing pages are turned completely off.

  • Use pre-released features

    You get to try and use features (like the Palette Color Generator) months before everyone else.

  • Fiddle collections

    Sort and categorize your Fiddles into multiple collections.

  • Private collections and fiddles

    You can make as many Private Fiddles, and Private Collections as you wish!

  • Console

    Debug your Fiddle with a minimal built-in JavaScript console.

  • Early AI features

    Try the AI features we're rolling out.

Join the 4+ million users, and keep the JSFiddle dream alive.

  • Ad-free

    All ads in the editor and listing pages are turned completely off.

  • Use pre-released features

    You get to try and use features (like the Palette Color Generator) months before everyone else.

  • Fiddle collections

    Sort and categorize your Fiddles into multiple collections.

  • Private collections and fiddles

    You can make as many Private Fiddles, and Private Collections as you wish!

  • Console

    Debug your Fiddle with a minimal built-in JavaScript console.

JSFiddle is used by you and 4+ million other developers, in many companies ...

... and top educational institutions:

Join as PRO

Từ khóa » Html Css Grafikart