Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

centering
 

Bill




quote this post edit post

IP Loged report this post

Old Post  09-21-05 - 12:40 AM  
Hi


Margin: auto doesn't seem to work in IE.

Is there another way to have a <div> smaller than the screen to be centered
for any scr.width ?
Like <table align="center"> does.

Thanks




Post Follow-Up to this message ]
Re: centering
 

Els




quote this post edit post

IP Loged report this post

Old Post  09-21-05 - 12:40 AM  
Bill wrote:

> Margin: auto doesn't seem to work in IE.
>
> Is there another way to have a <div> smaller than the screen to be centere
d
> for any scr.width ?
> Like <table align="center"> does.

http://locusmeus.com/html-css/centeringpage.html

The reason your IE doesn't respond to auto:margin, is probably that
you don't have a complete doctype. Means it will be in Quirksmode, (as
opposed to standards mode), just like IE5 naturally is.

The above link shows how to deal with IE5, and that should work for
IE6 in Quirksmode too.

--
Els                     http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Extreme - Color Me Blind


Post Follow-Up to this message ]
Re: centering
 

David Dorward




quote this post edit post

IP Loged report this post

Old Post  09-21-05 - 09:38 AM  
Bill wrote:

> Margin: auto doesn't seem to work in IE.

http://dorward.me.uk/www/centre/#ie

--
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Post Follow-Up to this message ]
Re: centering
 

sschling@gmail.com




quote this post edit post

IP Loged report this post

Old Post  09-22-05 - 12:34 AM  
css:
#container {
margin: 0 auto;
width: 760px;
}

html:
<div id="container">
hello
</div>

If you have the correct doctype as Els mentioned, this should work



Post Follow-Up to this message ]
Re: centering
 

Bill




quote this post edit post

IP Loged report this post

Old Post  09-22-05 - 12:34 AM  
Thanks to you all

<doctype > did the work






Post Follow-Up to this message ]
Re: centering
 

Jim Moe




quote this post edit post

IP Loged report this post

Old Post  09-22-05 - 12:34 AM  
Bill wrote:
>
> Margin: auto doesn't seem to work in IE.
>
You must also set a width less than 100%.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 07:29 AM. Post New Thread   
  Previous Last Thread   Next Thread next
Stylesheets archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top