New Posts  All Forums:Forum Nav:

Centering Text

post #1 of 3
Thread Starter 
Hey, I'm having trouble getting my text to center on each box (a,b,c...) http://jsbin.com/iyunun/2/edit

Any help would be much appreciated!

Thanks
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 2600K @ 4.2GHz Asus Maximus Gene V Asus DirectCU II 290x Corsair Platinum 2x8Gb 1600MHz 
Hard DriveOSPowerCase
Samsung 840 EVO 500Gb, WD Black 1TB Windows 7 x64 Thermaltake 1200W Modular Silverstone TJ08 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 2600K @ 4.2GHz Asus Maximus Gene V Asus DirectCU II 290x Corsair Platinum 2x8Gb 1600MHz 
Hard DriveOSPowerCase
Samsung 840 EVO 500Gb, WD Black 1TB Windows 7 x64 Thermaltake 1200W Modular Silverstone TJ08 
  hide details  
Reply
post #2 of 3
That is a hot mess! On one of those things you're giving something a block element, then telling it it's inline, and all that text center stuff is just unnecessary. If you want to center something (only on the x axis) all you need is to have a block element and specify 'margin: 0 auto' I believe.

Also what's with the absurd width? If you'd like it to stretch the entire way just use a percentage. (I actually deleted probably half your css, and it didn't change a thing, definitely try to clean that up)
post #3 of 3
Thread Starter 
Quote:
Originally Posted by Madman340 View Post

That is a hot mess! On one of those things you're giving something a block element, then telling it it's inline, and all that text center stuff is just unnecessary. If you want to center something (only on the x axis) all you need is to have a block element and specify 'margin: 0 auto' I believe.

Also what's with the absurd width? If you'd like it to stretch the entire way just use a percentage. (I actually deleted probably half your css, and it didn't change a thing, definitely try to clean that up)

Yeah I'm still trying to learn this. tongue.gif How can I get the text to fit at %50 of the img container's height and width? I tried changing the width and height but it doesn't seem to work.
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 2600K @ 4.2GHz Asus Maximus Gene V Asus DirectCU II 290x Corsair Platinum 2x8Gb 1600MHz 
Hard DriveOSPowerCase
Samsung 840 EVO 500Gb, WD Black 1TB Windows 7 x64 Thermaltake 1200W Modular Silverstone TJ08 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 2600K @ 4.2GHz Asus Maximus Gene V Asus DirectCU II 290x Corsair Platinum 2x8Gb 1600MHz 
Hard DriveOSPowerCase
Samsung 840 EVO 500Gb, WD Black 1TB Windows 7 x64 Thermaltake 1200W Modular Silverstone TJ08 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding