This is a discussion on "Text shadow?" within the Web Page Design section. This forum, and the thread "Text shadow? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Text shadow?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Text shadow?
I've seen this code on a style sheet:
.item-title { font-size: 20px; font-family: Arial Narrow, Arial, Helvetica, sans-serif; text-shadow: #999999 0px 2px 4px; font-weight: bold } Now, presumably this what gives the text a shadow effect. But what's the difference between stuff that you put a '.' before it and stuff with '#' before it? How do you label your titles in this manner? Thanks. |
|
|
|
#2
|
||||
|
||||
|
Re: Text shadow?
As far as I know, that text-shadow only works in Safari, but I could be wrong, Firefox too maybe, but definitely not Satan's browser (IE)
anything with a # in front of it, and outside the curly brackets signifies a CSS ID. Inside the curley brackets signifies, usually, a hex color code. . refers to a CSS CLASS, and is used instead of an ID when the item appears more than once on the same page. I'm sure the above is confusing, but some things cannot be taught in 3 paragraphs... |
|
#3
|
|||
|
|||
|
Re: Text shadow?
Thanks.
What I'm wondering though is how you actual label the title. The only way I can see you label stuff is by making it a table. I can't make every title in a separate table. Well i can, but is that how it's done? By the way i like your personal site and i was intrigued by the xhtml validation link at bottom. I noticed, however, that every big name site i entered, including yours, fails validation. Last edited by timmytots; Nov 17th, 2005 at 23:28. |
|
#4
|
||||
|
||||
|
Re: Text shadow?
When you use a CLASS (.), you can give an element those properties by including 'class="blah"' inside it's opening tag. more than one element can have the same class.
When you use an ID (#), you can give an element those properties by including 'id="blah"' inside it's opening tag. however, only ONE element per page can have that particular ID... for example:
|
|
#5
|
|||
|
|||
|
Re: Text shadow?
Thanks Ben, very well described.
Can you set the width of the tables? By the way, thanks for interest in my projects but I'm starting to realise how much I can do now with PHP etc and how much is done for me already. I am still looking for a 3D animator though. Last edited by timmytots; Nov 21st, 2005 at 00:28. |
|
#6
|
||||
|
||||
|
Re: Text shadow?
the width of any element can be easily set by:
width:100%; or width:100px; etc... |
|
#7
|
||||
|
||||
|
Re: Text shadow?
Quote:
|
|
#8
|
|||
|
|||
|
Re: Text shadow?
Quote:
Well when I got to the validation site I'd thought I'd see if the 'Big Boys' had no errors. So I checked out the likes of Apple and Konfabulator etc. Alarmingly, I thought, none of them passed. But I assume that if you get even one error then you've failed. And the test is ridiculously strict. I assume. Plus, there seems to be a lot of different opinions out there rather than hard rules one should abide by. Or maybe you guys' holding onto your own beliefs has got me confused. I like that you've got this validation thing at bottom. I've noticed it on various sites. "Look at me, I've done it the best way!". I shall implement it when I've got to this standard, which might not be too long. Thanks to you guys positive 'behind-the-scenes' change is spreading through my site like a virus - a good virus. I've now bunged a lot more into my style sheet (text aligns and table width etc). But here's my latest hurdle: www.crewsfx.com/gallery.html Any thoughts on why the 1st paragraph is shunted over to the left. Cheers. And thanks Benbramz for the kind description of my site on the November contest, which I should win by the way cos it was my birthday on Saturday. I make web design look easy. Yeah, I'm quite happy with that. And flawless - well, what can I say? |
|
#9
|
||||
|
||||
|
Re: Text shadow?
Quote:
|
![]() |
| Tags |
| text, shadow |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .PNG Shadow on Sides | Aerdan | Web Page Design | 0 | Mar 25th, 2008 13:53 |
| shadow around a whole site | lister110 | Web Page Design | 5 | Nov 13th, 2007 01:03 |
| Trying a drop shadow design, IE won't let me. | Henrik Hansen | Web Page Design | 7 | Sep 26th, 2007 18:29 |
| fixed background with shadow | aaronh | Graphics and 3D | 12 | Mar 5th, 2007 21:35 |
| drop shadow?? | karloff | Graphics and 3D | 7 | Aug 4th, 2006 14:08 |