...

View Full Version : Align In Center (Not So Simple)



Clayf700
06-20-2010, 05:15 AM
Hey, Sup?, I Have A Weird Glitch where I haft to make to where I have a Table Thatis 100% in Width and 100% in Height, but the only problem is, is that when I insert another table and on that Table And It Has Style="Display: block;" it's stuck on the top left, this happens in: safari, firefox, opera ect. the only one where it stays in the center is internet explorer (7)
You See I Have Figured out how to center things with display: Block; but you can't have a CSS Value It has to be <table height="200" width="200"> not height: 100% width: 100%
So How Would You Center it In CSS?
Ask If You have Any Questions

P.S. Div Align Center Dosn't Work, Margin-left, Right Dosn't Work, And I Don't Know What To Do

Major Payne
06-20-2010, 07:32 AM
Usually to center any container, you set the width LESS than 100% and then use:

margin: 0 auto;

effpeetee
06-20-2010, 02:18 PM
Some useful help here. (http://www.exitfegs.co.uk/Sources.html)

Also here. (http://www.wpdfd.com/editorial/thebox/deadcentre4.html)

Frank

abduraooft
06-20-2010, 04:08 PM
but the only problem is, is that when I insert another table and on that Table And It Has Style="Display: block;" it's stuck on the top left, Seems like you are misusing the table tags for making your layout?

Clayf700
06-21-2010, 08:49 PM
Seems like you are misusing the table tags for making your layout?
Hmmmm... What Do You Suggest? should I make a class that has "Display:Block;"?

Major Payne
06-22-2010, 04:47 AM
Not suggesting a totla redesign of pages, but thought you might like the information these provides if you wanted to make your pages without tables:

Tableless Web Design: http://en.wikipedia.org/wiki/Tableless_web_design
Why tables for layout is stupid: http://www.hotdesign.com/seybold/
How to convert manually your HTML tables to CSS: http://www.table2css.com/articles/convert-your-html-tables-to-css
Images, Tables, and Mysterious Gaps: https://developer.mozilla.org/en/Images,_Tables,_and_Mysterious_Gaps



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum