Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

83 users online



How to center a pure css web site?

How to center a pure css web site?

Currently viewing this thread: 1 (0 members and 1 guests)


KebecoiS

KebecoiS

[ .sync. ]
Status: Offline!

How to center a pure css web site?

Hello everyone,

I've tried everything I knew to center anything on a webpage. I've got a pure CSS layout being done and I have no idea how I can center it, all attempts have failed.

I tried to:
- set the body in css to be centered
- use the <center> tags
- use the <div align="center"> tag and property

How is it possible?

Regards,
Jerome.

___________________

Synchronizing.NET - A forum where you are rewarded with prizes such as free hosting, free domains, $20 in real money!
Join now and get started!

Stevie

Stevie

Neversidian
Status: Offline!

On a container div with a fixed width:

Code:

margin: 0 auto;

Although, Internet Explorer doesn't like it. Firefox does however, there is a fix for IE, but I am not sure how to do so.

___________________

"Hey, **** YOU!"

freak

freak

Neverside Newbie
Status: Offline!

http://www.bluerobot.com/web/css/center1.html

___________________

Tables for layout is an abuse. -- Internet Explorer is unsafe.

KebecoiS

KebecoiS

[ .sync. ]
Status: Offline!

Ok I got it...

Now I've got a Javascript menu problem, look: http://syncdev.com/nexion2/

Now I've been told to do it in CSS, but I do not have as much flexibility I used to have.

Cheers.

___________________

Synchronizing.NET - A forum where you are rewarded with prizes such as free hosting, free domains, $20 in real money!
Join now and get started!

army

army

Neverside Peacekeeping Forces
Status: Offline!

you mean how to get CSS do drop down menu? that's rather popular question
http://www.alexkeeny.com/cssdropdown/
http://www.htmldog.com/articles/suckerfish/dropdowns/
http://pixemic.org/css/hoverlist/menu.php (the comment is spanish tho)
hope helps! Grin

___________________

"The only thing i hate about Sunday is that because tomorrow is Monday"
army

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.008 seconds.