Welcome to Gaia! ::


Wealthy Capitalist

5,750 Points
  • Millionaire 200
  • Entrepreneur 150
  • Money Never Sleeps 200
User Image - Blocked by "Display Image" Settings. Click to show.
~ By Lord-of-the-flies ~
Welcome to the extended profile, custom CSS tutorial. This tutorial, as specified in the title, will assist you in the manipulation of your custom CSS for the extended profiles. To make this as simple as possible, I will break the code down to it's simplist form to explain what is going on. If you have any questions reguarding this tutorial, please post your question in this thread, and I will edit the tutorial to better fit your needs. Thank you.

NOTICE! This guide is now OBSOLETE, as I have yet to finish it in the amount of time that it has been here.
If you would like to code your profile, I suggest other guides found on this forum.
I HIGHLY recommend CSS Profile Codes Tutorial -- A Comprehensive Guide by Kahime

INCOMPLETE
20%

User Image - Blocked by "Display Image" Settings. Click to show.

Wealthy Capitalist

5,750 Points
  • Millionaire 200
  • Entrepreneur 150
  • Money Never Sleeps 200
|| Read before proceeding! ||
At this point in time, this tutorial is INCOMPLETE - please wait untill it is finished before asking anything about it. You may still post if you wish, but I may be too busy to respond. Thank you ^^

Wealthy Capitalist

5,750 Points
  • Millionaire 200
  • Entrepreneur 150
  • Money Never Sleeps 200
|| CSS tutorial ||
For this tutorial, I've gone into the Gaia online extended profile CSS sheets and extracted the information that will be used to customize your extended profile - meaning that all the information here follows the same format as the Gaia online official code. Everything has been broken down and divided into sections based on each section of the extended profiles. This isn't too confusing, but beginners in CSS may have some trouble. I will only include practical use CSS code in this tutorial.

Many fields use hexadecimal - for a quick chart, please visit the following site:
http://www.december.com/html/spec/color.html

I'm "Borrowing" some of this code from NikkiTheStampede,
so be sure to thank her for it ^^



|| BODY ||
BODY{
background-color: #B6CAD5;
background:url('myimage')
scrollbar-face-color: #DEE3E7; /* IE only stuff */
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #DEE3E7;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color: #C8DFF9;
scrollbar-track-color: #EFEFEF;
scrollbar-darkshadow-color: #98AAB1;
}

The body is basically the page itself - it effects everything in it when changed, so for this reason, we want to avoid adding too much clutter to it.

--- background-color : Changes the background color of the page.
--- background : Change the "myimage" in the parenthesis to an image URL to get a background image. Remove this line if you don't plan to use it.
--- scrollbar sections : IE ONLY. Allows you to manipulate the colors of the browser's scrollbar. I won't go into this for now, as it's a bit complicated and I don't use it personally.


|| HEADER ||
#extendedProfileBody #header h1{
background-color: #B6CAD5;
background: url('myimage')
}

The header is what appears above the navigation bar - It holds our avatar image and the image based around our location. Mostly just for looks.

--- background-color : Changes the background color of the header.
--- background : Change the "myimage" in the parenthesis to an image URL to get a custom header. Remove this line if you don't plan to use it.


|| CONTENT ||
#content{
background-color: #B6CAD5;
background: url('myimage')
}

Content is the DIV in which all the sections of your extended profile are kept. Again, it's a background object, so avoid putting too much into it..

--- background-color : Changes the background color of the content.
--- background : Change the "myimage" in the parenthesis to an image URL to get a background image in your content. Remove this line if you don't plan to use it.


|| SECTIONS ||
.section {
font: 8px verdana;
color: #8DA9D4;
background-color: #B6CAD5;
background: url('myimage')
border: 1px dashed #8DA9D4;
}
.section h2{
color: #8DA9D4;
font-size: 14px;
}

The sections are basically just that - sections of the extended profile. They contain the data for basically all the items displayed individually. Bacause everything is linked to this class, all sections become uniform based on the section here untill additional customization, which we will cover later in this tutorial.

[ .section ]
--- font : This follows the format "(size)px (font type)". Replace (size) with the font size and (font type) with your font of choice.
--- color : The font color of everything in your sections.
--- background-color : Changes the background color of the sections.
--- background : Change the "myimage" in the parenthesis to an image URL to get a background image in your sections. Remove this line if you don't plan to use it. NOT RECOMMENDED.
--- border : Follows the format "(size)px (border style) #(color)" - replace (size) with the border width, (border style) with either "solid", "double", "dashed", or "dotted", and replace (color) with the border color.

[ .section h2 | The H2 tag is used with each tag in the sections (Wish List, About, Friends, etc.). ]
--- color : Changes the color of the section tags.
--- font-size : Changes the size of the section tags


|| "PROFILE" SECTION ||
#profile{
background-color: #F3F6FF
background: url('myimage') top left repeat-x;
}
#profile h2{
background: url('myimage') top left no-repeat;
text-indent: 45px;
}
#profile #bar{
height: 22px;
margin-left: 12px;
}
#profile .avatar{
position: relative;
}
#profile .caption{
background-color: #C6D7F0;
border: 2px solid #8DA9D4;
}
#profile .caption .message{
color: #000000;
font-size: 12px;
}

The "profile" section contains your avatar, status bar, what you're wearing, and your message. There's a few things that can be customized here.

[ #profile ]
--- background-color : Changes the background color of the profile section. This will override the .section code. Remove this line if you wish to retain uniform sections.
--- background : IMPORTANT! THIS IS YOUR SECTION CORNER IMAGE. Change the "myimage" in the parenthesis to an image URL to get a background image in your profile section. Remove this line if you don't plan to use it.

[ #profile h2 | Your username displayed in the first box ]
--- background : Change the "myimage" in the parenthesis to an image URL to get a background image of your username. Remove this line if you don't plan to use it.
--- text-indent : This is important if you plan to have a courner image. This shifts your username over to the right so that the image is not obstructed.

[ #profile #bar | Your online status bar - contains PM, trade, etc. ]
--- height : The height of your status bar (the bar with your online status).
--- margin-left : The amount to shift your bar to the right.

[ #profile .avatar | Your displayed avatar in this section ]
--- position : Position of your displayed avatar. This can be either "relative" or "absolute". In the instance of "absolute", you need to include the additional tags "top" and "left", and use those to position.

[ #profile .caption | This is the DIV that your message is displayed in ]
--- background-color : The background color of your caption.
--- border : Follows the format "(size)px (border style) #(color)" - replace (size) with the border width, (border style) with either "solid", "double", "dashed", or "dotted", and replace (color) with the border color.

[ #profile .caption .message | The message text within the caption ]
--- color : Your caption color
--- font-size : Your caption font size


|| DETAILS ||
#details{
background-color: #F3F6FF;
background: url('myimg') top left repeat-x;
}
#details h2{
background: url('myimg') top left no-repeat;
text-indent: 45px;
}
#details #stats{
color: #FFFFFF;
font-size: 12px;
}

Your "details" section contains all your user details including Birthday, location, last login, post count, etc. A couple customizable things here, but not too many.

[ #details ]
--- background-color : Changes the background color of the details section. This will override the .section code. Remove this line if you wish to retain uniform sections.
--- background : IMPORTANT! THIS IS YOUR SECTION CORNER IMAGE. Change the "myimage" in the parenthesis to an image URL to get a background image in your details section. Remove this line if you don't plan to use it.

[ #details h2 | The word "Details" in the second section ]
--- background : Change the "myimage" in the parenthesis to an image URL to get a background image of the text. Remove this line if you don't plan to use it.
--- text-indent : This is important if you plan to have a courner image. This shifts the text over to the right so that the image is not obstructed.

[ #details #stats | The displayed statistics of the user ]
--- color : The statistics font color
--- font-size : Statistics font size


|| WISHLIST ||
#wishlist{
background-color: #F3F6FF;
background: url("myimage") top left repeat-x;
border: 1px solid #354FA3;
}
#wishlist h2{
background: url("myimage") top left no-repeat;
text-indent: 45px;
}
#wishlist .questing{
background: url("myimage") top right no-repeat;
}
#wishlist .bought{
background: url("myimage") top right no-repeat;
}
#wishlist .donated{
background: url("myimage") top right no-repeat;
}

Your "wishlist" section contains all items you've added to your wishlist.

[ #wishlist ]
--- background-color : Changes the background color of the wishlist section. This will override the .section code. Remove this line if you wish to retain uniform sections.
--- background : IMPORTANT! THIS IS YOUR SECTION CORNER IMAGE. Change the "myimage" in the parenthesis to an image URL to get a background image in your details section. Remove this line if you don't plan to use it.
--- border : Follows the format "(size)px (border style) #(color)" - replace (size) with the border width, (border style) with either "solid", "double", "dashed", or "dotted", and replace (color) with the border color.

[ #wishlist h2 | The words "Wish list" in the third section ]
--- background : Change the "myimage" in the parenthesis to an image URL to get a background image of the text. Remove this line if you don't plan to use it.
--- text-indent : This is important if you plan to have a courner image. This shifts the text over to the right so that the image is not obstructed.

[ #wishlist .questing | Displayed items with the "Questing" status ]
--- background : Change the "myimage" in the parenthesis to an image URL to get a background image of the item. Remove this line if you don't plan to use it.

[ #wishlist .bought | Displayed items with the "Bought" status ]
--- background : Change the "myimage" in the parenthesis to an image URL to get a background image of the item. Remove this line if you don't plan to use it.

[ #wishlist .donated | Displayed items with the "Donated" status ]
--- background : Change the "myimage" in the parenthesis to an image URL to get a background image of the item. Remove this line if you don't plan to use it.


|| ABOUT ||
#about{
background-color: #FFF3F3;
background: url("myimage") top left repeat-x;
border: 1px solid #903535;
height: 1%; /* Holly Hack */
}
#about h2{
background: url(images/about_header.gif) top left no-repeat;
}

Your "about" section contains the information you added in the "about me", as well as links to your guilds, posts, and store.

[ #about ]
--- background-color : Changes the background color of the wishlist section. This will override the .section code. Remove this line if you wish to retain uniform sections.
--- background : IMPORTANT! THIS IS YOUR SECTION CORNER IMAGE. Change the "myimage" in the parenthesis to an image URL to get a background image in your about section. Remove this line if you don't plan to use it.
--- border : Follows the format "(size)px (border style) #(color)" - replace (size) with the border width, (border style) with either "solid", "double", "dashed", or "dotted", and replace (color) with the border color.
--- height : No need to mess with this - it simply returns the section to the original height when nothing is in it, simular to a rubber band.

[ #about h2 | The word "About" in the fourth section ]
--- background : Change the "myimage" in the parenthesis to an image URL to get a background image of the text. Remove this line if you don't plan to use it.
--- text-indent : This is important if you plan to have a courner image. This shifts the text over to the right so that the image is not obstructed.

-- Still writing below this line --

|| FRIENDS ||
#friends{
background: #FEF2F8 url(images/friends_header_tile.gif) top left repeat-x;
border-right: 1px solid #972961;
border-bottom: 1px solid #972961;
border-left: 1px solid #972961;
height: 1%; /* Holly Hack */
}
#friends h2{
background: url(images/friends_header.gif) top left no-repeat;
}

#friends #friendGroup
{
margin-top: 10px;
}

#friends #friendGroup li
{
float: left;
width: 110px;
height: 130px;
text-align: center;
border-right: 2px solid #FFDFF0;
}

#friends #friendGroup li img
{
width: 96px;
height: 96px;
}

Your "about" section contains the information you added in the "about me", as well as links to your guilds, posts, and store.

[ #about ]
--- background-color : Changes the background color of the wishlist section. This will override the .section code. Remove this line if you wish to retain uniform sections.
--- background : IMPORTANT! THIS IS YOUR SECTION CORNER IMAGE. Change the "myimage" in the parenthesis to an image URL to get a background image in your about section. Remove this line if you don't plan to use it.
--- border : Follows the format "(size)px (border style) #(color)" - replace (size) with the border width, (border style) with either "solid", "double", "dashed", or "dotted", and replace (color) with the border color.
--- height : No need to mess with this - it simply returns the section to the original height when nothing is in it, simular to a rubber band.

[ #about h2 | The word "About" in the fourth section ]
--- background : Change the "myimage" in the parenthesis to an image URL to get a background image of the text. Remove this line if you don't plan to use it.
--- text-indent : This is important if you plan to have a courner image. This shifts the text over to the right so that the image is not obstructed.

Wealthy Capitalist

5,750 Points
  • Millionaire 200
  • Entrepreneur 150
  • Money Never Sleeps 200
For now, I will provide a quick list of pre-defined CSS in extended profiles for those experienced with CSS coding to mess with.

/* GENERAL */

*
{
margin: 0;
padding: 0;
}

ul li
{
list-style-type: none;
}

dl dt
{
font-weight: bold;
}

/* CONTENT */

#content
{
padding: 10px;
}

#content #sidebar
{
position: absolute;
width: 230px;
left: 15px;
}

#content #main
{
margin-left: 240px;
}

/* SECTION */

.section
{
margin-bottom: 10px;
padding: 0 10px 10px 10px;
font-size: 12px;
}

.section h2
{
color: #FFF;
font-size: 16px;
margin: 0 -11px 0 -11px;
height: 41px;
margin-bottom: 10px;
line-height: 25px;
text-indent: -5000px; /* PHARK */
}

.section .clear
{
clear: both;
}

.section .head
{
width: 48px;
height: 48px;
}

.section .torso
{
width: 96px;
height: 96px;
}

.section .body
{
width: 120px;
height: 150px;
}

.section .items li
{
display: inline;
}

.section .items li img
{
width: 30px;
height: 30px;
}

.section .online
{
background: url(images/status_online.gif) top left no-repeat;
padding-left: 20px;
}

.section .offline
{
background: url(images/status_offline.gif) top left no-repeat;
}

.section .hidden
{
background: url(images/status_hidden.gif) top left no-repeat;
}

.section .links
{
margin-bottom: 10px;
}

.section .links li
{
display: inline;
}

.section .date
{
text-align: right;
font-size: 10px;
font-weight: normal;
font-style: italic;
margin: 0 0 3px 3px;
}

/* CAPTION */

.caption
{
border: 2px solid #6F7074;
background: #FFF;
}

.caption2
{
border: 2px solid #6F7074;
background: #FFF;
}

.caption:before
{
display: block;
margin: -2px -2px -2px -2px;
content: url(images/caption_tl.gif)
background: url(images/caption_tr.gif) top right no-repeat;
line-height: .1;
}

.caption:after
{
display: block;
margin: -2px -2px -2px -2px;
content: url(images/caption_bl.gif)
background: url(images/caption_br.gif) bottom right no-repeat;
line-height: .1;
}

.caption2:before
{
display: block;
margin: -2px -2px -2px -2px;
content: url(images/caption_tl.gif)
background: url(images/caption_tr.gif) top right no-repeat;
line-height: .1;
}

.caption2:after
{
display: block;
margin: -2px -2px -2px -2px;
content: url(images/caption_bl.gif)
background: url(images/caption_br.gif) bottom right no-repeat;
line-height: .1;
}

.caption .message
{
position: relative;
padding: 0 0 0 32px;
min-height: 45px;
margin: 0 -12px 0 0;
background: url(images/caption_ml.gif) top left no-repeat;
font-size: 13px;
font-weight: normal;
height: 45px;
left: -21px;
}

.caption2 .message
{
position: relative;
padding: 0 32px 0 0;
min-height: 45px;
margin: 0 0 0 -12px;
background: url(images/caption_mr.gif) top right no-repeat;
font-size: 13px;
font-weight: normal;
height: 45px;
right: -22px;
}

.caption > .message
{
height: auto;
left: -22px;
}

.caption2 > .message
{
height: auto;
}

/* PROFILE */

#profile
{
background: #F3F6FF url(images/details_header_tile.gif) top left repeat-x;
border-right: 1px solid #354FA3;
border-bottom: 1px solid #354FA3;
border-left: 1px solid #354FA3;
}

#profile h2
{
background: url(images/details_header.gif) top left no-repeat;
text-indent: 45px;
}

#profile #bar
{
height: 22px;
margin-left: 12px;
}

#profile #bar li
{
display: inline;
float: left;
}

#profile #bar #status
{
background: url(images/action_bar_frontcap.gif) top left no-repeat;
}

#profile #bar #friend
{
width: 33px;
}

#profile #bar #message
{
width: 29px;
}

#profile #bar #trade
{
width: 28px;
}

#profile #bar #ignore
{
width: 34px;
}

#profile .avatar
{
position: relative;
}

#profile .caption
{
position: absolute;
top: 80px;
left: 110px;
width: 105px;
}

#profile .status
{
background: url(images/action_bar_frontcap.gif) top left no-repeat;
margin-left: 10px;
}

/* DETAILS */

#details
{
background: #F3F6FF url(images/details_header_tile.gif) top left repeat-x;
border-right: 1px solid #354FA3;
border-bottom: 1px solid #354FA3;
border-left: 1px solid #354FA3;
height: 1%; /* Holly Hack */
}

#details h2
{
background: url(images/details_header.gif) top left no-repeat;
text-indent: 45px;
}

#details #stats
{
float: right;
width: 100px;
margin: 0 0 10px 10px;
}

/* WISHLIST */

#wishlist
{
background: #F3F6FF url(images/details_header_tile.gif) top left repeat-x;
border-right: 1px solid #354FA3;
border-bottom: 1px solid #354FA3;
border-left: 1px solid #354FA3;
}

#wishlist h2
{
background: url(images/details_header.gif) top left no-repeat;
text-indent: 45px;
}

#wishlist .questing
{
background: url(images/wishlist_questing.gif) top right no-repeat;
}

#wishlist .bought
{
background: url(images/wishlist_bought.gif) top right no-repeat;
}

#wishlist .donated
{
background: url(images/wishlist_donated.gif) top right no-repeat;
}

/* ABOUT */

#about
{
background: #FFF3F3 url(images/about_header_tile.gif) top left repeat-x;
border-right: 1px solid #903535;
border-bottom: 1px solid #903535;
border-left: 1px solid #903535;
height: 1%; /* Holly Hack */
}

#about h2
{
background: url(images/about_header.gif) top left no-repeat;
}

/* FRIENDS */

#friends
{
background: #FEF2F8 url(images/friends_header_tile.gif) top left repeat-x;
border-right: 1px solid #972961;
border-bottom: 1px solid #972961;
border-left: 1px solid #972961;
height: 1%; /* Holly Hack */
}

#friends h2
{
background: url(images/friends_header.gif) top left no-repeat;
}

#friends #friendGroup
{
margin-top: 10px;
}

#friends #friendGroup li
{
float: left;
width: 110px;
height: 130px;
text-align: center;
border-right: 2px solid #FFDFF0;
}

#friends #friendGroup li img
{
width: 96px;
height: 96px;
}

/* JOURNAL */

#journal
{
background: #F9F3FF url(images/journal_header_tile.gif) top left repeat-x;
border-right: 1px solid #6C33A1;
border-bottom: 1px solid #6C33A1;
border-left: 1px solid #6C33A1;
}

#journal h2
{
background: url(images/journal_header.gif) top left no-repeat;
}

/* MULTIMEDIA */

#multimedia
{
background: #FFF6E0 url(images/multimedia_header_tile.gif) top left repeat-x;
border-right: 1px solid #6F5001;
border-bottom: 1px solid #6F5001;
border-left: 1px solid #6F5001;
}

#multimedia h2
{
background: url(images/multimedia_header.gif) top left no-repeat;
}

/* COMMENTS */

#comments
{
background: #FBF4EF url(images/comments_header_tile.gif) top left repeat-x;
border-right: 1px solid #834115;
border-bottom: 1px solid #834115;
border-left: 1px solid #834115;
}

#comments h2
{
background: url(images/comments_header.gif) top left no-repeat;
}

#comments dl dt
{
position: relative;
padding-top: 10px;
}

#comments dl dt.avatar img
{
position: absolute;
left: 0;
}

#comments dl dt.avatar2 div
{
text-align: right;
}

#comments dl dt.avatar2 img
{
position: absolute;
right: 0;
width: 120px;
}

#comments dl
{
padding-bottom: 90px;
}

#comments dl dd
{
margin: 0 120px 0 100px;
}

#comments .delete
{
margin-top: 10px;
text-align: right;
}

#comments #pagination li
{
display: inline;
}

#comments .admin li
{
text-align: right;
}

/* SIGNATURE */

#signature
{
background: #F0F8FC url(images/signature_header_tile.gif) top left repeat-x;
border-right: 1px solid #176385;
border-bottom: 1px solid #176385;
border-left: 1px solid #176385;
text-align: center;
}

#signature h2
{
background: url(images/signature_header.gif) top left no-repeat;
}

/* MODERATE */

#moderate
{
padding: 10px;
border: 1px solid #639;
background: #EBD6FF;
}

#moderate a
{
color: #639;
}

#moderate li
{
display: inline;
}

Wealthy Capitalist

5,750 Points
  • Millionaire 200
  • Entrepreneur 150
  • Money Never Sleeps 200

reserved 5/5

Feel free to post - I'll finish the tutorial portion tomorrow.
Hey LOTF... thought you'd be coming up with one of these...

you might want to add a section for changing the header...

I beleve it was

#extendedProfileBody #header h1 div {background: url(http://____)}

to change the headder banner...

It worked for me before... but that thing just dosen't like me anymore... it's not working...

Sparkly Dabbler

6,350 Points
  • Citizen 200
  • Signature Look 250
  • Gaian 50
*gasp* you beat me to it! xd
oh well, link to mine:: css tut

though i'm sure yours will go much more indepth!!!

Wealthy Capitalist

5,750 Points
  • Millionaire 200
  • Entrepreneur 150
  • Money Never Sleeps 200
Kahime
*gasp* you beat me to it! xd
oh well, link to mine:: css tut

though i'm sure yours will go much more indepth!!!


Heh - I went to my extended profile and saw custom CSS available - that instant I looked into the code, and ran to make this tutorial xD
First page! Woo
It's so complicated, my brains are dribbling from my nose. Yay.
Awesome! I love your other tutorials! So glad you're doing one for this.
Tho, since you threw up the CSS coding, I think I'll be able to work on mine now. Yaay.
whats the code to change the color screen behind the avatar, and the commons?
Do you do them for pay?

Wealthy Capitalist

5,750 Points
  • Millionaire 200
  • Entrepreneur 150
  • Money Never Sleeps 200
weaponomassdestruction
whats the code to change the color screen behind the avatar, and the commons?


I believe that would be the "Sections" section.

Brainwash
Do you do them for pay?


I might eventually. I just need time to finish everything up first.

Excitable Counselor

This helped a lot! Thanks!
Totally awesome.
Just one suggestion:
a:link {color: #6666CC}
a:visited {color: #9999CC}
a:hover {color: #FF3300}
a:active {color: #FF3300}

To change the link colors (besides the bottom ones).
Sorry if you were going to post this allready.

Quick Reply

Submit
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
//
//

Join Now

// //

Have an account? Login Now!

//
//