Home Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
April 30, 2024 - @350.38 (what is this?)
Forum activity rating: Three Star Posts: 45/1k.beats Unread Topics | Unread Replies | Own Posts | Own Topics | Random Topic | Recent Posts
News: :transport: :transport: More is More :transport: :transport:

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  share fun codes you think that everyone should have/use


« previous next »
Pages: [1] Print
Author Topic: share fun codes you think that everyone should have/use  (Read 599 times)
LIA
Full Member
***


closing time

StatusCafe: six
iMood: sintax

View Profile

First 1000 Members!Joined 2023!
« on: April 29, 2023 @159.70 »

as someone who always looks for ways to improve my site, I frequent w3schools looking for fun ways to spice up my site.
If you have fun or cool codes that is your go-to when designing, drop them below! I'll go first. This is a cool appearing image when you click on the button!

HTML

Code
<div class="container">
<a href="#" class="button">
  click for an image
</a>

<img class="content" src="URL" />
</div>

CSS

Code
body {
  background: url(https://iili.io/HkwFAx9.jpg)
}

/* This part makes the click effect work */

/*This changes the part you click on*/
.button:focus {
  box-shadow: 0px 2px #FFFFFF;
  background-color: #006400;
  font-weight: bold;
}

/*This allows you to change the content when you click on the button*/
.button:focus ~ .content {
  opacity: 1;
}

/*Just some styling to make the look pretty :D*/

.container {
  width: 500px;
}

.button {
  font-family: font;
  color: #HEX;
  background: #;
  border-radius: px;
  padding: -px -px;
  font-size: -px;
}

.content {
  opacity: -;
  margin-top: -px;
  transition: -s;
  width: -px;
  border: -px solid white;
}

*{cursor: default}

.button:hover {
  cursor: pointer;
}


no this is not a way for me to grab some cool codes what...


* ezgif-1-2a4af281e0.gif (526.33 kB, 600x305 - viewed 54 times.)
Logged
shevek
Sr. Member ⚓︎
****


˚₊⁀꒷₊˚︰₊︶꒦꒷₊⊹︰꒷

iMood: daintyeco

View Profile WWW

First 1000 Members!Joined 2023!
« Reply #1 on: April 29, 2023 @416.85 »

Related thread for just CSS snippets: https://forum.melonland.net/index.php?topic=1007.0  :smile:
Logged

Odo was just an idea. Shevek is the proof.
Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

Oo Animal Crossing Towns oO - Share your town!

Started by MelooonBoard ♖ ∙ Video Games

Replies: 8
Views: 2043
Last post November 07, 2023 @41.97
by soapfriendo
I'm thinking of making a blog

Started by MrsMoeBoard ✑ ∙ Writers Corner

Replies: 3
Views: 1244
Last post July 16, 2023 @208.53
by starbreaker
Funny dream

Started by PepyogurtBoard ☕︎ ∙ Fun & Forum Games

Replies: 1
Views: 805
Last post December 22, 2022 @502.28
by Lost_cat

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP2


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