Current status of the Ning Platform is always available on the Ning Status Blog.

NC for Hire

TIP: Getting to Know Box Shadow CSS

Over the past couple of weeks, I've had several other NCs ask me about CSS3 Box shadows, so i figured I'd give you all a few pointers I've learned over the past couple of years.

Understanding Values

Take a look at this example:

box-shadow: 3px 3px 10px 5px #000;

 

  • A positive value for the horizontal offset draws a shadow that is offset to the right of the box, a negative length to the left.
  • The second length is the vertical offset. A positive value for the vertical offset basically offsets the shadow down, a negative one up.
  • You’re not allowed to use negative values for blur radius. The larger
    the value, the more the shadow’s edge is blurred, as it can be seen above.
  • Spread distance positive values cause the shadow shape to expand in all directions by the specified radius.
  • Negative ones cause the shadow shape to contract.
  • The color is the color of the shadow.
  • The inset keyword (missing above), if present,changes the drop shadow from an outer shadow to an inner shadow

There are tons of Box Shadow Generators out there to help you with getting your box shadow just right, but i thought it might be helpful to understand the values being used.

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Email me when people reply –

Replies

  • Thanks for this tip. My head doesn't hurt anymore trying to figure this out. lol.

    • NC for Hire

      terrific!  this was the goal...glad you're getting some use of this tip!

  • You made this so simple! Thanks!

  • this should work with 3.0 

  • How would I put that in my NING 3.0 what would be the code?  I am using rounded corners

  • So far it will only  let me do it to buttons

This reply was deleted.
 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

Fabricio Giugni replied to Fabricio Giugni's discussion
Blog help needed.
"Hi JFarrow,
Thanks for helping. I don't know much about codes. How to add class="align-left" to the…"
1 hour ago
Fabricio Giugni replied to Fabricio Giugni's discussion
Blog help needed.
"Hi Bizz, 
Thanks for helping. It happen with Image as well. Here is the linkhttps://gplay.com.br/bl…"
1 hour ago
Fabricio Giugni replied to Fabricio Giugni's discussion
Website is too slow. How can I fix it?
"Hi JFarrow,Is there any way to compress and reupload my member's content? All Those Photos are from…"
1 hour ago
⚡JFarrow⌁ commented on Ana Massien's blog post FREE SSL Certificates
"agreed"
17 hours ago
⚡JFarrow⌁ replied to Fabricio Giugni's discussion
Website is too slow. How can I fix it?
"My 2 cents...
Try to minimize the amount of images loading on the home page...
You dont seem to hav…"
17 hours ago
⚡JFarrow⌁ posted a discussion
I've been creating topics pages inside my community and if you are doing something similar, having…
17 hours ago
Fabricio Giugni posted a discussion
Hi there,``My networks are not doing well. How can I fix it? Basically there is just what Ning prov…
yesterday
⚡JFarrow⌁ replied to Unpwn Producer's discussion
I need to secure my site
"Here are the simple steps but you may want to get someone to help you.
Go to cloudflare.com and sig…"
yesterday
Unpwn Producer replied to Unpwn Producer's discussion
I need to secure my site
"Whatever makes my site not show "not secure" on the browser. Sorry, I'm not familiar with web stuff…"
yesterday
Trị Sẹo Lồi liked Fabricio Giugni's profile
Wednesday
Trị Sẹo Lồi updated their profile
Wednesday
Nneka Joseph and ⚡JFarrow⌁ are now friends
NC for Hire
Tuesday
More…

Meanwhile, you can check our social media channels