Author Topic: N00b-y CSS question.  (Read 680 times)

0 Members and 1 Guest are viewing this topic.

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
N00b-y CSS question.
« on: September 08, 2008, 10:01:43 AM »
Let's say I have two style sheets- a.css and b.css. If a.css says

Code: [Select]
p .headline {
font-size:x-small;}

and b.css says

Code: [Select]
p .headline{
font-family: helevtica;}

Does headline become an EXTRA SMALL HELVETICA style or just HELVETCIA.

My question is, if the styles don't contradict (i.e., setting size to x-small in A and x-large in B), do they just "add up"?

I ask because I have some tightly styled text for our website, but now I need to add a CMS wrapper to a lot of those paragraphs. I suppose I could just tuck them into a <span>, but I'd like to reduce waste by just defining certain attributes for that CMS class.


wha

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: N00b-y CSS question.
« Reply #1 on: September 08, 2008, 10:02:44 AM »
I'm so stupid. I can just call two classes, apparently. IE
Code: [Select]
<div id="regclass cmsclass">
wha

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: N00b-y CSS question.
« Reply #2 on: September 08, 2008, 10:47:08 AM »
You can do that, but also make sure you spell helvetica correctly ;)

SEMANTIC WEB MY ASS. No ones gonna hold me down.

Thanks :)
wha

Joe Molotov

  • I'm much more humble than you would understand.
  • Administrator
Re: N00b-y CSS question.
« Reply #3 on: September 08, 2008, 12:58:26 PM »
Use the AWP.
©@©™

Vizzys

  • green hair connoisseur
  • Senior Member
Re: N00b-y CSS question.
« Reply #4 on: September 08, 2008, 01:25:03 PM »
might want to add "arial" or "san-serif" in addition, because the exact font helvetica isnt on all computers
萌え~

Tauntaun

  • I'm cute, you should be too.
  • Senior Member
Re: N00b-y CSS question.
« Reply #5 on: September 08, 2008, 01:33:07 PM »
Am I the only one who thought this was about Counter Strike Source?  :maf
:)

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: N00b-y CSS question.
« Reply #6 on: September 08, 2008, 01:36:18 PM »
I did for a second, tauntaun, and I thought the question was gonna be how do I turn into an Asian or some shit.
UK

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: N00b-y CSS question.
« Reply #7 on: September 08, 2008, 01:36:27 PM »
might want to add "arial" or "san-serif" in addition, because the exact font helvetica isnt on all computers

It'll be in Japanese, so it doesn't matter. I was just being generic.
wha

Vizzys

  • green hair connoisseur
  • Senior Member
Re: N00b-y CSS question.
« Reply #8 on: September 08, 2008, 01:37:19 PM »
lol ok
萌え~

Powerslave

  • Senior Member
Re: N00b-y CSS question.
« Reply #9 on: September 08, 2008, 01:45:17 PM »
lol what a css noob

Tauntaun

  • I'm cute, you should be too.
  • Senior Member
Re: N00b-y CSS question.
« Reply #10 on: September 08, 2008, 02:06:32 PM »
I did for a second, tauntaun, and I thought the question was gonna be how do I turn into an Asian or some shit.

werd and not just any asian, you gotta be korean or like...canadian:

:)