|
|
.sf, table tr td { display: none; } body { background: #DADADA URL('http://img526.imageshack.us/img526/8857/tileov2.jpg') repeat-y; } a:link, a:active, a:visited, a.special:link, a.special:active, a.special:visited { color: #00BBF8; text-transform: uppercase; text-decoration: none; } a:hover { color: #FFF; letter-spacing: 2px; text-transform: lowercase; } a.special:hover { color: #FFF; text-transform: none; } b { font: 10px tahoma; color: #00A8DF; letter-spacing: 1px; font-weight: bold; } i { font: 10px tahoma; color: #729B00; font-style: italic; letter-spacing: 1px; } u { letter-spacing: 2px; } h2 { font: 10px century gothic; font-weight: bold; color: #8DBF02; letter-spacing: 4px; text-transform: uppercase; text-align: right; background-color: #FFF; padding: 2px; margin: 0px; border-bottom: 2px solid #000; } hr { width: 400px; height: 4px; background-color: #7FAD00; border: 2px solid #7FAD00; } #table { position: absolute; top: 130px; left: 38px; width: 485px; } .table { width: auto; font: 10px tahoma; color: #303030; letter-spacing: 1px; background-color: #CCC; padding: 10px; margin: 0 0 20 0; border-bottom: 5px solid #000; } #navigation { position: absolute; top: 130px; left: 575px; width: 188px; } .navigation, .information { width: 188px; font: 10px tahoma; color: #303030; letter-spacing: 1px; background-color: #CCC; padding: 0px; padding-top: 2px; margin: 0 0 10 0; border-bottom: 5px solid #000; } .information { width: auto; padding: 5px; } a.nav:link, a.nav2:link, a.nav3:link, a.nav4:link, a.nav5:link, a.nav:visited, a.nav2:visited, a.nav3:visited, a.nav4:visited, a.nav5:visited, a.nav:active, a.nav2:active, a.nav3:active, a.nav4:active, a.nav5:active{ font: 10px century gothic; font-weight: bold; color: #00A8DF; text-decoration: none; background: none; display: block; text-align: center; text-transform: lowercase; line-height: 12px; letter-spacing: 1px; margin-bottom: 3px; margin-left: 4px; margin-right: 5px; border-bottom: 1px solid #BCBCBC; } a.nav4:link, a.nav4:visited, a.nav4:active { color: #00A8DF; text-align: left; border-left: 15px solid #00A8DF; padding-left: 10px; line-height: 15px; } a.nav:hover, a.nav2:hover { color: #729B00; letter-spacing: 10px; cursor: help; } a.nav3:hover { color: #729B00; letter-spacing: 3px; cursor: help; } a.nav4:hover { color: #729B00; letter-spacing: 30px; cursor: help; border-right: none; } a.nav5:hover { color: #729B00; letter-spacing: 1px; cursor: help; } pre { font: 10px verdana; color: #000; background: #E9E9E9; padding: 5px; margin: 8px 0 8px 10px; border: 2px solid #00BBF8; } .counter{ background-image: URL(http://img208.imageshack.us/img208/6587/counterbgij7.jpg) } #image { position: absolute; top: 0px; left: 0px; } .pre2, .pre3 { font: 10px verdana; color: #000; background: #E9E9E9; letter-spacing: 0px; padding: 5px; margin-top: 10px; margin-bottom: 10px; margin-left: 3px; border: 2px solid #00BBF8; width: 444px; height: 200px; overflow: auto; } .pre3 { height: 100px; } textarea { font: 11px tahoma; color: #303030; background-color: #A6A6A6; overflow-x: hidden; border: 1px solid #303030; margin-bottom: 3px; height: auto; width: 420px; padding-left: 5px; margin: 7px; letter-spacing: 1px; } />
This guide was designed just for you. Whether you have some knowledge of coding already, or you're just starting out, this guide will be fun and easy to follow.
If you're having trouble understanding this guide (or if you just have comments, questions, or feedback), please be sure to neomail me! Just click the link under the section called My Links to the right.
**Oh yeah, one more thing. I would greatly appreciate it if you would credit this guide somewhere on your lookup. You don't need to use a big button, just a text credit is fine. It would really help me out, and help spread the word about the guide. Thanks so much!
December 24--Hi, my name is Kitty and I made this guide. I'm sure you don't remember me, because it's been almost three months since I've updated anything. Heh.
Well. My insanely amazing friend Chap figured out what was wrong with my guide, so now I can update it! YAY! THANK YOU SO MUCH CHAP!
So. What's new? Well, now every code on the guide is copy-paste-able. I'm really sorry it took so long for that to happen. But look for some neat new stuff soon!
October 3--Uh. Neopets filters need to stop being mean to me. That's about 80% of the reason I don't update the guide anymore. The other 20% is my laziness and school + work + other stuff that takes up my time. Anyway. Um. Now you can copy and paste codes. But the codes that have like "img src" in them will need triangular brackets added around them. Because the filters wouldn't let me do that. o_o
August 23--Ew I hate when I go to my guide and realize I never update it. Anyway. NEW SECTION ADDED TODAY! It's called Linking Within A Page and it will show you how to do the kind of links that I have on that side bar over there. The ones under This Page that link to different parts of the guide that are all on this same petpage.
August 11--Ahhh. I'm really sorry for the lack of updates. I've been procrastinating a lot. And I've been on vacation. Sooo. Ya. The one image that wasn't working on this guide is fixed now; sorry for the inconvenience.
July 26--Got all of the messed up codes changed into images. So yay, now you can see everything. I'm happy.
July 25--Um. Most of the guide came back today, after a nearly two month long hiatus. Yay.
Coming soon stuff, along with other notes, will go in this box.
NOTE! -- Please read my FAQ before neomailing me! Thanks!
Make sure you check back often for more features and new sections!
CSS is fairly easy to understand, once you get used to it.
To start your coding, you need to add an opening tag to the very beginning of your coding. When you're done
with the coding, you need a closing tag at the very end. The opening and closing tags will look like
this:
Now remember, you only need one openening tag and one closing tag in your entire coding. More opening or
closing tags just take up precious room that you may need for something else.
Easy enough, huh? Now I'll talk about parts of a lookup and how to remove them.
The largest and oftentimes most annoying part of a default user lookup is the header and footer. These are the big bars at the top and bottom of the page, used now, in place of the old neopets sidebar. (Remember sidebars? Ah, the good old days.)
How do you get rid of them? Use this code:
#header, #footer {
display: none;
}
So. You will put that between your opening style tag and closing style tag. Easy.
So, if you're lazy like I often am, you can use this code. Just place it outside (meaning below) your
closing style tag.
The above code will give you simple text navigation links to use.
The text in the middle is the only part that will actually show up on your lookup. Like the word "account". But you can change this part if you want to say something else. Like "MY account", for instance. Heh.
Personally, I think those links are kind of ugly. So how do we spice them up a bit? By adding color and pretty effects of course! Let me explain. xD
Remember:
Whatever is between the style tags will not show up as text on your lookup.
Likewise, whatever is outside the style tags will show up.
Personally, I like to keep all three of those looking the same. It looks better, and it simplifies things. If you don't want them all the same, just separate them so they all have their own set of curly brackets with stuff inside them.
If you noticed, I didn't write out "light blue". Instead I put "#00CCFF". This little bit is called a hex color code. It is a number assigned to a particular color. I usually use hex codes instead of color words (like "light blue" for example) because they are generally shorter. But you may use whichever you'd like. To find a list of hex colors that you can use, just type in "hex color chart" on any search engine. And voila! Colorful! xD
The first new line is called "background-color". This will give your link a background! Imagine that. :P In this case I've used a light pink hex code. You can change this to any color you want!
The second new line is called "font-weight". We wrote "font-weight: bold" to make the text appear bolded. Another option you can use instead of bold is italic.
The third new line was "text-transform". We changed this to "uppercase", and the words will come out like THIS. Two other options you can use instead of uppercase are "lowercase" and "capitalize". Lowercase will (duh!) make your words lowercased. Capitalize will Capitalize all your links, regardless of whether they were capitalized when you typed them out.
The fourth line of code says "text-decoration". To this we added an underline effect. You can also use "underline overline" which makes the link underlined and has a line on top. In addition, you can use "line-through" to make your links have a line going through the middle of the words.
The fifth and final new line of code says "letter-spacing". This will space out the letters of your words like t h i s. We've done 2px in this example, but you can do any number you like. 1, 5, 10, whatever. You can even do negative numbers!
We did change the color of the text. It is now a more greenish blue. In the second line of this code, we changed the links from being UPPERCASED to lowercased. In the third line we changed it so a line will be added to the top of our links, in additon to the bottom, when we hover over them. Finally, we changed the letter-spacing from 2 to 5 pixels (px means pixels). So now, our text will spread out even more when we mouse over it.
Simple enough? I think so. Now remember, you can keep whatever you want the same, and you can change whatever you want. Experiment and see what happens!
See that little link at the bottom of this section, that says back to top? Hover your mouse over it. Coool, huh? The cursor turns into an arrow with a question mark! So how do you do that to your links? By using this line of code, in between the curly brackets named a:hover: cursor: help; Ooh, that was easy! You're probably wondering, "What if I don't want a stupid question mark?" Well, this should solve your problem: cursor: crosshair cursor: hand cursor: wait cursor: text cursor: move There, now you have lots of choices. I'm not going to take the time and the space to explain what they do, so try them out if you want. xD
This section will help teach you how to make those spiffy rectangular links that all the 1337 lookup makers have on their lookups. Like the ones at the top of this page. Go look.
Remember this for later, because we will need to come back to it when we actually make the links appear on our lookup!
So what's new? The last four lines of coding.
In the first new line, it says "display: block". What this does is make the links all nice and on top of each other in a neat row, like at the top of this page. Don't remove this line of coding or you'll have a big ugly mess. xD
In the second line, it says "text-align: left". I think this is pretty self explanatory. It means that the text on your links will be placed on the far left. Two other options instead of "left" are right and center.
The third line says "margin: 4px". This part tells the computer how much space above and below each link you want. The higher the number, the more space there will be, and vice versa.
The final line of coding says "border-right: 10px solid #89d1ff". This is that little blue square at the end of each link. You can change four things here: where the border is, how big it is, what style it is, and what color it is. The rest of this section until the next blue line tells you how to customize these borders.
Border-right means that the border will only appear on the right side of your link. You may change this to "border- left", "border-top", or "border-bottom", to make the border appear on the left, top, or bottom, respectively. You can also have multiple borders in different places. You could have a border on the right, a border on the left, and a border on the bottom by adding another couple lines of coding, like so: border-right: 10px solid #89D1FF; border-left: 10px solid #89D1FF; border-bottom: 2px dashed #FFCCFF This now lets you have a block of color on the right, a block on the left, and a border on the bottom. You can have borders on 1, 2, 3, or even all 4 sides (and they can all be different colors and sizes!).
If you want the same color and size of border around the whole link, just say "border: _________" to avoid having three unneeded lines of coding.
Now let's talk about the word "solid".
Solid is the type of line that will appear. That's what I've used on my links on this page. But you can choose from
many other options including dotted, dashed, and double. These are the most common, and it's fairly easy
to understand what they do, but you
can also have ridge, groove, inset, or outset border styles. Try them out and see what they do!
If you wanted a lot of room there, you would type something like "padding: 10px". If you didn't want much room, you could type "padding: 2px". In the example on this page, I didn't include this line of code because it isn't necessary and I didn't want any padding. But play around with it and see what happens!
Actually, this section should be pretty self-explanatory. Everything included in the first code is what you can change with the hover. The best thing is to just play around and experiment with the fonts, colors, borders, etc. and see what you can come up with. But if you're stuck, here's what the hover on my links looks like: a.nav:hover { letter-spacing: 8px; cursor: help; border-right: 0px solid #000; } Notice that these brackets are called "a.nav:hover", which is similar to the regular text links. On those we used "a:hover". With these we just add the ".nav" part. Simple, huh? xD
Then I increased the letter spacing, added a help cursor, and made the border 0px so it won't show up. Cool.
Remember that just like with regular text links, whatever was in the original link properties will not change on hover unless you type in a line to change it.
Do you remember before how I told you to remember how we added .nav to the coding of these
links? We will need to take this into account now.
Recall that our plain text navigation links looked like this:
But now, we need to add something to this coding to make these links cool and rectangular, not plain text. So...We
need to do this:
Right after "/myaccount.phtml" we added class="nav". This tells the computer to use the coding from how we designed these
links instead of the plain text ones. The computer knows this because we named the class with the coding "nav" so it
knows right where to go.
Pretty simple, eh?
Just remember to add class="nav" to all the links you want to be rectangular.
The code will look like this: #main { background: none; border: none; } body { background: #FFCCFF; } You'll notice we still have the body tag with a line of coding telling what color we want, like we used to do with the old lookups. But with the new ones, they've added something called the main that we needed to get rid of.
We made the main have no background and no border. This gets rid of the ugly white thing that would show up otherwise.
Now, If you want that ugly thing to show up, you can actually make it pretty and make it have a neat border. You can change the background color and borders like we've done before. If you missed the section on borders, go here to read about them now!
#main { background: none; border: none; } body { background: #FFCCFF URL('URL OF IMAGE') repeat; } Now you'll see we still have a color (#FFCCFF) for our background. This color will appear only while the background is loading. Then, in between the parentheses and the single quote things (these: ' '), I wrote URL OF IMAGE. This is where you will exchange the URL of the image you want as your background.
Next, it says repeat. This means that the background image will repeat, or tile, all over the page. You can change this to "no-repeat" which means the image will not tile itself. Or you can change it to "repeat-x" which makes it repeat horizontally across the page. Finally, "repeat-y" will make the image repeat vertically down the page.
This would be the basic code you'd need to change your font: body, font, td, p, .medText { font: 14px verdana; color: #FFCCFF; } This code will change the font of all the text on the page. Now, I don't really know why you need all those names separated by commas, but you do. It has to do with making the modules (all those boxes that hold your stats) and the header and footer have the same text as the rest of the page, in addition to some other reasons that don't really concern me. Nor should they concern you. xD
So in that code I just have two lines: One adjusting the font face and size, and another to change the color. Like we did with the links, you can change and manipulate pretty much anything about the font that you want. If you skipped the section, or just forgot everything you read, click here. xD
The first set, called .contentModuleHeader will be used to adjust the look of one header: the one called "User Info".
The other set of brackets is called .contentModuleHeaderAlt. This is what we'll use to adjust the look of the headings on all the other modules.
There is one thing sort of different about this code, though. You'll notice the first set of curly brackets is named ".contentModuleHeader, .contentModuleHeaderAlt". This means that everything in between those brackets will affect the "User Info" header and all the other headers. So in other words, everything in between the brackets will affect every header on the page. xD
But then there's that other set of curly brackets called ".contentModuleHeaderAlt". We've already given those headers some decoration, since we've edited all the headers on the page. But this extra set of brackets will allow us to change some stuff only to those headers without changing what the "User Info" header already looks like. In this case, we've changed these headers to have a smaller font with less letter spacing. Pretty! xD
Good. You didn't skip it. Now when we've used padding before, it has applied to the space all around the text. But, we can make padding on just one side! Or 2 or 3 sides! How to do it? Why, put codes like these in between your curly brackets, of course: padding-left: 20px; padding-top: 10px; This can come in handy if, for example, your text is left-aligned, and you don't want the text to start so close to the edge of the header, but you don't want 20 pixels of space all around it. Like always, experiment and see what you can do!
So this section will talk all about how to make your stats boxes/tables pretty. This is one of the biggest parts of making a spiffy lookup. So hold on to your hats, kids, here we go.
Now, just like the full page backgrounds, you can have images as backgrounds too! You do it the exact same way. Just add "URL('URL OF IMAGE') repeat;" after your color code.
It doesn't get any simpler than that. Borders on the other hand, are a little more complex and meticulous. Let's take a look at them now.
Yes, I'm aware that those borders look terrible. But this is the easiest way to learn.
So. Can you see the three different colored borders there? There's a dotted orange one, a solid blue one, and a dashed red one. Yes. There are THREE different borders you can change. Let's go through them one-by-one.
First, let's look at the dotted orange one. This, if you can tell, is the border that's the farthest outside. It can be adjusted like so: .contentModule { border: 3px dotted #FF9900; } Notice that the word that adjusts this furthest-out border is ".contentModule".
Now, let's look at the solid blue border. The following is the code needed to make adjustments to this border: .contentModuleTable { border: 5px solid #0099FF; } The word that adjusts this border (one that goes around your stats box and the header [like the other one did]) is ".contentModuleTable".
And finally, let's look at the dashed red border. It corresponds with this code: .contentModuleContent { border: 3px dashed #FF0000; } It's name is ".contentModuleContent" and it's a little special. If you look closely, you'll notice that this border goes around only your stats in the box and not the header of the module. Neat, huh? xD
Oh, and I promised you pictureS, didn't I? Yes, I know there was only one. Well that's all I ended up needing. But if you really like pictures you will enjoy this:

You should only use this code to position your stats left and right on the page, not up and down. We'll talk about a different code for that. But going back to the coding...
NOTE: Since the #content tag will move your text and images too, I would reccomend setting "top: __px;" to 0px so that you will be able to put things in the very corner. Also, I would suggest setting the "left: __px;" to 0px as well (but you don't have to). Trust me on this one. xD
However, it's not quite as easy as that. Those of you with four pets and a neohome, like me, will be unpleasantly surprised to find that this code will bunch up your neohome in a skinny little box, and cause your neopets to have a lot of blank space beneath them. But there is a solution to this! Okay, I admit that's not a very pretty solution, but solution it is. Haha. And I find that I use this often, with some of my narrower-graphicked lookups. (What grammar!) So here's the code: #userneopets img { height: 115px; width: 115px; } What this code does, if you can't tell, is makes the pictures of all your neopets 115 pixels wide, and 115 pixels tall. You can adjust the number 115 so it looks right on your lookup.
In addition to this code, you may need one like this, to make your trophies smaller too. #usertrophies img { height: 60px; width: 60px; } Make sure you play around with the sizes of the trophies as well.
But if you did, think about this: If you set your #content to 20px from the top, and now your #stats to 40px from the top, your stats are going to end up 60px from the top of the page.
Now we're going to make our stats actually appear on our lookup. To do this we will put the following outside
our style tags:
NEOPETS, characters, logos, names and all related indicia
are trademarks of Neopets, Inc., © 1999-2012.
® denotes Reg. US Pat. & TM Office.
All rights reserved.
PRIVACY POLICY | Safety Tips | Contact Us | About Us | Press Kit
Use of this site signifies your acceptance of the Terms and Conditions