zera555
-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by zera555
-
-
this centered my "content" section, but i need the whole page to be centered.... something like this website:http://www.cliffordhoeft.com/html<html><head><link rel="stylesheet" href="JBudd_files/style.css" type="text/css"><title>JBudd</title></head><body><div id="banner">JBudd</div><div id="nav"><a href="http://www.x-programming.com/clients/jbudd/newsletters.php">Newsletters</a><br><a href="http://www.x-programming.com/clients/jbudd/talentresource.php">Talent Resource</a><br><b><u>Media</u></b><br><a href="http://www.x-programming.com/clients/jbudd/movies.php">---Movies</a><br><a href="http://www.x-programming.com/clients/jbudd/audio.php">---Audio</a><br><a href="http://www.x-programming.com/clients/jbudd/images.php">---Images</a><br><a href="http://www.x-programming.com/clients/jbudd/store.php">Store</a><br><a href="http://www.x-programming.com/clients/jbudd/forum.php">Forum</a><br><a href="http://www.x-programming.com/clients/jbudd/links.php">Links</a><br><a href="http://www.x-programming.com/clients/jbudd/pressrelease.php">Press Release</a><br></div><div id="promo"> /* place this floated div before the centred div */Tra la la la la la, this is a test, this is only a test.</div><div id="content"><h1>News</h1>The site is coming along nicely!</div></body></html>
CSS
body {background: #d3d3d3;margin-left: auto;margin-right: auto;text-align:center;}h1 {margin-left: auto;margin-right: auto;text-align: center;}#banner {text-align: center;margin: 10px;height: 70px;}#nav {text-align: left;float: left;width: 180px;padding: 5px;background: #ffffff; }#main{;}#content {width: 460px;padding: 10px;margin-left: auto;margin-right: auto;text-align:center;background: #ffffff;}#promo {text-align: left;float: right;width: 180px;padding: 5px;background: #ffffff; }
-
I have a really simple website, but I'd like to center the entire thing. How would I do that? Here's a link to it:http://www.x-programming.com/clients/jbudd/
-
-
-
-
-
Try this insteadClick on the plus signGo to Global FunctionsGo to Browser/NetworkSelect getURL
-
How about installing a shoutbox on these forums so that people can help each other instantly?
-
-
Monkeyswarm
in FLASH
This is a website I made, and the videos aren't high quality or anything, but it's fun!http://www.monkeyswarm.com
Centering problems
in CSS
Posted
nevermind, i figured it outi put all my div's inside one big div "wrapper" and did this#wrapper{width: 800px;margin-left: auto;margin-right: auto;}