View Full Version : Drop shadow for username
troykp
02-23-2011, 09:01 PM
Hi,
I'm looking to add a drop shadow to usernames, as shown here:
https://vborg.vbsupport.ru/external/2011/02/10.png
I'm guessing it's something I need to include in my additional CSS template (unless it's a stylevar I'm unaware of). Does anybody know what code it is?
Thanks
creppello
02-26-2011, 07:02 PM
Both actually, you need to add to your code, and to your stylesheet.
Add this to the section of css you want the shadow to appear with.....
<div class="shadow">
<div class="content">
<p>This is the div element that will have the shadow on it. You can also shadow images instead of a div with content in it.</p>
</div>
</div>
Then add this to your stylesheet....
.content, .shadow {
position: relative;
bottom: 5px;
right: 5px;
}
.shadow { background-color: #ccc; }
I think that's right. The settings for bottom and right are the number of offset pixels for the shadow.
troykp
02-28-2011, 07:28 AM
Thank you for the response creppello.
I added the first section of code to my postbit legacy, and the second part to my additional.css. I couldn't get it working though.
I also tried adding the first section to my postbit CSS, that didn't work either.
Am I adding it to the right templates?
Lynne
02-28-2011, 02:42 PM
Please post a link to a page where we can see what you tried.
troykp
03-01-2011, 05:55 AM
<a href="http://forums.wrestlingsmarks.com/showthread.php/1711-WrestlingSmarks-February-2011-Award-Winners?p=6478#post6478" target="_blank">Link</a>
I've used white so the forum doesn't look too ugly whilst the incorrect code. As you'll see, I'm definitely doing something wrong.
Lynne
03-01-2011, 04:16 PM
Just now really looking at the CSS posted and I don't see how that would create a shadow effect. Unfortunately, shadowing is not something all browsers can do using the same CSS, so you need to add quite a bit of CSS to get that affect in all browsers. Lots of stuff comes up in google including this that seems pretty complete - http://www.workingwith.me.uk/articles/css/cross-browser-drop-shadows
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.