Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Visual Design > Your Design and Layout

Reply
 
LinkBack Thread Tools
Old June 5th, 2007, 10:15 AM   #1
New Member
 

Join Date: Jun 2007
Location: Florida
Age: 32
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 0413 is on a distinguished road
Need Help Centering my index page???

Very new to webdesign and I thought what better way to learn then to design a webpage for my wife. Here is the site www.mommyandmimi.com If you look at the site you will notice that information box is not centered on the page. Does anybody know how to get this centered. Its driving me nuts and I have no way how to fix it. Thanks for listening!

Lee
0413 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 5th, 2007, 10:21 AM   #2
Elite Veteran
 

Join Date: Jan 2007
Location: You know where
Age: 32
Posts: 4,607
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all
Re: Need Help Centering my index page???

I'm not really sure I understand what it is that you want centered.

- The site pretty broken up in Firefox. Most of the images don't show up.
- The site doesn't validate. You have 96 errors
- No doctype (which tells the browser how to handle your code)

I could go on and on ...
karinne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 5th, 2007, 10:47 AM   #3
New Member
 

Join Date: Jun 2007
Location: Florida
Age: 32
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 0413 is on a distinguished road
Re: Need Help Centering my index page???

Hey there,
Thanks for the quick reply. The reason the page has so many problems is because my host is having issues and I have not been able to load anything for 30 hours now. I got to upload the page and then it crashed which is currently leaving me stuck with what I have.

I was basically referring to the centering of the page.......see how the all the text is to the left. I was wondering what I was doing wrong in order to get that to the center of the page.

Thanks everywhere
0413 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 5th, 2007, 10:54 AM   #4
Most Reputable Member
 

Join Date: May 2007
Location: UK
Age: 29
Posts: 1,107
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice MikeHopley is just really nice
Re: Need Help Centering my index page???

For centring the page, add this to your stylesheet:

Code:
body {
margin: 0 auto;
}
Often that is not flexible enough. For more control, wrap a <div> around the stuff you want centred, and apply the style to it instead.

Don't have a stylesheet? You'll need to learn about them soon

**EDIT**

I see that you have already tried this, and it didn't work. Want to know why it didn't work? It's because you have no doctype.

You need to fix your site's many errors. To start with, put a correct doctype at the top of the page. This goes before anything else, even the <html> element:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Without this, the method I gave you for centring won't work properly. That's an example of why cleaning up your code is important.
MikeHopley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 5th, 2007, 11:00 AM   #5
Elite Veteran
 

Join Date: Jan 2007
Location: You know where
Age: 32
Posts: 4,607
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all
Re: Need Help Centering my index page???

Oh ok .. so just centering the whole site. Yeah you can do the margin: 0 auto on the body or wrapping a div around the whole thing

How to center your site horizontally
body can be used to style too!
Integrating CSS in your website

Depending on how much you want to get into this, you might want to ditch SiteBuilder and start hand-coding your site. WYSIWYG editors like SiteBuilder and Dreamweaver (using the Design View) really generate crappy code and leave you with endless errors.

Using Dreamweaver and the likes
karinne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 6th, 2007, 09:59 AM   #6
New Member
 

Join Date: Jun 2007
Location: Florida
Age: 32
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 0413 is on a distinguished road
Re: Need Help Centering my index page???

Thanks so much for the help. I was able to get the page centered.......now I can start working on the 8 million errors

Lee
0413 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old June 9th, 2007, 02:40 AM   #7
Elite Veteran
 

Join Date: Dec 2005
Location: On Internet
Posts: 4,850
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 JacobHaug is a jewel in the rough JacobHaug is a jewel in the rough JacobHaug is a jewel in the rough JacobHaug is a jewel in the rough
Re: Need Help Centering my index page???

haha...Good luck!
JacobHaug is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
centering , index , information box


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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
index page help? Timmo88 Your Design and Layout 1 June 4th, 2008 02:49 PM
Centering a Page In CSS britishchampion HTML, XHTML and CSS 5 January 3rd, 2008 12:20 PM
Centering an image on my web page Fysicus HTML, XHTML and CSS 8 September 21st, 2007 08:43 AM
Index page coffee Classic ASP 1 June 7th, 2006 08:34 AM
Centering layers in a page gwx03 HTML, XHTML and CSS 9 November 26th, 2003 03:55 PM


Search Engine Optimization by vBSEO 3.2.0 RC8