Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
a Summer night - @198.37 (what is this?)
Activity rating: Four Stars Posts & Arts: 68/1k.beats Random | Recent Posts | Guild Recents
News: :ha: :pc: Hello Melonland! :pc: :happy: Guild Events: HOMESTUCK ART-APALOOZA

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  How do I make a cool custom button


« previous next »
Pages: [1] Print Embed
Author Topic: How do I make a cool custom button  (Read 78 times)
Rubbereon
Full Member ⚓︎
***
View Profile WWWArt


⛺︎ My Room
SpaceHey: Friend Me!
Matrix: Chat!
XMPP: Chat!

Guild Memberships:
Artifacts:
Joined 2025!
« on: a Summer night » Embed

I wanted to redesign my site, but give it more of my spice, make it better reflect my personality as an oddball cartoon fanatic furry, so I wanted my links to be buttons and the buttons to be bubbles. I found a helpful tutorial using the border property to make a good-looking outer layer, but now I want a glossy effect inside the buttons too.

This website is kind of what I'm trying to reproduce, well at least the buttons, but Kiophen uses png files for the buttons, I also considered maybe using svg which's what inkscape on linux for, so it's not like I'm out of options, but I'm not exactly familiar with svg it's just too different from bitmap formats.

Logged

https://bettysgraphics.neocities.org/images/animals/cat%20695.gifFuzzy fwiendhttps://bettysgraphics.neocities.org/images/animals/cat%20696.gifhttps://bettysgraphics.neocities.org/images/animals/cat%20697.gif
https://rubbereon.nekoweb.org/img/penguin.gifLinux userhttps://rubbereon.nekoweb.org/img/penguin.gif
You can also find me on Comfybox.
GideonWilhelm
Jr. Member ⚓︎
**
View Profile WWW

⛺︎ My Room

Artifacts:
Joined 2025!
« Reply #1 on: a Summer night » Embed

If I recall, it's easy to just export an SVG as a PNG or other bitmap format.  This might be something I fiddle with on the weekend, but I digress.  My first instinct is to open the inspector, and I find in the style editor (at least that's what firefox calls it, just the CSS) it looks like inline style sheet #2 has the jiggle animation when opening the navlinks, as well as some of the info about the navlinks class.  My go-to would be to copy some of those entries and play with them, see how close I can get to the reference.  It's how I rebuilt my page, I used vertpush as a reference to get the basics down

Logged
Rubbereon
Full Member ⚓︎
***
View Profile WWWArt


⛺︎ My Room
SpaceHey: Friend Me!
Matrix: Chat!
XMPP: Chat!

Guild Memberships:
Artifacts:
Joined 2025!
« Reply #2 on: a Summer night » Embed

If I recall, it's easy to just export an SVG as a PNG or other bitmap format.  My first instinct is to open the inspector, and I find in the style editor...  My go-to would be to copy some of those entries and play with them, see how close I can get to the reference.  It's how I rebuilt my page, I used vertpush as a reference to get the basics down

I tried to do what you suggested, but I couldn't find any css reference for my use case.


I'm gonna add this too because there's a small chance that I miscommunicated what I meant with "using svg" and why I said "but png...".

1. I have to bake the text directly into the png. maybe there is a hacky way to center the text inside a png, but I'm not a super big fan of that. I already had to do something weird like that for the index page to crop a jpeg and I saw someone else have a problem with displaying a scroll correctly using css on their site because 9 patch just wouldn't work right for them. they eventually figured it out, but it ended up being very hacky, like they had to set the width to 0 to get it working.
2. Svg can be embedded directly into the html code via the <svg> tag. This is why I'm considering it as an option because it is more versatile. Heck if needed, I can probasbly split the svg into multiple pieces to enclose the text in it or use the dedicated svg text element to ditrectly puit any text into the bubble.

Here's the doodle I'm using as a reference and to show what I'm trying to do with the button.


Everything else looks neat, it's the circle shine on the top left that I'm having trouble figuring out how to make.

Here's the code (in css):

Code
.bubblebox {
	border: 1rem solid black; 
	border-radius: 50% 50% 50% 50% / 66% 66% 33% 33%; 
	border-right-width: 0; 
	border-left-width: 0;
	background-color: white;
	box-shadow: 0 0 5px gray inset;
	display: table;
	padding: 20px;
}

Logged

https://bettysgraphics.neocities.org/images/animals/cat%20695.gifFuzzy fwiendhttps://bettysgraphics.neocities.org/images/animals/cat%20696.gifhttps://bettysgraphics.neocities.org/images/animals/cat%20697.gif
https://rubbereon.nekoweb.org/img/penguin.gifLinux userhttps://rubbereon.nekoweb.org/img/penguin.gif
You can also find me on Comfybox.
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
MelonLand @000

Minecraft: Online
Join: craft.melonking.net