Welcome to Gaia! ::

Reply Meri & Kimi's Inc.
[TUT] CSS: Manipulating Official Themes Goto Page: 1 2 [>] [»|]

Quick Reply

Enter both words below, separated by a space:

Can't read the text? Click here

Submit

Meriko
Captain

Aged Gaian

12,400 Points
  • Cat Fancier 100
  • Mark Twain 100
  • Elocutionist 200
PostPosted: Thu Nov 10, 2005 8:41 am


This is the style sheet for the Classic theme. Customizing notes to follow in subsequent posts~ Please only post examples if you've tested them in your own profile and you know they work. Thank you. ^^

/* 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: 230px;
min-height: 500px;
height: 500px;
border-left: 2px solid #D8E9F3;
}

#content > #main
{
height: auto;
}

/* SECTION */

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

.section h2
{
font-size: 15px;
margin: 0 -10px 0 -10px;
height: 25px;
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') no-repeat top left;
}

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

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

.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;
content: url(images/caption_tl.gif);
background: url('images/caption_tr.gif') no-repeat top right;
line-height: .1
}

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

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

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

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

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

.caption > .message
{
height: auto;
}

.caption2 > .message
{
height: auto;
}

/* ACCOUNT */

form
{
margin: 0 150px;
}

textarea
{
width: 100%;
height: 100px;
}

.textfield
{
width: 100%;
}

label
{
font-weight: bold;
}

fieldset
{
margin-bottom: 10px;
}

#account ul li
{
display: inline;
}

/* PROFILE */

#profile
{
background: #FFF;
position: relative;
}

#profile h2
{
background: #185BC2;
color: #FFF;
text-align: center;
font-size: 14px;
font-weight: bold;
/* UN-PHARK */
text-indent: 0;
}

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

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

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

#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: 70px;
left: 110px;
width: 105px;
}

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

/* DETAILS */

#details
{
background: #FFF url('images/details_header_tile.gif') repeat-x top left;
height: 1%
}

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

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

/* WISHLIST */

#wishlist
{
background: #FFF url('images/wishlist_header_tile.gif') repeat-x top left;
}

#wishlist h2
{
background: url('images/wishlist_header.gif') no-repeat top left;
}

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

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

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

/* ABOUT */

#about
{
background: #FFF url('images/about_header_tile.gif') repeat-x top left;
height: 1%
}

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

/* FRIENDS */

#friends
{
background: #FFF url('images/friends_header_tile.gif') repeat-x top left;
height: 1%
}

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

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

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

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

/* JOURNAL */

#journal
{
background: #FFF url('images/journal_header_tile.gif') repeat-x top left;
}

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

/* MULTIMEDIA */

#multimedia
{
background: #FFF url('images/multimedia_header_tile.gif') repeat-x top left;
}

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

/* COMMENTS */

#comments
{
background: #FFF url('images/comments_header_tile.gif') repeat-x top left;
}

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

#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: #FFF url('images/signature_header_tile.gif') repeat-x top left;
text-align: center
}

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

/* MODERATE */

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

#moderate a
{
color: #639;
}

#moderate li
{
display: inline;
}
PostPosted: Thu Nov 10, 2005 8:41 am


This is the style sheet for the Blocks theme.

/* 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') no-repeat top left;
padding-left: 20px
}

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

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

.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;
content: url(images/caption_tl.gif);
background: url('images/caption_tr.gif') no-repeat top right;
line-height: .1
}

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

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

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

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

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

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

.caption2 > .message
{
height: auto;
}

/* PROFILE */

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

#profile h2
{
background: url('images/details_header.gif') no-repeat top left;
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') no-repeat top left;
}

#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') no-repeat top left;
margin-left: 10px
}

/* DETAILS */

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

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

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

/* WISHLIST */

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

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

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

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

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

/* ABOUT */

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

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

/* FRIENDS */

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

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

#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') repeat-x top left;
border-right: 1px solid #6C33A1;
border-bottom: 1px solid #6C33A1;
border-left: 1px solid #6C33A1
}

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

/* MULTIMEDIA */

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

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

/* COMMENTS */

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

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

#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') repeat-x top left;
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') no-repeat top left;
}

/* MODERATE */

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

#moderate a
{
color: #639;
}

#moderate li
{
display: inline;
}

Meriko
Captain

Aged Gaian

12,400 Points
  • Cat Fancier 100
  • Mark Twain 100
  • Elocutionist 200

Meriko
Captain

Aged Gaian

12,400 Points
  • Cat Fancier 100
  • Mark Twain 100
  • Elocutionist 200
PostPosted: Thu Nov 10, 2005 12:53 pm


Things Meri has tested out for the Classic stylesheet:

Insert this code to replace the large backdrop at the top of the page. The default is a Barton-like landscape with a house and dog, and the avatar of the person viewing the profile is overlaid on top of it. Replace YOURIMAGEURLHERE with the url of the image you would like to use instead. The image size is 760 pixels wide by 150 pixels tall.
Quote:
#extendedProfileBody #header h1
{
background: url('YOURIMAGEURLHERE')
}


Use these two pieces of code to replace your in-profile avatar with a different image. The first part inserts a background image behind your avatar. The second part makes your avatar transparent/invisible so that you can see the background image.
Quote:
#profile
{
background: url('YOURIMAGEHERE') no-repeat left center;
}
#profile .avatar
{
filter:alpha(opacity=0);
opacity:0;
}


Use this code in order to change the color of the text and bar right above your in-profile avatar (the part that displays your username).
Quote:
#profile h2
{
background: #000000;
color: #FFFFFF;
}


Use this code to replace the scream , 3nodding , and heart icons that represent whether your wishlist item has been bought, donated, or is being quested for. Replace the YOURIMAGEHERE with the image file you want to use.
Quote:
#wishlist .questing
{
background: url('YOURIMAGEHERE') top right no-repeat;
}
#wishlist .donated
{
background: url('YOURIMAGEHERE') top right no-repeat;
}
#wishlist .bought
{
background: url('YOURIMAGEHERE') top right no-repeat;
}


Use this code to place an image behind your commenters. Replace the YOURIMAGEHERE with your own image. I believe the image should be the usual avatar file size (120 wide x 150 tall) or smaller for best results. You can use the same image for both lines or you can use two different ones. The second image provided will end up flipped horizontally, so keep this in mind if you're adding text or have some other aspect that would be affected by flipping the image.
Quote:
#comments dl dt.avatar img
{
background: url('YOURIMAGEHERE');
}
#comments dl dt.avatar2 img
{
filter: fliph;
background: url('YOURIMAGEHERE');
}


Insert this code to put a glow or outline around the avatar of the person viewing the profile. The glow filter also works on other images such as the quest/bought/donated icons. Just insert the line of code before the } and you should be good to go.
Quote:
#avatar
{
filter: GLOW(color=#FFFFFF, strength=10);
}
PostPosted: Thu Nov 10, 2005 3:21 pm


Would it be a problem if I used your codes? ^^;

S a s h a


Taylor_Calastadd

1,750 Points
  • Window Shopper 100
  • Treasure Hunter 100
  • Dressed Up 200
PostPosted: Thu Nov 10, 2005 4:40 pm


I may have missed it, but how do you put up a pic of an Avi edit or something instead of your avi? sweatdrop

EDIT: Nevermind, I found it. sweatdrop
PostPosted: Thu Nov 10, 2005 5:44 pm


Sweet. I needed this. Thank you.

Who knew I'd find it here? XD

You can check out my profile to see how I edited the blocks theme so far.

Ruevian


Kagome_1004

PostPosted: Thu Nov 10, 2005 8:15 pm


This is awesome!
Thanks for the info 3nodding
PostPosted: Thu Nov 10, 2005 10:23 pm


xBinkyx: By all means use the info posted here. ^^ That's why I'm sharing.

Oh, and if anyone has other info or links to other useful info, please do share. ^^ It's rough searching through pages and pages of various forums and threads trying to see if anyone else has already figured out how to do such and such.

Meriko
Captain

Aged Gaian

12,400 Points
  • Cat Fancier 100
  • Mark Twain 100
  • Elocutionist 200

S a s h a

PostPosted: Thu Nov 10, 2005 11:49 pm


Meriko
xBinkyx: By all means use the info posted here. ^^ That's why I'm sharing.

Oh, and if anyone has other info or links to other useful info, please do share. ^^ It's rough searching through pages and pages of various forums and threads trying to see if anyone else has already figured out how to do such and such.

^^ Dankie.
PostPosted: Fri Nov 11, 2005 12:57 pm


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

I used that to get rid of the lines between my friends.

Celestial Archer

Fashionable Entrepreneur

4,700 Points
  • Demonic Associate 100
  • Money Never Sleeps 200
  • Entrepreneur 150

Ruevian

PostPosted: Fri Nov 11, 2005 6:56 pm


Here's a way to change the color and border of the comment quotes. :3

.caption
{
border: 2px solid #47A2BB;
background: black;
color: #206C89;
}
.caption2
{
border: 2px solid #47A2BB;
background: black;
color: #206C89;
}
PostPosted: Sat Nov 12, 2005 6:52 pm


I don't suppose anyone here knows how to make a background fixed?

Ruevian


Pirate Pinkie

PostPosted: Sat Nov 12, 2005 8:43 pm


I don't understand these codes at all.. I don't understand anything about how these profiles work.. gonk Why do I have to be so stupid? gonk xd

I really want an awesome profile, but I have no clue where to strart. sad I'll try some of these codes, but I'll probably make myself more confused. whee
PostPosted: Sun Nov 13, 2005 5:50 pm


My gawd this stuff helps soooo much thanks!!

Yuriuki


Eclipsed soul

PostPosted: Mon Nov 14, 2005 3:06 pm


Ruevian
Here's a way to change the color and border of the comment quotes. :3

.caption
{
border: 2px solid #47A2BB;
background: black;
color: #206C89;
}
.caption2
{
border: 2px solid #47A2BB;
background: black;
color: #206C89;
}


For some reason it's not getting the whole quote box for me gonk Is there more to the code than that, or is my profile just being screwy?
Reply
Meri & Kimi's Inc.

Goto Page: 1 2 [>] [»|]
 
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
Play with GCash
Play with Platinum