<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-53282589609967423</atom:id><lastBuildDate>Wed, 08 Oct 2025 08:05:47 +0000</lastBuildDate><category>css</category><category>css art</category><category>css drawing</category><title>CodeHemu | Web Development Tutorials &amp;amp; Tips</title><description>With CodeHemu we are dedicated to providing easy and efficient coding tutorials. Our mission is to provide the best tutorials on HTML, CSS and JavaScript, which will help you learn easily and apply the skills instantly.</description><link>https://www.codehemu.com/</link><managingEditor>noreply@blogger.com (Codehemu)</managingEditor><generator>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>With CodeHemu we are dedicated to providing easy and efficient coding tutorials. Our mission is to provide the best tutorials on HTML, CSS and JavaScript, which will help you learn easily and apply the skills instantly.</itunes:subtitle><itunes:category text="Arts"><itunes:category text="Design"/></itunes:category><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><guid isPermaLink="false">tag:blogger.com,1999:blog-53282589609967423.post-733539867082298048</guid><pubDate>Tue, 12 Aug 2025 17:57:00 +0000</pubDate><atom:updated>2025-10-07T23:49:17.349-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">css</category><category domain="http://www.blogger.com/atom/ns#">css art</category><category domain="http://www.blogger.com/atom/ns#">css drawing</category><title>Mobile Drawing using HTML and CSS</title><description>&lt;div class="separator" style="clear: both;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwiTQajQm2-TaTKKxWRCPw4KJ7fYUo5VofAbNV8Wj-TUk6EAI2fF3mvqc-CFOrhABXgdI6be2cJJoN26rVPIlA-nJnQkF5Kz_xaDuwQbm9qHUqHzq9cV2sW0bIj3Z4apFXs9vtA8PmtoGiAeIfaNK3JsZe1UBs9VU7_TBImefcssuwmCclGqu7rjM/s1600/png.PNG" style="display: block; padding: 1em 0; text-align: center; "&gt;&lt;img alt="" border="0" data-original-height="800" data-original-width="1280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwiTQajQm2-TaTKKxWRCPw4KJ7fYUo5VofAbNV8Wj-TUk6EAI2fF3mvqc-CFOrhABXgdI6be2cJJoN26rVPIlA-nJnQkF5Kz_xaDuwQbm9qHUqHzq9cV2sW0bIj3Z4apFXs9vtA8PmtoGiAeIfaNK3JsZe1UBs9VU7_TBImefcssuwmCclGqu7rjM/s1600/png.PNG"/&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;So do you want to make a &lt;strong&gt;mobile drawing&lt;/strong&gt;? Great move. In today's tutorial we will make a mobile drawing. Let us see how you can do it using only &lt;a href="/search/label/html"&gt;HTML&lt;/a&gt; and &lt;a href="/search/label/css"&gt;CSS&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Before starting the tutorial, I want to tell you that this type of &lt;a href="/search/label/css%20art"&gt;CSS art&lt;/a&gt; is not used anywhere in reality. I have made this tutorial here to have fun with &lt;strong&gt;CSS properties&lt;/strong&gt; with you. So let's explore some new aspects of CSS properties.&lt;/p&gt;
&lt;p&gt;Below is a live demo that will help you understand how the look &lt;strong&gt;css mobile&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Live demo:&lt;/h2&gt;
&lt;div class="codehemu-editer"&gt;
  &lt;div class="runCode"&gt;
    &lt;button&gt;Run Code&lt;/button&gt;
  &lt;/div&gt;
  &lt;div class="tabs"&gt;
    &lt;div class="tab active" data-tab="html"&gt;HTML&lt;/div&gt;
    &lt;div class="tab" data-tab="css"&gt;CSS&lt;/div&gt;
    &lt;div class="tab" data-tab="js"&gt;JS&lt;/div&gt;
    &lt;div class="tab" data-tab="result"&gt;Result&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="editor-container"&gt;
    &lt;div class="editor-panel"&gt;
      &lt;div id="html" class="editor active"&gt;
        &lt;textarea id="html-code" placeholder="Write your HTML code..."&gt;&lt;/textarea&gt;
      &lt;/div&gt;
      &lt;div id="css" class="editor"&gt;
        &lt;textarea id="css-code" placeholder="Write your CSS code..."&gt;&lt;/textarea&gt;
      &lt;/div&gt;
      &lt;div id="js" class="editor"&gt;
        &lt;textarea id="js-code" placeholder="Write your JavaScript code..."&gt;&lt;/textarea&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="result-panel" id="result-panel"&gt;
      &lt;iframe id="preview" allowfullscreen="true" scrolling="yes" &gt;&lt;/iframe&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="settings"&gt;
    &lt;button id="rerunCode"&gt;Rerun&lt;/button&gt;
    &lt;button class="zoom-button" data-scale="025"&gt;0.25x&lt;/button&gt;
    &lt;button class="zoom-button" data-scale="05"&gt;0.5x&lt;/button&gt;
    &lt;button class="zoom-button active" data-scale="1"&gt;1x&lt;/button&gt;
  &lt;/div&gt;      
&lt;/div&gt;
&lt;h2&gt;Project folder structure:&lt;/h2&gt;
&lt;p&gt;Let us set up the project folder before we start coding. Name your main folder "Mobile Drawing". Create the following 2 files inside this folder:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;index.html - This file will contain the &lt;strong&gt;HTML structure&lt;/strong&gt; of your project.&lt;/li&gt;
  &lt;li&gt;style.css – This file will contain all the &lt;strong&gt;CSS styles&lt;/strong&gt; that will make your design look great on mobile.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This simple structure keeps your project organized. If you have difficulty in creating the project folder then you can see this &lt;a href="/2025/09/easy-htmlcss-and-javascript-project.html"&gt;tutorial&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;HTML:&lt;/h2&gt;
&lt;p&gt;We will start by creating the HTML structure. Copy the HTML code provided and paste it into your &lt;strong&gt;index.html&lt;/strong&gt; file.&lt;/p&gt;
&lt;pre class="language-markup"&gt;&lt;code class="language-markup"&gt;&amp;lt;div class="container"&amp;gt;
  &amp;lt;div class="mobile"&amp;gt;
    &amp;lt;div class="top-item"&amp;gt;
      &amp;lt;div class="display"&amp;gt;
        &amp;lt;div class="eye"&amp;gt;
          &amp;lt;span&amp;gt;X&amp;lt;/span&amp;gt;
          &amp;lt;span&amp;gt;X&amp;lt;/span&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="mouth"&amp;gt;&amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;
      &amp;lt;div class="button"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This HTML code creates a cute cartoon style mobile design with a face displayed on its screen.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;The background container is a soft pink circular area, centered in the browser window.&lt;/li&gt;
  &lt;li&gt;The mobile body is a tall, rounded rectangle with a white front, a thick navy-blue border, and an inset shadow on the left side for depth. &lt;/li&gt;
  &lt;li&gt;A :before &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements" target="_blank"&gt;pseudo-element&lt;/a&gt; adds a smaller front panel with shading to the 3D look.&lt;/li&gt;
  &lt;li&gt;At the top of the phone, there’s a small navy-blue camera lens, a horizontal speaker bar, and a tiny microphone hole, all made using the .top-item element and its pseudo-elements.&lt;/li&gt;
  &lt;li&gt;The display screen is a bright sky blue rectangle with rounded corners.&lt;/li&gt;
  &lt;li&gt;On the screen, a pair of cartoon eyes ("X" letters) sit near the top.&lt;/li&gt;
  &lt;li&gt;At the bottom of the phone, a small rectangular button.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;StyleSheet (CSS):&lt;/h2&gt;
&lt;p&gt;Once the HTML is in place, it’s time to add some style with CSS. Copy the CSS code given and paste it into your &lt;strong&gt;style.css&lt;/strong&gt; file to bring your mobile design to beautiful.&lt;/p&gt;
&lt;pre class="language-css"&gt;&lt;code class="language-css"&gt;
.container {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  border-radius: 100%;
  height: 400px;
  background: #ffcaec;
}

.mobile {
  width: 215px;
  height: 400px;
  background: #fff;
  position: absolute;
  border-radius: 40px;
  border: 4px solid #010072;
  top: -14%;
  left: 23%;
  z-index: 5;
  box-shadow: inset -13px 0px 0 #0000001f;
}

.mobile:before {
  content: "";
  position: absolute;
  width: 200px;
  height: 400px;
  background: #fff;
  border-radius: 40px;
  top: -5px;
  left: -5px;
  border: 4px solid #010072;
  box-shadow: inset -4px -6px 0px 0px #0000001f;
}

.top-item,
.top-item:before,
.top-item:after {
  position: absolute;
  background: #010072;
  border-radius: 100%;
  transform: translate(-50%, -50%);
}

/*camara*/
.top-item {
  width: 8px;
  height: 8px;
  top: 10px;
  left: 45%;
}

/*speaker*/
.top-item:before {
  content: "";
  width: 40px;
  height: 5px;
  top: 20px;
  left: 45%;
}

/*mic*/
.top-item:after {
  content: "";
  width: 5px;
  height: 5px;
  top: 20px;
  left: -35px;
}

.display {
  top: 30px;
  transform: translate(-50%, -0%);
  border: 4px solid #010072;
  width: 165px;
  left: 6px;
  border-radius: 10px;
  height: 300px;
  position: absolute;
  background: #28b6f6;
  box-shadow: inset 7px 8px 0 #0000001f;
}

.eye {
  font-family: sans-serif;
  font-weight: bold;
  font-size: 30px;
  color: #010072;
  position: absolute;
  top: 100px;
  left: -45px;
}

.eye span{
  margin-left: 70px;
}

.eye span:before {
  content: "";
  width: 25px;
  height: 15px;
  border-radius: 100%;
  position: absolute;
  top: 30px;
  background: #ff80d1;
}

.mouth {
  position: absolute;
  top: 135px;
  left: 62px;
  width: 35px;
  height: 15px;
  background: #ff1581;
  border: 4px solid #010072;
  box-shadow: inset 7px 8px 0 #0000001f;
}

.button {
  top: 50px;
  transform: translate(-50%, 300px);
  border: 4px solid #010072;
  width: 60px;
  left: 6px;
  border-radius: 10px;
  height: 20px;
  position: absolute;
  background: #fff;
  box-shadow: inset 0px -6px 0 #0000001f;
}&lt;/code&gt;&lt;/pre&gt;

&lt;blockquote&gt;
  &lt;ul&gt;Must watch this CSS art:
    &lt;li&gt;&lt;a href="/2022/07/html-css-dog-animation.html"&gt;Dog Animation using HTML and CSS&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="/2025/08/elephant-animation.html"&gt;Elephant Animation using HTML and CSS&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="/2022/04/css-camera.html"&gt;CSS Camera Drawing&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;Today we are ending the mobile drawing tutorial here, and if you have any questions about the CSS Drawing, you can share your feelings in the comments. You can follow our &lt;a href="https://www.youtube.com/@codehemu" target="_blank"&gt;YouTube channel&lt;/a&gt; to get more updates about the &lt;a href="https://www.codehemu.com/"&gt;CODEHEMU&lt;/a&gt; tutorial. I ended the tutorial Namaste&#128591;&lt;/p&gt;
  
</description><link>https://www.codehemu.com/2025/08/css-mobile-Illustration.html</link><author>noreply@blogger.com (Codehemu)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwiTQajQm2-TaTKKxWRCPw4KJ7fYUo5VofAbNV8Wj-TUk6EAI2fF3mvqc-CFOrhABXgdI6be2cJJoN26rVPIlA-nJnQkF5Kz_xaDuwQbm9qHUqHzq9cV2sW0bIj3Z4apFXs9vtA8PmtoGiAeIfaNK3JsZe1UBs9VU7_TBImefcssuwmCclGqu7rjM/s72-c/png.PNG" width="72"/><thr:total>0</thr:total></item></channel></rss>