2 replies [Last post]
skysimon's picture
perth australia
Last seen: 4 years 45 weeks ago
perth australia
Timezone: GMT+8
Joined: 2010-11-23
Posts: 1
Points: 2

Hi guys

I shall paste you my css, and you can try it in your browsers.
basically it will centre in mozilla and safari, but not in IE

can anyone help me?
thanks heaps

<title>Perth Wedding Photographer | Wedding Photography Australia | Sky 
Simone at Duran Photography | Weddings and Portraits & Perth Photography 
Blog. Photographer based in Perth, Western Australia. Weddings, Modelling 
Folrio, Family Portrait, Fashion, Private Functions.
Perth Wedding 
Photography Perth, wedding photographer perth, wedding photography perth, 
perth wedding photographer, wedding, photography, weddings, wedding 
planning, photographer, wa photographer, perth wedding photographer, perth 
wedding photography,wedding photography, portrait photography perth, 
wedding photos, wedding photography perth, wedding photography australia, 
wedding photos perth, wedding, perth weddings, perth wedding video</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en" /> 
	<meta name="MSSmartTagsPreventParsing" content="true" />
<meta name="keywords" content="perth wedding photographer, perth wedding 
photography, australia wedding photographer, Western Australia 
photographer, Australia photographer, Australia wedding photographer, 
portrait photographer, perth portrait photographer, perth portrait 
photography, perth bridal, wedding photography perth, perth photographer, 
perth photography, kids portraits, fashion, curtin university, perth, 
western australia, west aust, albany, konjonup, great southern, denmark, 
walpole, kojonup,  sea, ocean, photo, photos, photography, photographer, 
pro, professional photographer, portfolio, facebook, thailand, london, 
aussie, sydney, melbourne, brisbane, new york, la, los angeles, graphics, 
photojournalism, aipp, australian, fun photography, fun photographer, sky 
simone, sky video, sky videography, perth wedding videography, wedding 
photographer in perth, perth wedding photographer, wedding photographer, 
perth wedding photos, perth wedding dvd, perth wedding images, wedding 
photography perth, perth wedding dress, perth bridal gown, perth wedding 
dresses, wedding dress perth, true bride, perth bride, photographer, Duran 
Photography a funky perth wedding photographer, specialising in funwedding 
photography. We also photograph christenings, fashion, models, people. 
Commerical photography for websites, perth wedding venues, perth reception 
centres, trendy, wpja, association, murdoch, wa, wa photo, wa 
photographers, wa photography, fine art, alternative, university, uk, 
france, perth photography, photographying, couture boudoir, boudoir 
photography perth, perth boudoir photographers, perth boudoir, boudoir 
photographers, perth wedding, perth weddings, wedding planning, wedding 
perth, perth fashion, perth photography, membership aipp, member aipp, 
australian photographer, aussie photographer, australia photographer, 
australian photography, portraiture, portrait, portraits, candid, children, 
babies, baybee, babes, bebe, waters edge winery, blue water grill, 
heathcote, kings park, celebrant, vendors, supplies, recommend, 
recommended, easy weddings, bride online, weddings wa, wedding network, 
ebridal, studio, freo, fremantle, cottesloe, photo studio, photography 
studio, office, art, fine art, fine, canon, professional, baby 
photographer, children photographer, candid photographer, perth wedding 
photographer, perth wedding photojournalist, fine art photojournalism, fine 
art documentary, documentary, moments, elegant, beautiful, portraitures, 
available light, natural light, light, wedding photojournalist association, 
wpja member, professional photography, Australian Insitute of Professional 
Photography, Australian Insitute, fine art photographer, fine photographer, 
digital photographer, film, film photographer, traditional, modern, baby, 
toddler, adult, teenager, teens, wedding photographer, wedding photography, 
wedding photography western australia, wedding photography perth western 
australia, wedding photography perth, perth western australia, perth 
australia, bali, destintation wedding, destination, margaret river, 
dunsborough, wine region, region, broome, mining, australia day, laughter, 
love, smile, happiness, lifestyle photographer, lifestyle, style, black and 
white, bw, blackwhite, black and white photographers, black and white 
photographer, fashion photography, family photographer, family portrait 
photographer, editorial photography, editorial photographer, destination 
wedding photographer, hamilton island photography, weddings on hamilton 
island, digital wedding photography, film wedding photography, black and 
white wedding photographer, black and white wedding photography, artistic 
wedding photography, artistic, canon digital photographer, published, 
travel, traveling, travelling, location, photojournal, blog, blogger, web 
log, weblog, bunbury, bremer bay, hopetoun, asia, pacific, united states, 
usa, africa, japan, shanghai, engagement, bridal, bride, groom, pageboy, 
groomsmen, bridal party, in love, couple, courples, tv, going to the 
chapel, high fashion, wedding albums, album, leather, book, coffee table, 
female, young, value, good value, cruise, world wide, international, 
famous, the australian, newsaper, the west australia, the west australian, 
the west, paris, rome, premier, commercial, headshots, internet, website, 
web, business photography, engagement shoot, engagements, business, neis, 
pets, maternity, maternity photography, event photography, slideshows, 
slideshow, dvd, expensive, photoswedding, weddingphotographer, perthwestern 
australia, perthwa, respected, respected photographer, magazine, vita, vita 
magazine, sought after, international wedding photographer, top ten 
photographer, top 10, best in australia, best photographer in perth" />
<meta name="description" content="Perth wedding photographer sky simone at 
duran photography specialising in fun, qwirky, pop art wedding photography, 
and lifestyle portraiture. "/>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19858626-1']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; 
ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 
'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
<div style="text-align:center;">
<body bgcolor="Black">
<div id="wrapper">
<div id="container">
<div id="header">
<div id="logo">
<img src="images/duran.jpg"></div>
<div id="toplinks">
<a href="weddings.html">Weddings</a></li>
<a href="female.html">Female Fashion</a></li>
<li><a href="male.html">Portraits Male</a></li>
<a href="editorial.html">Editorial</a></li>
<a target="_blank" href="http://duranphotography.blogspot.com/">
<b>BlOg AlBuM</b></a></li></br>
<a href="fantasy.html">Makeup/Fantasy</a></li>
<a href="couples.html">Couple/Engagement</a></li>
<li><a href="couples.html">Maternity/Babies</a></li>
<a href="functions.html">Events/Music</a></li></br>
<a href="commercial.html">Commercial/Tourism</a></li>
<a href="commercial.html">Wildlife</a></li>
<a href="contact.html">Prices/Contact</a></li>
<a target="_blank" href="http://duranphotography.blogspot.com/"><b>Recent 
<!-- End of Toplinks -->
<!-- End of Header -->
<div id="bodypart"><img 
src="images/dotleft.jpg" alt="photography" width="122" height="511" /><img 
src="images/img1.jpg" alt="image1" width="169" height="511" /><img 
src="images/img2.jpg" alt="image2" width="201" height="511" /><img 
src="images/img3.jpg" alt="image3" width="201" height="511" /><img 
src="images/dotright.jpg" alt="photography" width="121" height="511" 
<div id="footer" align="center">
<span class="footerlinks">
Sky:<a href="mailto:[email protected]" target="_blank" 
simone@duranphotography.com.au</a>&nbsp;&nbsp; Ph: 0415 
540 155    
href="http://duranphotography.blogspot.com/" target="_blank" 
class="footerlinks">The Blog Album</a>&nbsp;&nbsp;</br>
Duran Photography is a registered trademark of Sky 
Simone of <a href="www.duranbridalfilms.com.au">Duran Bridal Films/Sky 
Copyright © Duran Photography®™ 2009.
</span></div><script type="text/javascript">
  var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17120112-1']);
  (function() {
    var ga = document.createElement
('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = 
('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + 
    var s = document.getElementsByTagName
('script')[0]; s.parentNode.insertBefore(ga, s);

Hugo's picture
Last seen: 38 weeks 6 days ago
Joined: 2004-06-06
Posts: 15668
Points: 2806

No DTD! please read the forum

No DTD! please read the forum posting guidelines and check the links in my signature.

We can't help until the basics are covered.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

semaphore's picture
Last seen: 4 years 39 weeks ago
Timezone: GMT-5
Joined: 2010-12-31
Posts: 7
Points: 11

ok well first thing i notice

ok well first thing i notice is you have a div tag inside the header tag, this is a no no. Second thing, you didn't close your body tag.

To center a website use this css:

html, body{
	width: 100%;
	height: 100%;
	text-align: center;
	width: 950px; /* replace this with your width value */
	margin-left: auto;
	margin-right: auto;
        text-align: left;

Like Hugo said, you should use a DTD.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Also you should use an html editor like Dreamweaver, this will help point out any HTML errors. If you can't afford Dreamweaver there are some free html editors out there on the web, search for them.