Showing posts with label Tutorials: html/css. Show all posts
Showing posts with label Tutorials: html/css. Show all posts

Tuesday, March 23, 2010

How-to: Customize profile picture border

I'm sure most of you have figured this out by now, but just thought I'd share how you can change the way your profile image looks! It's really easy, and all it takes is a little work : ) The bolded sections in the code are the parts you can add, remove, and/or edit.

If your profile picture looks like this, and you dont like it...



Go to Layout, Edit html.
Scroll until you find this section of code:

/* Profile
----------------------------------------------- */
.profile-img {
float: $startSide;
margin-top: 0;
margin-$endSide: 5px;
margin-bottom: 5px;
margin-$startSide: 0;
padding: 4px;
border: 1px solid $borderColor;
}

NOW FOR STYLING!
  • Remove "padding: 4px;" if you DO NOT want a space between your profile picture and the border around the picture.
  • You can adjust the border width, style, and color.
  • You can change "margin-$endSide: 5px;" to adjust the amount of space between your profile picture and profile text.
  • You can also add attributes to adjust the size of your picture.

You can make it look like this........... or this



Using this modification of code:


/* Profile
----------------------------------------------- */
.profile-img {
float: $startSide;
margin-top: 0;
margin-$endSide: 10px;
margin-bottom: 0px;
margin-$startSide: 0;
border: 1px solid #D18E9E;
width:60px!important;
heigh:100px!important;

}

Or you can leave "padding: 4px;" & increase the value,
then add a background... It can look like this:




Using this modification of code:

/* Profile
----------------------------------------------- */
.profile-img {
float: $startSide;
margin-top: 0;
margin-$endSide: 10px;
margin-bottom: 0px;
margin-$startSide: 0;
border: 1px solid #D18E9E;
width:60px!important;
heigh:100px!important;

padding: 10px;
background-image:url("http://i40.tinypic.com/dy3ew4.jpg");
}

Or if you want a "polaroid picture" kind of look...
(of course it works better if your profile picture is SQUARE :P)



You can use this modification of code, tweak it to your needs.

/* Profile
----------------------------------------------- */
.profile-img {
float: $startSide;
margin-top: 0;
margin-$endSide: 5px;
margin-bottom: 5px;
margin-$startSide: 0;
padding: 4px;
padding-bottom:25px;
background-color:#ffffff;
border: 1px solid #000000;
height:80px;
width:80px;
}

Hope this helps! Have fun editing : )



Tuesday, January 5, 2010

How to: add a favicon to your blog!

I had always wanted a favicon but was not sure how to do it on blogger until I came accross this tutorial at yummylolly.com! It's some very useful information, and I just wanted to share what I learned! (credit: here is the tutorial from yummylolly)

D I R E C T I O N S


  1. You need a small square icon (I think I did 20x20 but it's usually scaled down to 16x16). If you use a big image, it will be scaled down and lose quality so if you're making your own, it's best to create your image at the size you want it to appear. I used Paint Shop Pro but you can use any image editing program-- I find good ol' MSPaint to be the easiest to make pixel images with.

  2. I saved mine as a .gif with a transparent background -- I will do a tutorial on this soon.

  3. Go to iconj.com and upload that sucker!

  4. Copy & paste the code they provide you with, into your layout html like so:



    The pink part is where you put YOUR code... put it between the b:skin and head tags. Make sure it is ABOVE the head tag.

  5. Preview that shit!!! If it's all G... click SAVE

  6. Aaaand... you're done! It should work as long as your browser supports favicons. Also, remember that since this is a free host and all... your icon may disappear if/when the site goes down.





Thursday, August 6, 2009

How-to: change color of imeem playlist

Does anyone use imeem? Hope this'll be useful ^_^

I've really been feelin' Olivia Broadfield lately; and I love mixpod players and all, but they just don't have a lot of the songs I want. So I've returned to imeem for the time being! Hehe. Anyways, the regular player style is super ugly colors and I wanted to find a way to change the colors. Luckily, I found a code to custom the colors :D

CREDIT: http://friendstertalk.com/t14173-Change-color-Imeem-playlist.html

The dimensions are for the mini-player I have now but you can change that if you want to. All you need to change is the "CHANGE IT TO YOUR ID PLAYLIST"

Looking at YOUR embed code, you'll find something like this:
param name="movie" value=http://media.imeem.com/pl/oeDMLlLCG6/autoShuffle=true/

The bold part is the player id that you replace in the code. You can change autoShuffle to "false" if you don't want it to shuffle and for autoplay, aus=false to aus=true for it to autoplay.

Lastly, change all the ffffff's to hex code colors of your choice. Easy peasy :D





Tuesday, July 21, 2009

How-to: customize sidebar headings

Since I already did one, I figure I might as well do another html/css tutorial! This one is a lot easier than the other one.

If you've ever tried changing the font, color, size, and appearance of your sidebar titles using Blogger's "fonts and colors," you'll realize that you are quite limited in what you can do. Basically, you can only change the size, color, and font (and it's only capital letters!). Also, it doesn't only apply to the sidebar headings. It will change any headings you have. In this tutorial I wanted to explain how you can spiff up those headings and make them more personalized (:

First off, I usually use the Minima template as a base. Idk if it's all the same for the other templates (I think it is) but all my base coding comes from there.

You'll need to go to Dashboard > Layout > Edit html. Scroll until you find this:

/* Headings
----------------------------------------------- */

This is where the editing will take place. This should be the only section of code:
h2 {
margin:1.5em 0 .75em;
font:$headerfont;
line-height: 1.4em;
text-transform:uppercase;
letter-spacing:.2em;
color:$sidebarcolor;}
h2 means that editing the code will customize ALL h2 headings. I'm assuming you'd want your sidebar headings to be differently customizable from the rest of your headings :P So, replace that whole section of code with this:
#sidebar h2 {
width:XXXpx;
background-image: url(XXX);
background-position:XXX;
background-repeat:XXX;
display:block;
font-family:XXX;
font-size: XXXpx;
line-height:XXXpx;
text-transform:XXX;
color: #XXX;
border: XXpx solid #XXX;
background-color:XXX;
font-weight:XXX;
text-align:XXX;
margin-top:XXXpx;}
By changing it to sidebar h2, now only the sidebar headings will be affected. Also, if you have more than one sidebar (like in my case) and you want each sidebar to have different style headings, you'll have to assign each element different names besides just "sidebar h2." For example, "#sidebar-left h2" and "#sidebar-right h2."

That made it almost TOO easy eh? lol xD I've included in this new code practically all the attributes you can apply to your headers. All you have to do is replace the XXX's with your own specifications. You can delete attributes if you don't need them (delete the whole line) or add new attributes if you'd like, for example: border-bottom: 1px solid;

Have fun editing!



Saturday, July 18, 2009

How-to: Customize blogger comments

I figure I would do a blogger tutorial, since I haven't had much beauty-related posts to do. This is something decently easy to do (assuming you have a general understanding of html/css) and really can add a personal touch to your blog (:

HOW TO CUSTOMIZE YOUR BLOGGER COMMENTS

I'll use the comment format from the "TicTac Blue" template since I find it the most readily customizable. You can refer to the image below.














































I'll explain each part of the comments code you can customize. First, you'll have to go to: Dashboard > Layout > Edit html

Scroll until you find the section of code that starts with:
/* comment styles */

This is where all the editing will take place.
This should be the first section of code:

#comments {
padding: 10px 10px 0px 10px;
font-size: 85%;
line-height: 1.5em;
color: #666;
background: #eee url(http://www.blogblog.com/tictac_blue/comments_curve.gif) no-repeat top $startSide;
}
Padding is how much space is around the comment text. I change mine to all 0px. More padding will push the text into a smaller space.

Font-size alters how big the comment text will be. I change the percent to a pixel (#px) size.

Line-height alters the height of the text. I also change this to pixel size. Usually line height would be the same as the font size unless you want more space between each line of text.

Color alters the color of the comment text. You can use a hex code or color name. Use http://www.colorpicker.com/ to get hex codes.

Background alters well, the background! In the picture you'll see that the background is light gray (#eee) along with a url for a background image (the curve at the top). You can either use a solid color for your background (delete from "url" on). Or use another image url for a background.

I also add the text-align property so you can left, right, center, or justify-align your text.

***You can add text attributes anywhere you want to edit the look of the text.
For example:
text-align: left;
text-transform: lowercase;
line-height: 12px;
letter-spacing: -1px;

This should be the second section of code:

#comments h4 {
margin-top: 20px;
margin-$endSide: 0;
margin-bottom: 15px;
margin-$startSide: 0;
padding-top: 8px;
padding-$endSide: 0;
padding-bottom: 0;
padding-$startSide: 40px;
font-family: "Lucida Grande", "Trebuchet MS";
font-size: 130%;
color: #666;
background: url(http://www.blogblog.com/tictac_blue/bubbles.gif) no-repeat 10px 0;
height: 29px !important; /* for most browsers */
height /**/:37px; /* for IE5/Win */
}
Comments H4 is the Comment header. In the picture, it's "3 Comments" and "Post a comment"

Margins will push the block of comment text up, down, left, or right (I don't use $endSide, I replace with left and right). They won't squish the text like padding does.

Padding attributes can be edited accordingly. Again, I don't use $endSide. I replace with left and right.

Font-family is the font the header will be in. I only use one. "Georgia" for example.

Font-size alter the header size. Again, I usually change to pixel size.

Color will alter the header color.

Background (in this case, the little speech bubbles) can be changed with a different image url. It's best if the image is around the same height as the text line-height. You can delete the code starting with "background" if you don't want one.

Remember, you can add whatever attributes you want.

The next two sections of code should be:
#comments ul {
margin-$startSide: 0;
}

#comments li {
background: none;
padding-$startSide: 0;
}
UL stands for Unordered list. LI stands for List item. I just take those two sections of code and replace it with this:

#comments ul {
margin-left: 0;
}

#comments li {
background: none;
padding-left: 0;
}
The next section of code deals with the Comment body.

.comment-body {
padding-top: 0;
padding-$endSide: 10px;
padding-bottom: 0;
padding-$startSide: 25px;
background: url(http://www.blogblog.com/tictac_blue/tictac_blue.gif) no-repeat 10px 5px;
}
Padding attributes can be edited accordingly.

Background (in this case, the little blue bullet) can be changed with a different image url. It's best to use a small image. You can delete the background code if you don't want one. You can replace it with a solid color, just add: display:block; to the code. You can also add borders: border: 1px solid #000000; for example if you want a border around the comment body.

You might have to edit the padding and background attributes according to the image you use.

The next section of code deals with the amount of space there is below the comment body:
.comment-body p {
margin-bottom: 0;
}
Margin-bottom alters the space below the comment and the comment footer... a higher number = a bigger space.

The next section of code customizes the Comment author; the link to the person who posted the comment.

.comment-author {
margin-top: 4px;
margin-$endSide: 0;
margin-bottom: 0;
margin-$startSide: 0;
padding-top: 0;
padding-$endSide: 10px;
padding-bottom: 0;
padding-$startSide: 60px;
color: #999;
background: url(http://www.blogblog.com/tictac_blue/comment_arrow_blue.gif) no-repeat 44px 2px;
}
Margins and padding attributes can be edited accordingly.

Color alters the link color of the comment author. You can add more text attributes to this if you want.

Background (in this case, the little orange blogger symbol) can be changed with a different image url. It's best to use a small image. You might have to mess around with the pixels depending on the background image you use.

The next section of code deals with the Comment footer; the date the comment was posted.
.comment-footer {
border-bottom: 1px solid #ddd;
padding-bottom: 1em;
}
Border-bottom will change the line separating each comment. You can delete this line of code if you don't want one.

Padding attributes can be altered accordingly. You can add more text attributes if you wish.

The last section of comment customization code deals with Deleted comments:

.deleted-comment {
font-style:italic;
color:gray;
}
This is the way the text that says "Comment has been deleted by..." will look. In this case, it's italic and gray font. You can change this and add attributes if you wish.

This is how I customized my comments to look using the Tictac Blue comments template as a base.



I hope this tutorial helped clear up some of the basics of customizing blogger comments (: If not, please let me know and I'll try to explain a little better! This is pretty uncharacteristic of me to give away my personalized coding so freely, but if you would like to learn off my comment CSS, here is my coding:

/* Comments
----------------------------------------------- */
#comments {
padding: 0px 0px 0px 0px;
color: #222222;
text-align:justify!important;
background: #ffffff url() no-repeat top left;
}


#comments h4 {
margin-top: 10px;
margin-right: 0;
margin-bottom: 15px;
margin-left: 0;
padding-top: 8px;
padding-right: 0;
padding-bottom: 0;
padding-left: 10px;
font-family: "Georgia";
font-size: 130%;
color: #D88080;
background: url() no-repeat 10px 0;
height: 29px !important; /* for most browsers */
height /**/:37px; /* for IE5/Win */
}


#comments ul {
margin-left: 0;
}


#comments li {
background: none;
padding-left: 0;
}


.comment-body {
padding-top: 0px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 15px;
background: url(http://i44.tinypic.com/kezryc.gif) no-repeat 0px 5px;
}


.comment-body p {
margin-bottom: 5px;
}


.comment-author {
margin-top: 4px;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
padding-top: 0;
padding-right: 10px;
padding-bottom: 0;
padding-left: 40px;
color: #000;
background: url(http://i43.tinypic.com/35dc16v.gif) no-repeat 25px 2px;
}


.comment-footer {
border-bottom: 0px dashed #FEFEEE;
padding-bottom: 10px;
padding-top: 10px;
text-align:right;
}


.deleted-comment {
font-style:italic;
color:gray;
}

This may make things a little more clear as to what I've replaced and added from the original coding. If you want to customize your comments similarly to mine, just replace all your original comment coding with my code and edit away! Good luck & have fun (:



Wednesday, May 6, 2009

Alignment

Okay, for all you coding nuts (like me) out there, I re-learned a thing or two about positioning today, since I was having a challenge trying to properly align the positioning of my in-progress website to the left side of the screen in all resolutions and browsers. Like so:

Quick lesson on "position: absolute"

top: 0% = moves to top of page
top: 50% = moves to middle of page
top: 100% = moves to bottem of page

left: 0% = moves to left of page
left: 50% = moves to center of page
left: 100% = moves to right of page

margin-left: -15px = moves left 15px
margin-left: 15px = moves right 15px

margin-top: 45px = moves down 45px
margin-top: -45px = moves up 45px

It took quite some time, but I finally figured to use the underscore hack: _margin-left:XXpx; in addition to margin-left:XXpx, like so: _top:XXpx; top:XXpx; AND at left:0%; instead of left:50%; + margin-left attributes, which is where all the alignment trouble started.

Also, I learned not to set your layout template as a background image, rather, put it in its own DIV. Textareas also weren't working for me, but now I know you may have to add the textarea class to your codes and edit the properties accordingly.

Also, incase anyone's interested (I was lol), to perfectly center a DIV: set the properties to left:50%; and make the margin-left: -[half the width of your DIV]. That is; the negative of half the width of your DIV.

Thanks, createblog :P