Website Coding Stuck on a line of code? Find resources and ask your virtual assistant website programming questions here.
Forum Sponsor (Advertise with us)
Reply
 
Thread Tools Display Modes
    #1 (permalink)  
Old 04-15-2008
JacksonAO's Avatar
JacksonAO JacksonAO is offline
Contributing Member
 
Join Date: Mar 2008
Location: Jackson, MI
Posts: 235
Default Center Align in Firefox, but not Explorer?
Below is my main CSS file. Is there something I can do to this, so that the entire page while center in MS explorer, just as it does in Firefox? Right now, in explorer it just hangs to the left. (here's the URL www.jacksonao.com)
If anyone knows, I'd love to hear.

}

#header p {
padding-left: 10px;
}

#header a {
}

/* Menu */

#menu {
width: 778px;
height: 35px;
background: url(images/img03.jpg) no-repeat;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
padding-bottom: 0px;
}

#menu ul {
margin: 0;
padding: 14px 0 0 0;
list-style: none;
}

#menu li {
display: inline;
}

#menu a {
padding: 0 20px 0 15px;
background: url(images/img04.gif) no-repeat left center;
text-decoration: none;
font-weight: bold;
color: #666666;
}

#menu a:hover {
text-decoration: underline;
}

/* Page */

#page {
width: 778px;
margin: 0 auto;
padding: 20px 0;
}

/* Content */

#content {
float: left;
width: 480px;
}

.post {
padding: 0 0 20px 0;
}

.title {
margin: 0;
border-bottom: 2px solid #4A3903;
}

.byline {
margin: 0;
}

.meta {
border-top: 1px solid #4A3903;
text-align: right;
color: #646464;
}

.meta a {
padding-left: 15px;
background: url(images/img06.gif) no-repeat left center;
font-weight: bold;
}

/* Sidebar */

#sidebar {
float: right;
width: 280px;
}

#sidebar ul {
margin: 0;
padding: 0;
list-style: none;
}

#sidebar li {
}

#sidebar li ul {
padding: 15px 0;
}

#sidebar li li {
padding-left: 30px;
border-bottom: 1px dotted #4A3903;

}

#sidebar h2 {
margin: 0;
padding: 20px 0 2px 30px;
background: url(images/img05.gif) no-repeat left bottom;
border-bottom: 2px solid #4A3903;
}

#sidebar a {
text-decoration: none;
}

#sidebar a:hover {
text-decoration: underline;
}

/* Footer */

#footer {
width: 778px;
height: 35px;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
padding-bottom: 0px;
background-color: #FF6699;
}
__________________
Sarah Bernstein
Jackson Administrative Outsourcing

www.jacksonao.com
Reply With Quote
    #2 (permalink)  
Old 04-15-2008
Codehead's Avatar
Codehead Codehead is offline
Administrator
Company name: Codehead LLP
 
Join Date: Apr 2007
Location: WA
Posts: 172
Default Re: Center Align in Firefox, but not Explorer?
Do this:

1 - In your HTML after <body> add <div id="wrapper">
2 - At the end of your HTML add </div> just before </body>
3 - In your CSS add this:
Code:
body {
	min-width:778px;
	text-align:center;
}
#wrapper {
	width:778px;
	margin-left:auto; margin-right:auto;
	text-align:left;
}
Here is a very simple centered page:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Centered</title>

	<style type="text/css">
		body {
			min-width:778px;
			text-align:center;
		}
		#wrapper {
			width:778px;
			margin-left:auto; margin-right:auto;
			text-align:left;
		}
	</style>
   
</head>

<body>
<div id="wrapper">
	
   This is a centered page!
   
</div>
</body>
</html>
I hope this makes sense
__________________
"Imagination is more important than knowledge."
Albert Einstein
Reply With Quote
    #3 (permalink)  
Old 04-15-2008
JacksonAO's Avatar
JacksonAO JacksonAO is offline
Contributing Member
 
Join Date: Mar 2008
Location: Jackson, MI
Posts: 235
Default Re: Center Align in Firefox, but not Explorer?
perfect sense....
you've saved the day once more
the result... a centered page.
http://www.jacksonao.com
__________________
Sarah Bernstein
Jackson Administrative Outsourcing

www.jacksonao.com
Reply With Quote
    #4 (permalink)  
Old 04-15-2008
Codehead's Avatar
Codehead Codehead is offline
Administrator
Company name: Codehead LLP
 
Join Date: Apr 2007
Location: WA
Posts: 172
Default Re: Center Align in Firefox, but not Explorer?
I'm glad it worked for you.
We are going to teach CSS practically with examples. This will be the first example so don't miss our sessions
__________________
"Imagination is more important than knowledge."
Albert Einstein
Reply With Quote
    #5 (permalink)  
Old 04-15-2008
JacksonAO's Avatar
JacksonAO JacksonAO is offline
Contributing Member
 
Join Date: Mar 2008
Location: Jackson, MI
Posts: 235
Default Re: Center Align in Firefox, but not Explorer?
I'll be sure to watch. I missed the start of the HTML lessons....
__________________
Sarah Bernstein
Jackson Administrative Outsourcing

www.jacksonao.com
Reply With Quote
    #6 (permalink)  
Old 04-15-2008
Tess's Avatar
Tess Tess is offline
Senior Member
Company name: Codehead, LLP
Latest blog post: SEO Q&A
 
Join Date: Apr 2007
Location: Portland, OR
Posts: 8,743
Blog Entries: 3
Default Re: Center Align in Firefox, but not Explorer?
That's OK Sarah - the HTML classes are archived here and we won't start the next part of the series for about a month so you have plenty of time to catch up if you like.

P.S. site looks good!
__________________
Stuck in startup? Stop dreaming. Start DOING!
Get the Become a Virtual Assistant eBook for just $29
Reply With Quote
Reply

« Previous Thread | Next Thread »
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Switch to Linear Mode
Hybrid Mode Hybrid Mode
Threaded Mode Switch to Threaded Mode

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 Off

Forum Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
National Internet Fraud Watch Info Center Tess Work At Home Scams 3 09-22-2008 05:22 PM
Don't just look at your site in Internet Explorer... jeannedb General Website Design and Development 2 10-09-2007 10:05 AM
Find a Small Business Development Center Near You Tess Business Development 0 07-16-2007 05:47 AM


All times are GMT -4. The time now is 09:58 AM.

International Virtual Assistants Association
Project Management for Virtual Assistants
Create a Professional New Client Welcome Packet
Virtual Assistant Forums Advertising
Virtual Assistant Contracts
Featured VA websites:

Your Virtual Wizard

VisionaryVA

Girl Friday
Get featured!
Virtual Assistant Podcast
Virtual Assistant Forums Advertising
Virtual Assistant Services
Affordable Website Hosting
Work from Home | Become A Virtual Assistant
Affordable Logo Design
Virtual Assistant Forums Advertising

© Virtual Assistant Forums 2011
All content and images are protected under copyright law and may not be reproduced in any way without express written consent.