Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
CSS Style Question |
Page: 1 | Reply |
Jan 5th 2002 | #26007 Report |
Member since: Jul 31st 2001 Posts: 34 |
Hello... Attempting to understand this. I have the following code in the head of my page. The color set to 666666. My question is: With the color set to #666666, shouldn't any text which I place in my html document show up with with the color 666666? Right now. It just shows black. { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-style: normal; line-height: normal; color: #00FFFF; text-decoration: none} Thanks for any help given. -Blurrred- |
Reply with Quote Reply |
Jan 5th 2002 | #26008 Report |
Member since: Mar 18th 2001 Posts: 1690 |
1- CSS is hiearchical. meaning that if you define the properties for a tag such as BODY and expect to have those same settings work for the TD or P tag, it won't necessarily happen. 2- if that is the exact code that you have on the page, you might consider reading a css howto. You have the properties defined correctly, but you are missing the tag they are supposed to be defining. |
Reply with Quote Reply |
Jan 5th 2002 | #26010 Report |
Member since: Jul 31st 2001 Posts: 34 |
Ah... Thanks for the reply.. I understand... I'm off to webmonkey to read up.. Thanks for the help... |
Reply with Quote Reply |
Jan 5th 2002 | #26016 Report |
Member since: Jan 3rd 2002 Posts: 2 |
to set common characteristics for all like html tags you can do this to make all body tags carry the following attributes. Or you can replace body with any other html tag like 'p' for example if you want all paragraphs formatted the same: body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-style: normal; line-height: normal; color: #00FFFF; text-decoration: none} or if this is for a specific tag and used sparingly try the following. it is called in your HTML as so : <div class=mystyle> or maybe <td class=mystyle> .mystyle { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-style: normal; line-height: normal; color: #00FFFF; text-decoration: none} or div.mystyle { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; font-style: normal; line-height: normal; color: #00FFFF; text-decoration: none} |
Reply with Quote Reply |
Jan 5th 2002 | #26022 Report |
Member since: Jul 31st 2001 Posts: 34 |
Thanks for the help the 'body' is what I needed.. Works great!
|
Reply with Quote Reply |
Page: 1 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |