CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 9th, 2002, 07:39 AM
coredumped coredumped is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 149 coredumped User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 47 sec
Reputation Power: 7
Custom CSS tag problems

I'm trying to add a custom style to my style sheet file, but am encountering a strange error.

My style sheet is posted below:

Code:
div.content
{
  overflow: auto;
  cursor: default;
  font-family: "Century Gothic", Arial, Helvetica;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-size: 16px;
  padding-right: 5px;
}

div.title
{
  text-align: right;
  cursor: default;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-size: 30px;
  font-family: "Century Gothic", Arial, Helvetica;
}


div.siteTitle
{
  text-align: left;
  cursor: pointer;
  cursor: hand;
  font-style: italic;
  font-variant: normal;
  font-weight: bold;
  font-size: 32px;
  font-family: "Century Gothic", Arial, Helvetica;
}

div.mainMenu
{
  text-align: right;
  cursor: pointer;
  cursor: hand;
  border: #FFFFFF;
  border-style: solid;
  border-top-width: 1px;
  border-right-width: 0px;
  border-bottom-width: 0px;
  border-left-width: 0px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-size: 24px;
  font-family: "Century Gothic", Arial, Helvetica;
}

div.mainMenuLast
{
  text-align: right;
  cursor: pointer;
  cursor: hand;
  border: #FFFFFF;
  border-style: solid;
  border-top-width: 1px;
  border-right-width: 0px;
  border-bottom-width: 1px;
  border-left-width: 0px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-size: 24px;
  font-family: "Century Gothic", Arial, Helvetica;
}

div.subMenu
{
  text-align: left;
  cursor: pointer;
  cursor: hand;
  border: #FFFFFF;
  border-style: solid;
  border-top-width: 1px;
  border-right-width: 0px;
  border-bottom-width: 0px;
  border-left-width: 0px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-size: 24px;
  font-family: "Century Gothic", Arial, Helvetica;
}

div.subMenuLast
{
  text-align: left;
  cursor: pointer;
  cursor: hand;
  border: #FFFFFF;
  border-style: solid;
  border-top-width: 1px;
  border-right-width: 0px;
  border-bottom-width: 1px;
  border-left-width: 0px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-size: 24px;
  font-family: "Century Gothic", Arial, Helvetica;
}

div.loading
{
  text-align: center;
  cursor: default;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-size: 18px;
  font-family: "Century Gothic", Arial, Helvetica;
}

div.link
{
  cursor: pointer;
  cursor: hand;
}

div.copyright
{
  text-align: left;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-size: 8px;
  font-family: "Century Gothic",Arial,Helvetica;
}


Seems pretty obvious that I'm applying these styles to <div> layer tags. Now, everything works fine, until I get to the last one. The 'copyright' style. It just won't accept it. I've tried renaming it to other things (thinking that 'copyright' might be a keyword or something), and it still doesn't work. But if I set the class of my <div> tag to any other style defined (such as 'content', for example), it displays it just fine. When I set it as 'copyright', it displays the default font, default size, etc.

Any ideas why this won't work? Is there a limit to how many styles you can create for a given tag?

Thanks,

- coredumped.

Reply With Quote
  #2  
Old December 9th, 2002, 07:51 AM
karinne's Avatar
karinne karinne is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Location: here... there... mostly here
Posts: 1 karinne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to karinne
Can we have a look at the page? HTML source code?

I think it work for me but...

Reply With Quote
  #3  
Old December 9th, 2002, 02:46 PM
MetalBlend MetalBlend is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: san diego, ca
Posts: 33 MetalBlend User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to MetalBlend
No, there is no limit to how many different styles you can use on a type of element, and your CSS has no errors. Have you tried this:

Code:
...

#copyright
{
  text-align: left;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  font-size: 8px;
  font-family: "Century Gothic", Arial, Helvetica;
}

...

// In the body of the HTML

<div id="copyright">
  Copyright © 2002 coredumped
</div>


If it works there's something wrong with your HTML, otherwise something (that I haven't noticed) is wrong with your CSS. Process of elimination.. let us know what happens.

Hope that helps.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Custom CSS tag problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway