HOME
TUTORIAL
∇
Applets
Comments
CSS
Document Tags
Embed
Fonts
Forms
Frames
Images
Lines & Paragraphs
Links
Lists
Logical Tags
Scripts
Sounds
Symbols
Tables
Weird Tags
FORUM
∇
HTML Help
Web Design
Programming Languages
Web Hosting
Domain Names
Marketing
Community
QUICK LIST
CSS
Forum Home
FAQ
Search
Memberlist
Register
Profile
Log in to check your private messages
Log in
Register
- Not registered yet? Got something to say?
Join HTML Code Tutorial
!
Center Div Problem [solved]
HTML Help Forum Index
->
CSS
View previous topic
::
View next topic
Author
Message
slump
Joined: 22 Jun 2006
Posts: 2
Posted: Thu Jun 22, 2006 5:58 pm
Center Div Problem [solved]
I know I must search the forum for results and I searched but my keyword was too popular so I can't get anything useful.
Just an easy problem for you gurus I think.
I have a small HTML & CSS but it displays different in IE and FF
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Grr</title>
<meta http-equiv="Content-Type" content="text/html; UTF-8" />
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
</head>
<body id="bd">
<div id="header">
</div>
</body>
</html>
Code:
body {
margin: 0px;
padding: 0px;
background-color: #FFFFFF;
width: 100%;
text-align: center;
}
#header {
height: 89px;
background: url(../images/spreadhead.gif);
width: 792px;
}
In IE, it was centered, but not in FF. I tried anything I can but nothing worked. Can anyone help me?
Last edited by
slump
on Thu Jun 22, 2006 6:05 pm; edited 1 time in total
slump
Joined: 22 Jun 2006
Posts: 2
Posted: Thu Jun 22, 2006 6:04 pm
No problem, I figured it out.
Add margin-right: auto and it works.
CSS's crazy but I'm gonna love it.
Corey Bryant
Site Admin
Joined: 15 May 2004
Posts: 8267
Location: Castle Rock CO USA
Posted: Fri Jun 23, 2006 2:24 am
Actually
Code:
margin: 0px auto;
should work also
_________________
Corey
Loud Commerce
|
Loud Worx
|
Loud Ads
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
HTML Help Forum Index
->
CSS
All times are GMT - 8 Hours
Page
1
of
1
Jump to:
Select a forum
Announcements
----------------
Announcements
HTML Help
----------------
HTML FAQ
General HTML
HTML Form
HTML Table
HTML Frame
CSS
DHTML
SSI
MySpace
HTML Tools
Web Design
----------------
Images & Graphics
Templates
Multimedia
Programming Languages
----------------
Javascript
PHP
Perl
ASP
Others
Web Hosting
----------------
Free Hosting
Shared Hosting
Dedicated, Managed, and Co-located Hosting
Hosting Business and Reseller Hosting
Domain Names
----------------
Registrars
Tools
For Sale, Wanted, & Appraisals
Expired Domains
Monetization
Legal Issues
Marketing
----------------
SEO
PPC
Affiliate Marketing
Other Internet Marketing
Community
----------------
Miscellaneous
Website Review
Introduce Yourself
Feedback
Praise
Errors
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
edit your posts in this forum
You
cannot
delete your posts in this forum
You
cannot
vote in polls in this forum
Your Ad Here
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HOSTING / DESIGN
$1.99 Domain Registration
Cheap Web Hosting
Website Templates
MAKE MONEY
Sell Domain Names
Sell Website Templates
Home
|
Tutorials
|
Forum
|
Quick List
|
Link Directory
|
About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial