A Pen by Cherie Yang
How do I make an a pen by cherie yang?
What is a a pen by cherie yang? How do you make a a pen by cherie yang? This script and codes were developed by Cherie Yang on 26 November 2022, Saturday.
A Pen by Cherie Yang - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Cherie Yang</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="post-container"> <div class="post-icon"><img class="post-icon" src="https://65.media.tumblr.com/avatar_c8895eff78a2_128.png"></div> <div class="post-content"> <div class="post-title"> <div class="post-name">Post Name</div> <div class="post-date">11:59 AM 2/17/14</div> </div> <div class="post-text"> <p>ATTN: See this pen for another way to do this that is probably better: https://codepen.io/cheryllium/pen/ALvYRo</p> <p>I have changed this div to class post-text, and given the name post-content to the div that wraps around all of these textual elements (the div with the white background you see here). </p> <p>On the left, you have post-icon and on the right here you have post-content. We set float: left on the icon and float: right on the content, which causes them to "float" to each side of the parent container as you see here.</p> <p>When you float a div, it doesn't add to the height of its parent. So it will appear to overflow the parent div. To fix this, you need to "clear" your floats by adding an element with clear:both after the LAST FLOATED DIV. This div right here happens to be the last floated div. If you look in the HTML, you'll see a div with class "clear" right after this. Sure enough, that's the one with clear:both.</p> </div> </div> <div class="clear"></div>
</div>
<div class="post-container"> <div class="post-icon"><img class="post-icon" src="https://65.media.tumblr.com/avatar_c8895eff78a2_128.png"></div> <div class="post-content"> <div class="post-title"> <div class="post-name">Another Post</div> <div class="post-date">11:59 AM 2/17/14</div> </div> <div class="post-text"> <p>Using CSS classes (rather than ids) allows you to make multiple elements with the same styles, just as I have repeated this post element here by making a second post. In general, you want to avoid using ids as much as you can.</p> </div> </div> <div class="clear"></div>
</div>
</body>
</html>
A Pen by Cherie Yang - Script Codes CSS Codes
/* Styles relevant to the layout */
.post-container { width: 600px;
}
.post-icon { float: left; width: 100px;
}
.post-content { float: right; width: 480px;
}
.clear { clear: both;
}
/* Styles to make it look pretty */
.post-container { margin: 10px; background-color: #cceeff; padding: 10px; border-radius: 5px; font-size: 10pt; font-family: 'Verdana', sans-serif;
}
.post-icon img { max-width: 100%; border-radius: 5px; border: 1px solid #ddd;
}
.post-title { font-size: 11pt;
}
.post-name { font-weight: bold; font-size: 12pt;
}
.post-content { background-color: #fff; padding: 5px; border-radius: 5px;
}
Developer | Cherie Yang |
Username | cheryllium |
Uploaded | November 26, 2022 |
Rating | 3 |
Size | 2,356 Kb |
Views | 14,168 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Laika mockup | 4,572 Kb |
Pen pen pen | 1,156 Kb |
Find Min | 1,555 Kb |
Button nav concept | 1,715 Kb |
Phone number selector | 2,212 Kb |
Lesson 2 | 1,559 Kb |
Character Cards code | 2,755 Kb |
CSS hover | 1,440 Kb |
Inline-block example | 1,538 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Revolving Text Landing Page Trial | TimRuby | 2,976 Kb |
Rainbow Drops | Csbarnes | 2,365 Kb |
Brown by pure CSS, no image, no javascript | Aaronchuo | 2,652 Kb |
Process Accordion | Devilskitchen | 31,432 Kb |
React Template | Isac | 1,241 Kb |
Marching Squares Visualized | Sakri | 7,074 Kb |
Bezier Animation with straight paths | Rhernando | 2,087 Kb |
Lecture 1 | Law | 0 Kb |
Testing Portfolio Page | Sideshowli | 3,395 Kb |
A Pen by Sooba | Sooba | 2,516 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!