Jump to content

CSS/HTML help needed!


Hert123

Recommended Posts

Hi!

I recently started to think of coding my userlookup and petpages because I know a bit HTML (created my own website for a school assignment) and I thought it looked really cool. I got some premade templates for my user lookup and two petpages but I need some help.
On some user lookups you can see more than 5 pets displaying, although they're not all on the same account because this is impossible. I want to know how that works and what code you need to have to show more Neopets!

If you could help me out, answer this topic or send me a Neomail. I really want to know how it works!

My user lookup is CSS.

Thanks in advance!

xx Tess

 

ps. sorry if this isn't the right place to post this question but I thought it's about coding for Neopets so..

Link to comment
Share on other sites

The first step would be to create an image the same width as the neopets box where you mimic the placement of the extra pets you want to display. When you are done with that image, I can take a look at integrating it into your premade.

Link to comment
Share on other sites

Borrowing from Emily's lookup:

#userneopets .contentModuleTable {
	background: url("http://i.imgur.com/LxlC90j.jpg") -20px 0px no-repeat;
	width: 1000px;
	height: 1000px;
	padding: 0px 0px 0px 0px;
}

What it means is that you set up a separate background for your neopets inbox, which is a big image with all your pets.

Link to comment
Share on other sites

I copy/pasted it into my user lookup code and now I kinda understand what it does..

You have to make it an image and put it under:
#userneopets .contentModuleTable {
background: url("img url")

 

right?

 

If so: how do I make it an image? Just copy all my Neopets pictures, put it in Paint and save it?

 

EDIT

I managed to do something with paint (http://imageshack.com/a/img843/8951/lem2.png) and was lucky enough to have a white background. I took the code you gave me Xepha and edited it with my own image and edited the height/width. It's looking pretty good now!

http://www.neopets.com/userlookup.phtml?user=hert123_7_7

Link to comment
Share on other sites

Hi!! I have a question regarding CSS coding... I've seen petpages with different tabs at the top (screenies, wishlist, etc..) that take you to the same petpage (/~sameurl) but it looks like you've changed tabs and you can't see the content on the tab you were before(I don't know if I'm making myself clear...) does anyone know how to put up something like this?

Link to comment
Share on other sites

I think you mean that when you click a link on Neopets, it's still on Neopets, but you see different things? I don't know how to code it, but I think it is a ''main page" (which loads when you first click the page) including several links, which when you click them, load a different text on the main page. At least, that's what I did when making my website with HTML.

Link to comment
Share on other sites

Hi!! I have a question regarding CSS coding... I've seen petpages with different tabs at the top (screenies, wishlist, etc..) that take you to the same petpage (/~sameurl) but it looks like you've changed tabs and you can't see the content on the tab you were before(I don't know if I'm making myself clear...) does anyone know how to put up something like this?

What you're looking for is called page anchors. This is something I've been meaning to play around with but haven't had time.

I use this website for a resource when I'm coding and I find it to be really helpful. http://www.w3schools.com/

You could also try doing a google search.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...