<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hugh Zhou on Medium]]></title>
        <description><![CDATA[Stories by Hugh Zhou on Medium]]></description>
        <link>https://medium.com/@hughzhoutrt?source=rss-3fec8781544e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QLVNcKxiRi4bGcbKIyYlUQ.jpeg</url>
            <title>Stories by Hugh Zhou on Medium</title>
            <link>https://medium.com/@hughzhoutrt?source=rss-3fec8781544e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 11:17:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hughzhoutrt/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to build a mobile-first design website]]></title>
            <link>https://medium.com/@hughzhoutrt/how-to-build-a-mobile-first-design-website-39e834fcc84d?source=rss-3fec8781544e------2</link>
            <guid isPermaLink="false">https://medium.com/p/39e834fcc84d</guid>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[sass]]></category>
            <category><![CDATA[mobile-first]]></category>
            <dc:creator><![CDATA[Hugh Zhou]]></dc:creator>
            <pubDate>Fri, 29 Oct 2021 00:25:54 GMT</pubDate>
            <atom:updated>2021-10-29T00:25:54.795Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lj7PTdGlQYdqqWx3g9wk9A.png" /><figcaption>Please feel free to check the demo: <a href="https://delicious-by-yuhui.netlify.app/">https://delicious-by-yuhui.netlify.app/</a></figcaption></figure><blockquote>Thanks for the suggestion from the kindly reviews of my last blog, I realized the advantages of mobile-first design in practice and would like to learn and try. Hence, I applied it in my project 1 in boot camp which focuses on building responsive multiple-page website by pure HTML plus CSS. In addition, SASS is applied in it for more organized CSS codes. Please please feel free to correct me and provide suggestions to me, I am happy to learn, thanks in advance! 😀</blockquote><h3>1. Understand the pros of mobile-first design</h3><p>Based on my practice and summary from others’ sharing, mobile-first design has these advantages:</p><p>(1) Better browsing experience to mobile users</p><p>Undoubtedly, there are increasing number of users accessing internet by mobile devices. Thus, for developers, it is good to spend more time and focus on mobile design.</p><p>(2) Better layout experience to developers</p><p>Owing to the limited screen sizes of mobile devices, their designs are tended to be simple and content focused. Conversely, desktop designs are trying to fill in their blank space by decorations and complicated layouts. In other words, mobile-first design let developers “do additive operation”: starting with prioritized content and simple design, then adding elements with increasing screen size when there are available space for them.</p><p>(3) Cleaner and more organized codes</p><p>Normally, desktop-first design achieves complex layouts and decorations then removes them one by one in responsive design. It is like making a U-turn and causes redundant codes. Not efficient! Moreover, redundant codes are typically easier to lead to more bugs and hard to read by other developers. Not efficient!</p><h3>2. Planning ahead</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KkIXbnlWHADqfWt9iwBHvQ.jpeg" /><figcaption>I borrowed my daughter’s color gel pens to draw drafts for project 1 ;)</figcaption></figure><p>Having a clear and holistic thinking about the layouts in different designs is constantly a good helper, and my suggestion is making some notes if there are so many details. In my case, there are only three desktop designs for me and I needed to have ideas about what do my pages look like from smallest size (I set it as 320 pixel) to these desktop design. Meanwhile, I planned which parts of styling and functions were set as partials in SASS. It is easier to me to understand what is my next step and what should I prepare for the following steps during my coding in project 1.</p><h3>3. Building HTML</h3><p>There two key points during building HTML:</p><p>(1) Think about the containers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5VkGsLmF-S8Z0houzk4u1A.png" /><figcaption>Which containers are essential for holistic design?</figcaption></figure><p>Firstly, based on the holistic planning we did ago, it is good to think about how many containers are required in the part you are working on. The two main purposes in this section are: making sure we have sufficient containers for responsive layouts and avoiding redundant codes.</p><p>To be more specific: for achieve the requirement of the design, some containers are necessary in situating layouts; without them, it is difficult to tell browsers how to accurately locate contents in flex box and grid. Yet, too many containers may cause redundant codes. If you hide contents too deep in containers, it is unfriendly to you CSS (CSS search objects from child to parent, so it costs more time if the object has parent, grade parents, grade grade parents…). In addition, you will feel inconvenient when you adjust styles (happened to me in my past works, I had to dig very deep to reach the objects).</p><p>Using my project as an example: I set red, green and blue containers for keeping their layouts, brown for reversing the block order in some designs, purple for wrapping; however the orange containers are not required because I can achieve this layout by easier method (flex wrap and width settings).</p><p>(2）Think about accessibility</p><p>Imagine you are different roles and how do you feel when using your website? Then how could we improve the experience of these roles?</p><p>Some instances are like: those who use assistant technologies expect there is a button can let them skip to the main section of your website; screen reader users cannot understand the button which only has an icon there, even through the icon looks like having some specific meanings; some elements are only used for decorations and you do not want assistant technology users go through it. Accessibility is a persistently developing path and we should keep thinking and learning about it to provider better and better experience to users.</p><h3>4. SASS preparation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqG9TQVuGyoJFORcQtyFcw.png" /><figcaption>Applying SCSS in my project 1</figcaption></figure><p>To those who do not be familiar with SASS: <a href="https://sass-lang.com/documentation/syntax"><em>SCSS</em> means <em>Sassy CSS, </em>a superset of CSS.</a></p><p>After my first time used SCSS, it is all positive feedback! Briefly speaking, SCSS allows importing snippets and structuring CSS codes (coding like in HTML). Moreover, it has some built-in functions working like in JavaScript. Just kindly remind, do not feel upset if your SCSS does not work, check its working status!</p><h3>5. Styling by SCSS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pgzFGHthqDHcgWCMSgmm8w.png" /><figcaption>Mobile-first design starts</figcaption></figure><p>Beyond my expectation, the process of styling by mobile-first design is much more smooth. My summary for it is like building houses in lands: in assumption, when you were young, you only can afford the price of a 50 ft. land, then what you can build there is like a shed and there is only basic layout and no space for different rooms and decorations; thanks to your efforts, several years later, you expand your land as big as an apartment, then it is enough for you to separate spaces for different purposes; with the increasing room, you can arrange more functions and decorations in the house. It goes with the flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2pFGgZj0faIVbRKtOv7R4w.png" /><figcaption>Adding new layouts with the improving screen size</figcaption></figure><p>Similarly, I just needed to set basic styles and layouts in my smallest design; with the increasing screen size, I added more layouts and decorations to adapt the larger spaces. Furthermore, after I finished this project, I compared its mobile version and my past projects, my first mobile-first project has better layout and cleaner codes (I did not need to hide and forbid elements).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6UASRGB5tSHR3pi_fAIAlA.png" /><figcaption>Firefox responsive design model</figcaption></figure><p>Personally, I prefer to use the dev tool from Firefox due to its strong support of responsive design. I summarized all default device sizes del tool provides, selected several of them for styling my pages, then went through all of them to make sure my pages can work properly. Just reminder, if you want to test your responsive design in more or specific devices, you can add them in the dev tool.</p><h3>6. Some tips during this project</h3><p>(1) Image gallery setting</p><p>I created a image gallery via pure CSS in my mobile version design. It sounds like I did not follow the tenet of mobile-first design, but I would like to learn how to properly create this function without JavaScript so I added it in my project.</p><p>After some studies, I found a practical solution which can maximally achieve my design by CSS only: using anchor semantic element and focus pseudo element.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jUjVLqM0i3tNuSs5LtgSPQ.png" /><figcaption>Button settings for gallery</figcaption></figure><p>To be more specific, buttons and images are set correspondently and linked by anchors. Generally, these anchors can let the images be focused when the buttons are activated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*tJ_goKpCRMbqK8q_2DvqtQ.png" /><figcaption>Image settings for gallery</figcaption></figure><p>Then, the first image is set as default while others are hidden. Parenthetically, all images are stacked by same location and size. Once an image is focused via its activating button, it appears and jump up to the first of the stack.</p><p>（2）Scalable aside</p><p>As the same reason of creating image gallery, I built a scalable aside; yet. actually I am not very satisfied with it and still looking for better solution by CSS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VMt6cF_4PeBeKMpZ5J3hpQ.png" /><figcaption>The previous design and actual design of the scalable aside</figcaption></figure><p>This function is used in mobile version design, and I tried to create extra space to exhibit more contents on the page. In my previous design, the scalable aside is built like a dropdown box, and user can expand it by focusing its button. After a consideration, for better user experience (user can hold the aside page for a long period and move focus to other areas), I changed my design and used the same method of my image gallery which is combining anchor and focus elements. In the actual design, user is able to activate the aside section by clicking or focusing the “more information” button, and put it away by clicking or focusing the “back” button.</p><p>(3) Applying flex-grow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lt2VnTj6s4oCCwEHfCZ9fQ.png" /><figcaption>Occupying the superfluous space by using flex-grow</figcaption></figure><p>Flex-grow is an essential function when we study using flex box, and my input text can be a vivid example of its practice. Besides, it can be hold the page height if there is not enough contents on the page.</p><p>(4) Draw triangles</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wYo1cUqkaug3lm5WHxP-dg.png" /><figcaption>Design requires a triangle decoration on dialog box</figcaption></figure><p>How to draw triangles by CSS? I learned one method from others and this method expanded my horizon. We can build more shapes by this method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*oWfbCyGdPodS75-7wXryZw.png" /><figcaption>Codes for drawing triangle</figcaption></figure><h3>7. Troubleshooting during this project</h3><p>(1) CSS does not render my HTML</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*HBEXdYyAbMn0xc-kejPsbw.png" /><figcaption>Live SASS working status</figcaption></figure><p>Please check your Live SASS working status if your CSS does not work properly, 99% of my CSS not working issue is caused by it ( anther 1% is caused by did not save SCSS file).</p><p>(2) Pseudo elements are not working in SCSS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*STOl6Ygy51wdzmP7WTKWGw.png" /><figcaption>“&amp;” means parent in SCSS structural coding</figcaption></figure><p>(3) Stopping CSS effect</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/1*T1ps9DckLLHP-h7zjf5Bfw.png" /><figcaption>Hover effect cannot be stopped properly</figcaption></figure><p>Actually, it is a bit tricky because the majority of my solutions and other from internet is applying JavaScript, but we only use HTML and CSS here. In this case, I tried several CSS forbidding methods, like “cursor-event: none;” “tabindex=-1”, but they also ban the functions of the whole menu. Thus, currently, my pure CSS solution is using alternative menu, and this menu only appear when I do not need hover effect and the origin menu is hidden. If you have better idea please share with me!</p><h3>8. Summary and prospect</h3><p>It is totally true that the best instructor of coding is practically coding. Building projects can let you meet different issues, think about different solutions, learn different knowledge, then improve your skill. Although I already built my past project by not only HTML and CSS but also other languages, I still feel there are many details in HTML and CSS should be studied in my following front-end path. I believe it is because the industry is improving, and our developers should keep learning to provide better and better experience to users. Moreover, only using HTML and CSS can let us spend enough attention on learning these two fundamental languages and going deeper in them when we are solving issues. It should be the purpose of designing this project.</p><p>This project will be submitted on this Friday, and if I have chance, I plan to add JavaScript in it to make it more functional. Specifically, the image gallery, aside, and dropdown box will be updated and more animations can be applied.</p><p>It is Halloween on this weekend, everybody happy Halloween🎃！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39e834fcc84d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a responsive website]]></title>
            <link>https://medium.com/@hughzhoutrt/how-to-build-a-responsive-website-351f47ccf66f?source=rss-3fec8781544e------2</link>
            <guid isPermaLink="false">https://medium.com/p/351f47ccf66f</guid>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[responsive-web-design]]></category>
            <category><![CDATA[responsive-website-design]]></category>
            <dc:creator><![CDATA[Hugh Zhou]]></dc:creator>
            <pubDate>Mon, 18 Oct 2021 02:34:21 GMT</pubDate>
            <atom:updated>2021-10-27T05:52:53.367Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPk_Y4gC9R0SAu3e9Ojx-g.png" /></figure><blockquote>The example I used here is the first assignment in my boot camp and our instructors would like to let us review the knowledge of HTML and CSS by it. I noted some key points during my work and shared in here. Personally, this summary can be used in future review, and it will be great if this article can help those who just start learning HTML and CSS :). Please feel free to contact me if you found any mistake I made in my responsive design, thank you in advance.</blockquote><h3>1. Planning ahead</h3><p>It is significantly important to go through the different designs of the website before coding. To be more specific, planning how the website looks like in various devices can assist you understand the structure of your HTML. For instance, you may meet this scene: in desktop design, there are three elements displayed horizontally in a same level; yet, in mobile design, the first element goes to stay above on others and the rest shares the whole row space. In this case, we need to prepare certain containers to the elements for later layout.</p><h3>2. Building HTML</h3><p>After a holistic plan, it is the time to start building HTML! I used <a href="https://codepen.io/hughzhoutrt/pen/OJjMyLd"><strong>Codepen</strong></a> for adapting different coding environment. Honestly, I have to say it is totally different experience in using Codepen compared with locally using VScode, such as how to set up external link, interface layout and automatic closing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SRnP7rhX86O_jbtUSeDuaQ.png" /><figcaption>Coding in HTML</figcaption></figure><p>You may find a key point from how I coded in the HTML, which is <a href="https://www.w3.org/standards/webdesign/accessibility"><strong>ACCESSBILITY</strong></a>! For increasing user experience, all meaningful icons and pictures are added text descriptions. In the case of the text descriptions, we should try to imagine how to clearly explain what happens in your page to those who cannot see it, also what key words you expect your users can find the page from searching engine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRTENCzAogJ6KRnbq-9wAA.png" /><figcaption>My HTML part is temporary done</figcaption></figure><h3>3.Element layout by CSS</h3><p>The next step is remodeling our page via CSS! Let’s go!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2zKOMQPi-7fDxf0gbbFQ7g.png" /><figcaption>Formatting page by CSS</figcaption></figure><p>(1) Common layout</p><p>In my preference, firstly I added common layouts on my page by giving the class names of the layouts. Notice, the common layouts is a good helper in our responsive design; we only need to edit a few codes then our whole page responses.</p><p>The majority work of common layout is setting wrappers (to sections) and containers (to elements) and positioning the layouts which come up repeatedly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*PYQx7aDfMnMBoBdtmp16Bg.png" /><figcaption>Main body wrapper</figcaption></figure><p>In the case of wrapper and container setting, generally, wrapper works like container and protects design from overflowing. In this case, martin: 0 auto lets content stay at center position, max-width keeps content in a certain width container to avoid scatter layout if user used large monitor, and width improves user experience via embracing page with left and right white spaces and avoiding user from missing something on sides of screen.</p><p>When it comes to the positions of the repeated layouts, for instance, I used flexbox to mainly situate my elements, involving row and column, space between and evenly, normal and reverse layouts. I believe over 80% my layout work in this page were done by this method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D0audsJsQiN39Uokd8cY8w.png" /><figcaption>The common layout is done</figcaption></figure><p>(2) Specific layout</p><p>Once the common design is done, we can start the specific designs for each sections. Specifically, although you have couple row containers, they may have their each unique designs: one has a image which takes a half of its width while another just expects a tiny tiny decoration picture. It is the time to situate them to the correct positions respectively!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6wdA37Mdq9mwjySn2BkDww.png" /><figcaption>The specific layout is done</figcaption></figure><h3>4.Styling via CSS</h3><p>Hurray! We are almost there! Our next step is thinking about how to make your page fancy. It includes font, button, hyperlink, list design, and so far and so on.</p><p>Similar with layout setting, we make styling from common to specific. Typically, I set all common styles under body tags then adjust the specific styles under their sections since the new specific styles can cover the common ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*Sbh0kZCJ6_b35TpQ298CcA.png" /><figcaption>Setting percentage for main font size</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*VJziPzHCnYnIuSWDpRCmSA.png" /><figcaption>Setting rems for elements</figcaption></figure><p>One thing I would like to mention here is font size setting. For accessibility and responsive design, it is good to set a percentage for the body font size then use rem which is based on the body font size in different elements. Once user would like to increase font size on their screens for better reading environment or we prefer to adjust all font size together for responsive design, this setting can help a lot. Then, we calculate font size for each element and set rem for it.</p><h3>5. Responsive design</h3><p>For responsive design, I moved my codes to VScode then open my page via Firefox browser. Firefox provides useful dev tools and they act vital roles in responsive design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qpO8VSLe0gflMaaFPqGeSA.png" /><figcaption>Firefox dev tools</figcaption></figure><p><a href="https://developer.mozilla.org/en-US/docs/Tools">Opened your inspector</a> then you will see the powerful tools. Firstly, you can open the responsive design model then let it simulate different device screens for you. Then, activating toggle rules and it measure the sizes of your elements. Finally, let us turn back to inspector windows, you can view and find your <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction">DOM</a> structure here, check your CSS code in certain element and temporary style and test it, and check how your box model (trust me it is super powerful in your style. e.g., you may be confused: how this white space comes from, just use box model to check about it.).</p><p>Another suggestion is coding your responsive design from large to small (or reverse). You would not miss where you are by following it. Following your designs and adjusting them step by step, I believe you will do a good job in it. Furthermore, in the last, I usually use the responsive design model to check how my page shows in different screens and edit if it needed.</p><p>Congratulation! We are almost almost there! Generally speaking, the page is done based on the steps above; yet, you may meet some tricky situations during CSS stylings. Thus, I did some summaries about what I met during my coding and shared below, because I wish it works for you when you meet the same issues.</p><h3>6. Other tips</h3><p>(1)Tricky white space between two containers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*AEZ6N8Mrf_lLzAJfkYW7nQ.jpeg" /><figcaption>White space between two sections</figcaption></figure><p>You may meet this situation: a blank space is found between two sections but dev tool shows it does not belong to either section. So how could we remove it?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*k09eVfrcYrSYurUaV7La_Q.jpeg" /><figcaption>White space caused by inner element in a section</figcaption></figure><p>Based on my experience, you should open the sections and check their inner elements. This type of white space is typically caused by the overlarge size, padding and margin of inner element.</p><p>(2) Tricky white space between form elements</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*x5oK0OeFaNwuCULZM2VpPw.jpeg" /><figcaption>A gap between two input elements</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*b_LUu2SCRk0ipUIctKqpIw.jpeg" /><figcaption>A whitespace tag shows in inspector</figcaption></figure><p>You properly found that it is a default white space between input elements, and it cannot be removed by padding and margin settings. Based on my search and test, it is a default input setting and the best solution for removing it is using float:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HQpOCSqCUZEZmNSOPWhWzQ.png" /><figcaption>Removing the gap by applying `float`</figcaption></figure><p>In my page, I moved my submit button left and removed the gap by using float:left; .</p><p>(3) Making hamburger menu icon by pure CSS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MISl1zEIxuraPG5Hg1-N1A.jpeg" /><figcaption>Make hamburger menu icon by CSS</figcaption></figure><p>To be honest, an alternative for this method is using icon (from Font Awesome, e.g.), yet, I cannot find an icon looks like my mobile design therefore I have to make it by myself.</p><p>We need to create a small blank container for our icon (I used div block), and please remember give it height and width because blank container has not any size. Then, setting border-top and border-bottom and we have top and bottom lines. What about the central line? It is a bit tricky, we need to apply background-clip:content-box; to the container and <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip">its background is painted within the content box</a>. Then, we paint a background color for the container then set a padding and use its top and bottom values to occupy the space and leave a line space for the background. Finally, we got the icon!</p><p>(4) Hovering an element then dropping down its siblings</p><p>Normally, we make dropdown box like this way: hovering the parent elements then its children dropping down, and this is how :hover is used. Yet, for special requirement, I found that we can hover an element then drop down its sibling as well. I used to apply it into this page however I changed my plan it is removed, and I am here to share how to use it.</p><p>What we will use is called adjacent sibling combinator. It is not only used in sibling selecting but also sibling hover selecting. To be more specific, the code is former_element:hover + target_element .Notice, the selector always set the element which is next to the one is hover as the dropdown content. For multiple target elements please try general sibling combinator.</p><p>Another solution is general sibling combinator if adjacent sibling combinator is not proper for your project. the code is former_element:hover ~ target_element . In this method, we need to set a type, then we can tartget all this type of elements which is following the element we set it as hover element.</p><p>However, you may meet some issues in hovering an element then dropping down it siblings. One of the issues is positioning. It is different with how we set their location in hovering parent element then dropping down child element because we cannot set one sibling as relative then another as absolute , so please pay attention to this layout. The other issue is how to keep the dropdown box remaining. Unlike hovering parent element, the dropdown box may disappear once you move out your cursor from the hovering sibling element. My solution is extend the size of the sibling elements then let them overlap, after that I will have enough space to remain my dropdown box.</p><p>(5) Adding title icon</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*qHSQzzSwWxYVxc3zbS-JQA.png" /><figcaption>Adding icon for tittle</figcaption></figure><p>Do you want a cute icon in your web title? Look at here!</p><p>It is pretty easy and you just need this line of codes and your icon file or hyperlink and that is it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=351f47ccf66f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>