CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 March 18th, 2002, 03:29 PM
groovix groovix is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 4 groovix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
css frustration

hey-

I'm trying to use style sheets on a promotional page of my band's website. I've been using stylesheets forever, so it's not that I'm unfamiliar, just thought i'm running into two problems. One is text sizing. I used the 'font-style:10pt' command to get my text formatted to that particular size, however it won't work. Here's the actual style sheet:


body {background-color:#000000; color:#ffffff; font-family:Verdana,arial; font-size:5pt;}

a:link {color:Blue; text-decoration:none;}

a.hov1:hover {color:#ff6600; text-decoration:none;}

a:visited {color:Maroon; text-decoration:none;}

everything else except for the font-size command is working. am i doing something wrong?

the other problem i was having is with external linking. i just couldn't get it to work at all. I tried using relative and remote paths, changing the location of the .css file, nothing was working. I was using: [link rel="stylesheet" href="http://www.fplg.net/lib/page_temp.css" type="text/css"] ..is that wrong? the external one also contains the same style info as the one posted above.

the link to the page: URL

Reply With Quote
  #2  
Old March 18th, 2002, 04:25 PM
mrrichardfeder mrrichardfeder is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2001
Posts: 765 mrrichardfeder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 45 sec
Reputation Power: 12
Keep this in mind: <font> tags are inline style (in your HTML) so they have a very high specificity - which is a fancy way of saying they win out over stylesheet CSS every time. You can assign CSS using font as a selector:

font {color:#ffffff; font-family:Verdana,arial; font-size:5pt;}

You can add classes to apply style differently to <font>s:

font.red {color:red;}
font.blue {color:blue;}

<font class="red" color="red">

These will overrule anything assigned in the <font> tag itself, while non-CSS users will get the inline style. Or you could just dump the inline stuff altogether and separate content & style completely.

The 'link' looks OK - hard to judge w/o knowing the file path. No HTML in CSS files, btw.

Reply With Quote
  #3  
Old March 18th, 2002, 07:15 PM
groovix groovix is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 4 groovix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm familiar with the fact that anything in the <font> tags will overide a style sheet, but why is it that the text size is displayed incorrectly when i clearly have a font-size command in the body section of the style sheet?

Reply With Quote
  #4  
Old March 18th, 2002, 07:23 PM
mrrichardfeder mrrichardfeder is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2001
Posts: 765 mrrichardfeder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 45 sec
Reputation Power: 12
Try losing the hash.

Reply With Quote
  #5  
Old March 18th, 2002, 08:43 PM
groovix groovix is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 4 groovix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
the hash? what in the hell is that?

Reply With Quote
  #6  
Old March 18th, 2002, 08:58 PM
mrrichardfeder mrrichardfeder is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2001
Posts: 765 mrrichardfeder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 45 sec
Reputation Power: 12
font {font-size:[size=huge]#[/size]10 pt;}

Reply With Quote
  #7  
Old March 18th, 2002, 10:53 PM
groovix groovix is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 4 groovix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
maybe I'm on crack, but i didn't see any hashes in the style sheet next the font commands/tags?

are you saying take ALL hashes out? ...i'm pretty sure that those are needed when using the RGB color codes?

Reply With Quote
  #8  
Old March 18th, 2002, 11:38 PM
mrrichardfeder mrrichardfeder is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2001
Posts: 765 mrrichardfeder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 45 sec
Reputation Power: 12
Hey -

I cut & pasted the above rule directly out of the linked page from your original post - which I went back and checked and, it's still there. There's also a space in it - not allowed.

Guess you're on crack.

Let me know if you want to discuss this in a civil manner. We don't get paid all that well for hanging around here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css frustration

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap