Updates
Welcome to Charming
Welcome to Charming, the year is now 1895. It’s time to join us and immerse yourself in scandal and drama interlaced with magic both light and dark.

Where will you fall?

Featured Stamp

Add it to your collection...

Did You Know?
Braces, or suspenders, were almost universally worn due to the high cut of men's trousers. Belts did not become common until the 1920s. — MJ
Had it really come to this? Passing Charles Macmillan back and forth like an upright booby prize?
Entry Wounds


Bree's Codes (letters, post templates, etc.)
#4
Have you wanted to make a hover box but have no clue how to do the hover code? I have a pretty blank-slate hover code that you can personalize to your heart's content :P

It can be a circle or a square (or anything you can code??). There are a few things it always needs to work:
  1. The width of the "niceboxy" div needs to be 20px less width and height than the div you put it inside. This is because the padding is 10px, while means it takes 10px on all sides (which equates to 20px height + width) to fit perfectly.
  2. Backgrounds, heights, widths.

Customizable options:
  • border-radius: #px will make the corners rounder.
  • fonts, line-height (which makes more fit inside), basically anything from a normal div
  • margin-left: #px and margin-right: #px can separate the box from text if you're wanting to make it wrap. These would go on the outside div rather than the niceboxy one.
  • float: left or float: right will make it "float" (aka have text wrap around it) on whichever side you choose. This would go on the outside div rather than the niceboxy one.
  • If you want a background image for the outside div, use background-image:url('URLHERE') rather than the example code.



Code:
<link href="https://dl.dropbox.com/s/kk49gw9b5aupdn6/niceboxy.css?dl=0" rel="stylesheet"><div style="width: #px; height: #px; border-radius: #px; background: CAN BE IMAGE OR COLOR;"><div class="niceboxy" style="background: WHITE RECOMMENDED; width: 180px; height: #px; border-radius: #px;"></div></div>

If you see any mistakes/errors, just hmu :P

The following 2 users Like Bella Scrimgeour's post:
   Amelia Evans, Declan Wood


MJ is MAGICAL


Messages In This Thread
Bree's Codes (letters, post templates, etc.) - by Bella Scrimgeour - February 19, 2018 – 5:12 PM
RE: Bree's Miscellaneous Codes - by Bella Scrimgeour - February 19, 2018 – 5:14 PM
RE: Bree's Codes (letters, post templates, etc.) - by Edric Umbridge - April 22, 2018 – 7:54 PM
RE: Bree's Codes (letters, post templates, etc.) - by Bella Scrimgeour - April 25, 2018 – 12:48 AM
RE: Bree's Codes (letters, post templates, etc.) - by Bella Scrimgeour - April 27, 2018 – 4:04 PM
RE: Bree's Codes (letters, post templates, etc.) - by Bella Scrimgeour - May 10, 2018 – 5:31 PM
RE: Bree's Codes (letters, post templates, etc.) - by Bella Scrimgeour - May 11, 2018 – 4:44 AM
RE: Bree's Codes (letters, post templates, etc.) - by Edric Umbridge - June 10, 2018 – 3:56 AM
RE: Bree's Codes (letters, post templates, etc.) - by Edric Umbridge - June 16, 2018 – 5:07 PM
RE: Bree's Codes (letters, post templates, etc.) - by Edric Umbridge - July 9, 2018 – 7:09 AM
RE: Bree's Codes (letters, post templates, etc.) - by Edric Umbridge - August 3, 2018 – 12:13 AM
RE: Bree's Codes (letters, post templates, etc.) - by Edric Umbridge - August 3, 2018 – 12:15 AM
RE: Bree's Codes (letters, post templates, etc.) - by Edric Umbridge - August 23, 2018 – 8:48 PM
RE: Bree's Codes (letters, post templates, etc.) - by Edric Umbridge - September 27, 2018 – 1:05 PM
RE: Bree's Codes (letters, post templates, etc.) - by Edric Umbridge - October 11, 2018 – 1:25 AM
RE: Bree's Codes (letters, post templates, etc.) - by Edric Umbridge - October 21, 2018 – 12:17 AM
RE: Bree's Codes (letters, post templates, etc.) - by Freddie Prewett - July 28, 2020 – 2:00 PM
RE: Bree's Codes (letters, post templates, etc.) - by Julian Fisk - February 24, 2021 – 3:30 AM
RE: Bree's Codes (letters, post templates, etc.) - by Julian Fisk - February 24, 2021 – 3:33 AM
View a Printable Version


Users browsing this thread: 1 Guest(s)
Forum Jump:
·