• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

CSS Help & Resources

27,742
Posts
14
Years
Since there's no requests here, where could I request CSS layouts?
You could perhaps ask around our Art & Design section, and look for threads with a [Shop] prefix. If any of those shops offer CSS, you could ask in there.

Yeah, sorry this thread isn't for requesting CSS from scratch ;-; just only getting assistance on already-existing CSS code.

I could also share you this link as well to help get you started on designing CSS: http://www.ppnstudio.com/node/273

You could also read through this entire thread to get ideas, tips, and tricks on CSS. :)
 
656
Posts
10
Years
  • Age 24
  • Seen Jul 22, 2022
How would I create a tab system similar to the Art & Design main page?
 

Oryx

CoquettishCat
13,184
Posts
13
Years
  • Age 31
  • Seen Jan 30, 2015
How would I create a tab system similar to the Art & Design main page?

The splash was not created in pure CSS; it allows for HTML and I believe JavaScript. In just CSS you can make something that looks like it's a tab but you can't have the tab-switching action.
 
656
Posts
10
Years
  • Age 24
  • Seen Jul 22, 2022
I'm not quite sure what I'm doing wrong here...

Code:
[PLAIN][FONT=Tahoma][COLOR=Sienna][SIZE=2][FONT=arial][INDENT][div=" color: black;cursor: normal; font-size: 14px; text-align: center;"][div="padding: 2px 2px 2px 2px; border: #C4BCB6 dashed 1px; font-variant: normal; color: black; background-image: url(" [url]http://www.zingerbug.com/Backgrounds/background_images/green_flame_fractal_background_seamless.jpg[/url] "); overflow: auto; position:relative;"]
[CENTER][div="font: italic 24pt 'Georgia', sans-serif; width: 350px; color: #646262; text-shadow: 1px 1px 2px #9A9A9A; padding: 15px; border: none #000000 0px;"]Sir Pedro's GFX Shop/Gallery[/div][/CENTER]

[COLOR=#fff][LEFT][INDENT][h2][COLOR=#fff][COLOR=#fff][SIZE=4]Introduction[/SIZE][/COLOR][/COLOR][/h2]
[LEFT][/LEFT]

[COLOR=#fff][LEFT][INDENT][h2][COLOR=#fff][COLOR=#fff][SIZE=4]Gallery Area[/SIZE][/COLOR][/COLOR][/h2]
[LEFT][/LEFT]

[h2][COLOR=#fff][COLOR=#fff][SIZE=4]Request Form[/SIZE][/COLOR][/COLOR][/h2]
[LEFT][/LEFT]

[COLOR=#fff][LEFT][INDENT][h2][COLOR=#fff][COLOR=#fff][SIZE=4]Completed Requests[/SIZE][/COLOR][/COLOR][/h2]
[LEFT][/LEFT]

[/INDENT][/LEFT]
[/COLOR][/div][/div][COLOR=#fff]
[/COLOR][/INDENT][/FONT][/SIZE][/COLOR][/FONT][/PLAIN]

Any help, please?
 

Wobbu

bunger bunger bunger bunger
2,794
Posts
12
Years
Spoiler:


Is that what you're trying to accomplish? You had a lot of extra [tags] in your code that never [/closed], so that was one of your issues. I removed those extra tags though. You also had background: ("url") instead of background: ('url'), which is why the background image wasn't showing up.
 
656
Posts
10
Years
  • Age 24
  • Seen Jul 22, 2022
Spoiler:


Is that what you're trying to accomplish? You had a lot of extra [tags] in your code that never [/closed], so that was one of your issues. I removed those extra tags though. You also had background: ("url") instead of background: ('url'), which is why the background image wasn't showing up.

Thanks so much! :) I'm still new to this whole CSS thing. :3c

How would I go about creating a box that automatically sizes itself horizontally, but scrolls vertically, to put my pictures in the proper areas?

Code:
[PLAIN][FONT=Tahoma][COLOR=Sienna][SIZE=2][FONT=arial][div="color: black;cursor: normal; font-size: 14px; text-align: center;"][div="padding: 2px 2px 2px 2px; border: #C4BCB6 dashed 1px; font-variant: normal; color: black; background: url('http://www.zingerbug.com/Backgrounds/background_images/green_flame_fractal_background_seamless.jpg'); overflow: auto;"]
[CENTER][div="font: bold 24pt 'Metrophobic', sans-serif; width: 350px; color: #fff; text-shadow: 1px 1px 2px #9A9A9A; padding: 15px; border: none #000000 0px;"]Sir Pedro's GFX Shop/Gallery[/div][/CENTER]

[LEFT][INDENT][h2][COLOR=#fff][COLOR=#fff][SIZE=4]Introduction[/SIZE][/COLOR][/COLOR][/h2]
[COLOR="white"]Hey everybody, Sir Pedro here, with some GFX! I joined PC awhile back, and everyone was extremely helpful. So, I decided to give back and open a shop. Now, I do GFX, such as Signature banners (personal, for custom games, etc.), boxart, YouTube graphics, avatars, and probably other stuff too.[/COLOR]

[h2][COLOR=#fff][COLOR=#fff][SIZE=4]Gallery Area[/SIZE][/COLOR][/COLOR][/h2]
Here is just my personal work, not requests.

[h2][COLOR=#fff][COLOR=#fff][SIZE=4]Request Form[/SIZE][/COLOR][/COLOR][/h2]

[h2][COLOR=#fff][SIZE=4]Completed Requests[/SIZE][/COLOR][/COLOR][/h2]

[/INDENT][/LEFT]
[/div][/div][/FONT][/SIZE][/FONT][/PLAIN]
 
Last edited by a moderator:
17,600
Posts
19
Years
  • Age 31
  • Seen Apr 21, 2024
How would I go about creating a box that automatically sizes itself horizontally, but scrolls vertically, to put my pictures in the proper areas?

Code:
[PLAIN][FONT=Tahoma][COLOR=Sienna][SIZE=2][FONT=arial][div="color: black;cursor: normal; font-size: 14px; text-align: center;"][div="padding: 2px 2px 2px 2px; border: #C4BCB6 dashed 1px; font-variant: normal; color: black; background: url('http://www.zingerbug.com/Backgrounds/background_images/green_flame_fractal_background_seamless.jpg'); overflow: auto;"]
[CENTER][div="font: bold 24pt 'Metrophobic', sans-serif; width: 350px; color: #fff; text-shadow: 1px 1px 2px #9A9A9A; padding: 15px; border: none #000000 0px;"]Sir Pedro's GFX Shop/Gallery[/div][/CENTER]

[LEFT][INDENT][h2][COLOR=#fff][COLOR=#fff][SIZE=4]Introduction[/SIZE][/COLOR][/COLOR][/h2]
[COLOR="white"]Hey everybody, Sir Pedro here, with some GFX! I joined PC awhile back, and everyone was extremely helpful. So, I decided to give back and open a shop. Now, I do GFX, such as Signature banners (personal, for custom games, etc.), boxart, YouTube graphics, avatars, and probably other stuff too.[/COLOR]

[h2][COLOR=#fff][COLOR=#fff][SIZE=4]Gallery Area[/SIZE][/COLOR][/COLOR][/h2]
Here is just my personal work, not requests.

[h2][COLOR=#fff][COLOR=#fff][SIZE=4]Request Form[/SIZE][/COLOR][/COLOR][/h2]

[h2][COLOR=#fff][SIZE=4]Completed Requests[/SIZE][/COLOR][/COLOR][/h2]

[/INDENT][/LEFT]
[/div][/div][/FONT][/SIZE][/FONT][/PLAIN]


Add an overflow property (overflow: auto) and specify the height in pixels (height: ###px) of the area where you want to scroll. By default, everything is already 100% vertical and 100% horizontal when positioned and placed on a web page. That means 100% of the page will be filled with the content, if your content is enough to fill that page. You can also specify the height in percentage, but for you it'll be easier to understand and implement if you use pixels, since you're still fairly new and you can play around with it to see where it cuts your content off.

Wrap that in a css-div tag that goes around the content you want to place in the scroll box.

So:

[div="overflow: auto; height: 100px;"]content[/div]
 
656
Posts
10
Years
  • Age 24
  • Seen Jul 22, 2022
Thanks for everyone's help! I got my layout complete, and it looks pretty cool. ^^
 

Treecko

the princess without voice
6,316
Posts
12
Years
Indeed, nearly anything's possible when it comes to CSS.



If this is what we're looking for, I've stacked .gif inside your signature in two layers side-by-side; we're free to edit those elements according to our needs. I hope it works for you!

That's a gist of what I was looking for , but with different gifs.

These are the gifs I was gonna use for my first one, placed exactly like this.

Spoiler:

But smaller dimensions than the ones on my current signature. 500x 250 preferably or what fits those two gifs best.And maybe just a bit more spaced out of possible, just like the gitsets on tumblr.

Thanks a lot!!
 

Gigadweeb

[b][i]The Black Swordsman[/i][/b]
319
Posts
9
Years
Just a quick question. If I set a signature to a height of, let's say, 150 pixels, and then have an image with a height of 300 pixels, will the image be cut off, or will it go outside of the boundaries of the sig? If it gets cut off, is there a way around it?

Many thanks.
 

Oryx

CoquettishCat
13,184
Posts
13
Years
  • Age 31
  • Seen Jan 30, 2015
Just a quick question. If I set a signature to a height of, let's say, 150 pixels, and then have an image with a height of 300 pixels, will the image be cut off, or will it go outside of the boundaries of the sig? If it gets cut off, is there a way around it?

Many thanks.

It depends on how you set your overflow tag. By default it's visible, which means it'll go out farther than the box. You can also set it to overflow:hidden, where it's cut off, and overflow:auto, where there's a scroll bar.

Not sure why you'd want to do that, but you can.
 

Zeffy

g'day
6,402
Posts
15
Years
  • Age 27
  • Seen Feb 7, 2024
Does anyone know how to round the corners on the signature?

There's a couple of ways to do it. However, if you just want to round all of the corners of a certain div, then you should just use the following code:
Code:
border-radius: <radius>
-moz-border-radius: <radius>
-webkit-border-radius: <radius>
Radius is a numerical value which can be specified by pixels. The ones with the -moz and -webkit prefixes are generally for older browsers; it's generally a good practice to include them.
 
2,733
Posts
15
Years
How would I get this to look right? I want it exactly how it looks here, but centered. Everything I try either positions them awkwardly or doesn't work.

Spoiler:


Sorry if this is awful, I'm really bad at this and I did it at 2 in the morning.
 

Wobbu

bunger bunger bunger bunger
2,794
Posts
12
Years
Get rid of the float: left in the first div and get rid of the float: right in the image. Then add a display: inline-block in the first div. Also get rid of the blank lines between the black div and the large image. Then put everything inside a center tag. Should look right.

Spoiler:
 

Joexv

ManMadeOfGouda joexv.github.io
1,037
Posts
11
Years
Ok so Im tryin to create a progress bar in one of my threads and cant seem to get it to work.
Heres my css(please note that this is being sampled from a public source. I didnt make it:P)
Spoiler:
 
12,284
Posts
11
Years
  • Seen Oct 22, 2023
Unfortunately, the forums don't seem to support sheet-elements at the moment (like the one you've submitted), so whenever working with CSS here, we would have to define everything in the post itself. If we'd like to display progress-bar, here's a quick set of codes I've whipped up:

Spoiler:


We are free to edit background-color and width (or anything else) according to our needs. When all things are done, our result should look something like this:

80%
 
Back
Top