Tweak Your Yuwie Layout
by Fran Corpier
Add a link to this post to your page.
<a href="http://yuwie-on.blogspot.com/2007/10/tweak-your-yuwie-layout.html">Tweak Your Yuwie Layout, <span style="font-size:88%;">by Fran Corpier</span></a>
Copyright 2007, Fran Corpier.Summary: In the last post, we explored in detail how to clone a layout that you chose from the public list, in order to have the option to customize it. Now that you have the clone set up in your layouts control panel, you can make some of the following minor changes for potentially major impact.
This article is organized as three main sections, plus 2 Notes sections:
Page Sections and Classes That Control Them
Yuwie personal pages are divided into several sections. Here is a list of style sections, and the respective style definitions that control them.
Bio, Likes, and Option Sections
- entire bio section:
.biotable - bio header:
.biohead td - entire options section:
.optionstable - options header:
.optionshead td - entire "likes" section:
.likestable - "likes" header:
.likeshead td
Friends Section
- entire friends section:
.friendstable - friends header:
.friendshead td
Shoutbox Section
- entire shoutbox section:
.shouttable - shoutbox header:
.shouthead td
Comments Section
- entire comments section:
.commentstable - comments header:
.commentshead td - profile image column:
td.comments1 - comment images column
td.comments2 - editing links + time, date column
td.comments3
Blog Section
- blog entry section:
.blogtable - blog headers:
.bloghead td - blog list on profile page:
.blogoutline - blog list base:
.blogbottom td
Font, Background, and Display Changes... [top]
The Yuwie page is neatly organized, as you can see.
While you can add sub-sections within sections, that's a topic that I will cover in a later post in this series.
For basic editing, you need just a few lines of code to change various style attributes. When you place these lines of code into the appropriate definition, outlined above, then you have customized your layout!
Please take note that each attribute must be followed by a semi-colon. If you miss just one semi-colon, all attributes following it will be messed up. Your page will look like crud. Semi-colon (;).
Here are some edits you might like:
Font Size and Color
- Change font size:
font-size:11pt;
Note there can be NO SPACE between the font size and measurement. (e.g., 12pt, not 12 pt.)
While the measurement can be ems, percentage, pixels, or points, I've found it useful to stick with percentages or points.
- Very small
8 point:
font-size:8pt;
9 point:
font-size:9pt;
- Smallish
10 point:
font-size:10pt;
11 point:
font-size:11pt;
- Medium
12 point:
font-size:12pt;
14 point:
font-size:14pt;
- Large
16 point:
font-size:16pt;
18 point:
font-size:18pt;
- Very Large
32 point:
font-size:32pt;
48 point:
font-size:48pt;
72 point:
font-size:72pt;
- Change font color:
red:
color:#f00;
light gray:
color:#ccc;
wheat:
color:wheat;
light pink:
color:#E9B5CF;
gold:
color:#ECA13C;
- Change font boldness:
bold:
font-weight:bold;
heavier bold:
font-weight:700;
heaviest bold:
font-weight:900;
- Change font style:
italic:
font-style:oblique;
oblique defaults to italic font, or slants right
normal:
font-style:normal;
- Change font family
Serif
font-family:'Times New Roman',Times,Georgia,Serif;
Sans-serif
font-family:Verdana,Arial,Helvetica,Sans-serif;
Monospace
font-family:'Courier New',Monoco,Courier,Monospace;
Cursive
font-family:'Lucida Handwriting','Rose Round','Brush Script MT','Comic Sans MS',Cursive;
Fantasy
font-family:'Bank Gothic',Braggadocio,'Chalkboard Bold','Engravers MT','Jazz LET',Fantasy;
- Notice that:
- Multi-word names are quoted.
- Order fonts by 1st, 2nd, 3rd, etc. choice
- Separate each font name with a comma.
- Always put the generic font suggestion at the end (Serif, Sans-serif, Monospace, Cursive, or Fantasy)
- Such definitions should have NO line breaks. The HTML seems to wrap the lines, here, but the source code has no breaks.
Background Color and Image
- change background color:
- dark gray
background-color:#333; - purple
background-color:#912270;
- change background image:
background-image:url(unquoted_web_url_goes_here); - or, consolidate the background color, image, direction of image repeat, and position of the image:
background:#333333 url(...) repeat-x center top;
Borders
- all 4 borders:
- solid black border, 1 pixel wide
border:1px solid #000; - dashed, gray, medium border
border:2px dashed #999;
- top border
- thinnest, dotted, red
border-top:thin dotted #f00;
- bottom border
- wide, dotted, hotpink
border-bottom:4px dotted #FF00FF;
- outset borders
- wide, outset, hotpink
border:4px outset #FF00FF; - total code for above outset button (remove line break):
<span style="border:4px outset #FF00FF;padding:.5em;background-color:#FF80FF;color:#FFBFFF;">button label</span>
- inset borders
- wide, inset, hotpink
border:4px inset #FF00FF; - total code for above inset button (remove line break):
<span style="border:4px inset #FF00FF;padding:.5em;background-color:#800080;color:#400040;">button label</span>
No Display
- no display:
display:none; - Link, above, tests Javascript toggle control over display of this line.
The test illustrates how display:none collapses the space normally taken up by the item.
All Together: Putting Changes Into the Section Classes... [top]
To affect a section, you simply add one of these changes into the class definition for that section.
This is best illustrated with examples.
To use these examples, just substitute your font size, color, and/or family, or your border style, or your background, etc. You learned how to define attributes of any element in section 2, above. You're now ready to put them to work!
Example 1:
Change the background color of the profile picture column in the Comments section
td.comments1 {background-color:#DD6D2E;}
Example 2:
Don't display images in the Comments section.
You can alternatively choose a "No HTML" setting in your Yuwie settings.
td.comments2 img {display:none;}
Example 3:
Resize images in Comments section to 42% of the width of that section.
This makes all images the same width. Height scales proportionately. This is the only method that scales the image proportionately in all major browsers, all platforms.
td.comments2 img {width:42%;}
Note: This will make even small images xx% of the width of the section. Even though small images are a tiny minority, this method works best overall, when width is set at 50% or less.
Example 4:
Do not display the Shoutbox or Shoutbox header.
.shouttable {display:none;} .shouthead td {display:none;} Or, if you want to just temporarily disable your shoutbox, simply add the display:none definitions at the end, so you can easily delete it later and everything will just go back to normal.
key: "..." = leave other definitions in, except border
.shouttable { ... display:none; } .shouthead td { ... display:none; } Example 5:
Change the font size, color, and family for your Shoutbox, Friends, Comments, and Blog headers.
key: "..." = leave other definitions in, except the ones you're replacing.
You may list all styles that get identical treatment as follows:
.friendshead td, .shouthead td, .friendshead td, .commentshead td, .bloghead td { font-size:18pt; font-family:'Lucida Handwriting', Cursive; font-weight:700; color:#D8474F; background-color:transparent; } If you just want the Shoutbox to get these changes, then do this:
.shouthead td { font-size:18pt; font-family:'Lucida Handwriting', Cursive; font-weight:700; color:#D8474F; background-color:transparent; } Example 6:
Change the border for your Friends section.
key: "..." = leave other definitions in, except border
.friendstable { ... border:4px dotted #FF00FF; } That line defines a 4-sided border that is wide, dotted, and hotpink!
Additional References... [top]
1. Free Background images for download, here:
http://www.inzones.com/picturezone/free-backgrounds.htm
You must save images to your own computer, even "free" ones. Then upload them to Yuwie, or an image service, or your domain.
To save an image to your computer:
Mac: Control-click image and hold, select:"save image to desktop"
Windows: Right-click image and hold, select: "save picture as"
2. Stylesheet Help
The best way to change the style of any web page is to use stylesheets. Yuwie uses CSS: Cascading Style Sheets. Stylesheets are editable. Simple customizations, like those illustrated in this article, will get your feet wet in the art of CSS.
To learn more about CSS and how to create your own stylesheets from scratch, I highly recommend Jason Cranford Teague's DHTML and CSS for the World Wide Web. It's an older book, but solid and extremely well organized. You can find a used copy at Amazon for as low as 1 cent + shipping, or check it out at your local library.
The W3C organization reviews and sets standards for the web. Although some of their documents seem cryptic, you will find the most complete information on every style rule. Here's a linked index to all style rules: http://www.w3.org/TR/CSS21/indexlist.html
As you advance your CSS skills, you will want to frequent these two sites:
Finally, seasoned webmasters and developers test their web pages1 for standards compliance. Here's the official W3C CSS test site: http://jigsaw.w3.org/css-validator/ .
1Yuwie pages don't validate at this time.
COMING UP... [top]
An upcoming post will be all about Color Themes. I'll cover things like:
- How to match a color you saw on another site.
- How to easily find slight variations on any color.
- Test a font color against its background.
- Great color tools you can use for free.
Watch for it!
MORE TO COME IN THIS SERIES...
- Create Your Own Scrollable Text Widgets
- Side by Side Placement of Widgets, Images, and Text
- No More ActiveX Warnings - For Internet Explorer Users
Tell me what else you want to see, along these lines, or feel free to ask questions, here.
If you're not a member of Yuwie, join me. Yuwie is free and fun.
Ed. This post, originally published Sept 23, 2007, was edited to include author byline and links Sept 28, 2007.
About the author: Fran Corpier has owned and operated service companies servicing the network marketing and more recently internet affiliated industries, since 1998. Her database-driven applications have been used for the administration of products, services, and data for members of popular organizations. She has had the unique perspective of studying thousands of promotions and management styles by different companies, and their effects on their agents; as well application adoption by users.
Fran: "Even I make time for Yuwie. If you're not a member of Yuwie, please join me." See the video. Yuwie is free and fun.
You: "Okay."
Add a link to this post to your page.
<a href="http://yuwie-on.blogspot.com/2007/10/tweak-your-yuwie-layout.html">Tweak Your Yuwie Layout, <span style="font-size:88%;">by Fran Corpier</span></a>
Copyright 2007, Fran Corpier.