• We've upgraded our forums. Please post any issues/requests in this thread.

CSS basic font commands ... help?

Joined
Jan 27, 2010
Messages
4,034 (1.40/day)
Likes
1,258
Location
USA
Processor I7 920 @ 4.1
Motherboard ASUS Rampage III Extreme
Cooling Custom water cooling
Memory 3x2GB Mushkin
Video Card(s) 580
Storage 320GB
Display(s) BenQ V2400W
Case Custom
Audio Device(s) on board
Power Supply Antec TPQ 1200w
#1
Code:
<div class="titles">
  <div style="font-size:120px"; "font-weight:900" ;>Boheme Bourgeois</div>
  
</div>
I cant get it to bold my font ... what am I missing? I am pretty sure I entered it in wrong, but where?
 

Kreij

Senior Monkey Moderator
Staff member
Joined
Feb 6, 2007
Messages
13,817 (3.48/day)
Likes
5,524
Location
Cheeseland (Wisconsin, USA)
Processor Intel Core 2 Quad QX9650 Extreme @ 3.0 GHz
Motherboard Asus Rampage Formula
Cooling ZeroTherm Nirvana NV120 Premium
Memory 8GB (4 x 2GB) Corsair Dominator PC2-8500
Video Card(s) 2 x Sapphire Radeon HD6970
Storage 2 x Seagate Barracuda 320GB in RAID 0
Display(s) Dell 3007WFP 30" LCD (2560 x 1600)
Case Thermaltake Armor w/ 250mm Side Fan
Audio Device(s) SupremeFX 8ch Audio
Power Supply Thermaltake Toughpower 750W Modular
Software Win8 Pro x64 / Cat 12.10
#2
Your inline style properties should be inside a single pair of quotes, I think (been awhile since I did any html/css).

Code:
<div style="font-size: 120 px; font-weight: 900">Whatever</div>
 
Joined
Jan 27, 2010
Messages
4,034 (1.40/day)
Likes
1,258
Location
USA
Processor I7 920 @ 4.1
Motherboard ASUS Rampage III Extreme
Cooling Custom water cooling
Memory 3x2GB Mushkin
Video Card(s) 580
Storage 320GB
Display(s) BenQ V2400W
Case Custom
Audio Device(s) on board
Power Supply Antec TPQ 1200w
#3
Ah, ok I will try that out ... thanks!
 
Joined
May 27, 2012
Messages
313 (0.15/day)
Likes
40
Location
Malaysia
System Name Elmo
Processor i7 3930k
Motherboard Asus P9 X79 Pro
Cooling Noctua NH D-14
Memory 16 GB DDr3 1600mhz
Video Card(s) 4GB GTX 770 Windforce X3
Storage 60gbforce3,120gbchronos,120gb force GS,120GB Kingston Hyperx 3k,750gb hitachi, 500gb wd green
Display(s) Samsung 23" led 1080p X 2
Case Nzxt Switch 810
Power Supply Corsair HX 750W
Software win7 ultimate 64 bit
#4
why not use an external css? example .class {font-size: 120 px; font-weight: 900}
 
Joined
Nov 2, 2010
Messages
166 (0.06/day)
Likes
21
Location
Philippines! :D
System Name Noobie XTXx || Portalet Crap Machine
Processor i5 2500K @ 4.5, 1.345V || i7 2640QM
Motherboard ASUS P8P67 PRO || Dell
Cooling CM Hyper 212+ || Stock
Memory 2 x 2gb GSkill DDR3 9-9-9-24 || 8GB DDR3
Video Card(s) PowerColor 6970PCS @stock || Optimus (525m)
Storage WD Caviar Blue 500 + 320 Hitachi || 500GB
Display(s) LG W2253TQ || Crappy 1366*768 15"
Case CM 690 PURE Black
Audio Device(s) On Board
Power Supply ThermalTake Toughpower XT 775w
Software Win 7 64bit
#5
Your inline style properties should be inside a single pair of quotes, I think (been awhile since I did any html/css).

Code:
<div style="font-size: 120 px; font-weight: 900">Whatever</div>

^^ That is pretty much it.

A piece of advice though, it is often better to have css definitions (either in the head or an external css) rather than inline ones as it makes it easier to change things around when necessary (and it also 'separates data from formatting')

Best of luck!
 

Kreij

Senior Monkey Moderator
Staff member
Joined
Feb 6, 2007
Messages
13,817 (3.48/day)
Likes
5,524
Location
Cheeseland (Wisconsin, USA)
Processor Intel Core 2 Quad QX9650 Extreme @ 3.0 GHz
Motherboard Asus Rampage Formula
Cooling ZeroTherm Nirvana NV120 Premium
Memory 8GB (4 x 2GB) Corsair Dominator PC2-8500
Video Card(s) 2 x Sapphire Radeon HD6970
Storage 2 x Seagate Barracuda 320GB in RAID 0
Display(s) Dell 3007WFP 30" LCD (2560 x 1600)
Case Thermaltake Armor w/ 250mm Side Fan
Audio Device(s) SupremeFX 8ch Audio
Power Supply Thermaltake Toughpower 750W Modular
Software Win8 Pro x64 / Cat 12.10
#6
Yes, definition are usually a lot easier to manage, but if you have a lot of definitions for the overall site, and you know that the single line is the only place this particular font change is needed, it comes in handy to use inline on occasion.