New Posts  All Forums:Forum Nav:

Website Centering

post #1 of 5
Thread Starter 
Ive been working on a website and everything is great except one thing. I can't get everything to stay centered no matter what resolution its being viewed at. Its all in the center on a fixed 1920x1080 resolution. What code do I need to keep it centered so that no matter the size of the browser its always in the center. Thanks for all your help!!
 iMac
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel® i3 3.06GHz Apple Logic Board ATI® 4670 4GB DDR3 1333 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 500Gb 7200RPM 8x Superdrive Mac OS X 10.6.4 Snow Leopard 21.5" LED Backlit 1920x1080 
CaseMouse
Aluminum Unibody Magic Mouse 
  hide details  
Reply
 iMac
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel® i3 3.06GHz Apple Logic Board ATI® 4670 4GB DDR3 1333 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 500Gb 7200RPM 8x Superdrive Mac OS X 10.6.4 Snow Leopard 21.5" LED Backlit 1920x1080 
CaseMouse
Aluminum Unibody Magic Mouse 
  hide details  
Reply
post #2 of 5
<div id="container" style="width: 100%; height: auto; padding: 0; margin: 0">
<div id="body" style="height: 100%; width: 960px; margin-left: auto; margin-right: auto">

ASDF

</div>
<div style ="padding: 0; margin: 0; clear: both"></div>
</div>
rwar
(15 items)
 
  
CPUMotherboardGraphicsHard Drive
3930k Asus ROG 680 FTW+ SSD 
CoolingMonitorPowerCase
H100 dell u3011 850w Silverston t something 
  hide details  
Reply
rwar
(15 items)
 
  
CPUMotherboardGraphicsHard Drive
3930k Asus ROG 680 FTW+ SSD 
CoolingMonitorPowerCase
H100 dell u3011 850w Silverston t something 
  hide details  
Reply
post #3 of 5
Thread Starter 
Where exactly do I put those tags?
 iMac
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel® i3 3.06GHz Apple Logic Board ATI® 4670 4GB DDR3 1333 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 500Gb 7200RPM 8x Superdrive Mac OS X 10.6.4 Snow Leopard 21.5" LED Backlit 1920x1080 
CaseMouse
Aluminum Unibody Magic Mouse 
  hide details  
Reply
 iMac
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel® i3 3.06GHz Apple Logic Board ATI® 4670 4GB DDR3 1333 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 500Gb 7200RPM 8x Superdrive Mac OS X 10.6.4 Snow Leopard 21.5" LED Backlit 1920x1080 
CaseMouse
Aluminum Unibody Magic Mouse 
  hide details  
Reply
post #4 of 5
Put the top ones right after the <body> tag, and the ending ones right before the </body> tag.
post #5 of 5
Thread Starter 
Awesome both +rep! works great!
 iMac
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel® i3 3.06GHz Apple Logic Board ATI® 4670 4GB DDR3 1333 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 500Gb 7200RPM 8x Superdrive Mac OS X 10.6.4 Snow Leopard 21.5" LED Backlit 1920x1080 
CaseMouse
Aluminum Unibody Magic Mouse 
  hide details  
Reply
 iMac
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel® i3 3.06GHz Apple Logic Board ATI® 4670 4GB DDR3 1333 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 500Gb 7200RPM 8x Superdrive Mac OS X 10.6.4 Snow Leopard 21.5" LED Backlit 1920x1080 
CaseMouse
Aluminum Unibody Magic Mouse 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding