techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > Programming & Webmastering

Reply
 
Thread Tools
Old Jun 18, 2012, 05:22 AM   #1
copenhagen69
2000 Posts
 
copenhagen69's Avatar
 
Join Date: Jan 2010
Location: USA
Posts: 3,457 (2.79/day)
Thanks: 1,529
Thanked 1,212 Times in 1,158 Posts

System Specs

CSS basic font commands ... help?

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?
__________________
|| Heatware || Build: A Wooden Beast || Build: The Wooden Beast's Desk || Case Mod: Tribal Strikes Again ||
|| Intel I7 920 @ 4.3 // ASUS Rampage III Extreme// ASUS 580 // 3x2GB Mushkin// CM Silent Pro 1200 // Water Cooled ||
|| My Ever Changing For Sale Thread
copenhagen69 is offline  
Reply With Quote
Old Jun 18, 2012, 11:50 AM   #2
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts

System Specs

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>
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is offline  
Reply With Quote
The Following User Says Thank You to Kreij For This Useful Post:
Old Jun 19, 2012, 03:41 AM   #3
copenhagen69
2000 Posts
 
copenhagen69's Avatar
 
Join Date: Jan 2010
Location: USA
Posts: 3,457 (2.79/day)
Thanks: 1,529
Thanked 1,212 Times in 1,158 Posts

System Specs

Ah, ok I will try that out ... thanks!
__________________
|| Heatware || Build: A Wooden Beast || Build: The Wooden Beast's Desk || Case Mod: Tribal Strikes Again ||
|| Intel I7 920 @ 4.3 // ASUS Rampage III Extreme// ASUS 580 // 3x2GB Mushkin// CM Silent Pro 1200 // Water Cooled ||
|| My Ever Changing For Sale Thread
copenhagen69 is offline  
Reply With Quote
Old Jul 7, 2012, 03:50 PM   #4
Elmo
200 Posts
 
Elmo's Avatar
 
Join Date: May 2012
Location: Malaysia
Posts: 254 (0.66/day)
Thanks: 16
Thanked 35 Times in 31 Posts

System Specs

why not use an external css? example .class {font-size: 120 px; font-weight: 900}
Elmo is offline  
Reply With Quote
Old Jul 20, 2012, 10:39 PM   #5
Ev1LrYu
75 Posts
 
Ev1LrYu's Avatar
 
Join Date: Nov 2010
Location: Philippines! :D
Posts: 164 (0.17/day)
Thanks: 158
Thanked 22 Times in 20 Posts

System Specs

Quote:
Originally Posted by Kreij View Post
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!
__________________
There is no need to purchase overpriced cables because they are gold tipped, blessed by the Pope and waved over an active volcano for good luck. - Kreij

Lol, trading 1 core for L3 is almost like losing your manhood so that you can have an extra large finger to please Mrs. While the extra large finger is awesome, but losing your manhood is a big price to pay. - Fourstaff
Ev1LrYu is offline  
Reply With Quote
Old Jul 20, 2012, 10:50 PM   #6
Kreij
Hardcore Monkey Moderator
 
Kreij's Avatar
 
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,254 (5.27/day)
Thanks: 591
Thanked 5,510 Times in 2,948 Posts

System Specs

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.
__________________

Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other.


Get more tech news on a wide variety of topics at NextPowerUp
Kreij is offline  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS help freaksavior Programming & Webmastering 1 Mar 20, 2012 08:15 PM
Help with CSS needed silkstone Games 7 Jan 22, 2011 12:49 PM
Font problem. Need help ASAP! TheMailMan78 General Software 2 Oct 27, 2010 01:28 PM
Please help me to set my CSS server!!!! inf3rno Games 3 Jun 17, 2010 05:14 AM
DOS Commands In Visual Basic PVTCaboose1337 Programming & Webmastering 44 Feb 1, 2010 02:09 AM


All times are GMT. The time now is 10:37 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts