A Pen by Cherie Yang

Developer
Size
2,356 Kb
Views
14,168

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 Previews

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;
}
A Pen by Cherie Yang - Script Codes
A Pen by Cherie Yang - Script Codes
Home Page Home
Developer Cherie Yang
Username cheryllium
Uploaded November 26, 2022
Rating 3
Size 2,356 Kb
Views 14,168
Do you need developer help for A Pen by Cherie Yang?

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!

Cherie Yang (cheryllium) Script Codes
Create amazing SEO content with AI!

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!