Text shadow?

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 17th, 2005, 19:04
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Nov 17th, 2005, 20:58
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Reply With Quote
  #3 (permalink)  
Old Nov 17th, 2005, 23:25
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4 (permalink)  
Old Nov 20th, 2005, 14:33
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
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:

Code: Select all
// CSS CODE //
. red {
color:#ff0000;
}

#green {
color:#00ff00;
}

// HTML CODE //

<h1 class="red">Hello</h1>
<h1 class="red">These are BOTH red</h1>

<h1 id="green">Hello</h1>
<h1 id="green">Only the ONE ABOVE is green</h1>
Reply With Quote
  #5 (permalink)  
Old Nov 20th, 2005, 21:35
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #6 (permalink)  
Old Nov 21st, 2005, 20:41
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text shadow?

the width of any element can be easily set by:

width:100%;

or

width:100px;

etc...
Reply With Quote
  #7 (permalink)  
Old Nov 21st, 2005, 21:27
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text shadow?

Quote:
Originally Posted by timmytots
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.
Yeah, I don't have full control over the xhtml that WordPress writes... I think it's a bit funny it says valid xhtml down there... I'll look into it more. thanks for bringing it to my attention. And what do you mean by "big name site"?
Reply With Quote
  #8 (permalink)  
Old Nov 21st, 2005, 22:16
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Text shadow?

Quote:
Originally Posted by herkalees
And what do you mean by "big name site"?

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?
Reply With Quote
  #9 (permalink)  
Old Nov 22nd, 2005, 18:51
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Text shadow?

Quote:
Originally Posted by timmytots
But here's my latest hurdle:
www.crewsfx.com/gallery.html
Any thoughts on why the 1st paragraph is shunted over to the left.
Looks fine in IE, Opera, and Firefox. Am I missing the mistake you noticed?
Reply With Quote
Reply

Tags
text, shadow

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 20:48.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43