Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: [css] center

Reply
Thread Tools

Re: [css] center

 
 
brucie
Guest
Posts: n/a
 
      06-22-2003
In post <Xns93A2A7F03EC0Draf256com@213.180.128.20>
Rafal 'Raf256' Maj said...

> Hallow, how can I place an element in center (i.e. - of page).


<style type="text/css">
body {height:100%;margin:0;padding:0;}
..container {display:table;width:100%;height:100%;}
..container div {display:table-cell;vertical-align:middle;text-align:center;}
</style>

<div class="container"><div>centered stuff</div></div>

only supported by opera6.05+. other browsers may catch up one day

--
brucie a. blackford. 23/June/2003 06:04:25 am kilo.
http://loser.brucies.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compatibility Issues -- Windows Media Center and Wireless Adapters =?Utf-8?B?RG91Z2ggRG9jdG9y?= Wireless Networking 2 10-30-2005 11:15 PM
Beblu 'component' Media Center PC at bit-tech Silverstrand Front Page News 0 10-12-2005 01:43 PM
Naming of core NASA center with the words "Mission Control Center" & mass use of religious anthem sounding word "Mission" in Context of Space Exploration & the Moon Landing Hoax moonlandinghoaxreligious@yahoo.com Digital Photography 0 09-27-2005 08:28 PM
Microsoft's Application Center Test Tool Maximus ASP .Net 0 12-10-2003 07:07 PM
About Application Center Test Maximus ASP .Net 0 12-10-2003 07:01 PM



Advertisments