HighDots Forums  

Table with 100% width of page instead of page in IE7

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Table with 100% width of page instead of page in IE7 in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Charles A. Landemaine
 
Posts: n/a

Default Re: Table with 100% width of page instead of page in IE7 - 10-29-2007 , 09:01 AM






On Oct 29, 5:41 am, Ben C <spams... (AT) spam (DOT) eggs> wrote:
Quote:
If you can set width and height something like this should work:

position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
height: 1.2em;
width: 15em;
text-align: center;

See alsohttp://www.student.oulu.fi/~laurirai/www/css/middle/


Thanks Ben. Actually, text will be "Loading..."
I tried your suggestion, it's working fine in Opera but not IE7
http://auriance.com/docs/tmp/xhtml.div.html
I read the article (pretty good). The problem in my case is that
height is variable...
Any idea?
Thanks,

Charles.



Reply With Quote
  #12  
Old   
Ben C
 
Posts: n/a

Default Re: Table with 100% width of page instead of page in IE7 - 10-29-2007 , 10:21 AM






On 2007-10-29, Charles A. Landemaine <landemaine (AT) gmail (DOT) com> wrote:
Quote:
On Oct 29, 5:41 am, Ben C <spams... (AT) spam (DOT) eggs> wrote:
If you can set width and height something like this should work:

position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
height: 1.2em;
width: 15em;
text-align: center;

See alsohttp://www.student.oulu.fi/~laurirai/www/css/middle/



Thanks Ben. Actually, text will be "Loading..."
I tried your suggestion, it's working fine in Opera but not IE7
http://auriance.com/docs/tmp/xhtml.div.html
I read the article (pretty good). The problem in my case is that
height is variable...
If it's just one line-- "Loading..."-- then I was thinking you could set
the height to about 1.2em. That should be about the right size.

Otherwise you need a table, and if you want it to work in IE, that means
a <table>.


Reply With Quote
  #13  
Old   
Charles A. Landemaine
 
Posts: n/a

Default Re: Table with 100% width of page instead of page in IE7 - 10-29-2007 , 11:20 AM



On Oct 29, 12:21 pm, Ben C <spams... (AT) spam (DOT) eggs> wrote:
Quote:
If it's just one line-- "Loading..."-- then I was thinking you could set
the height to about 1.2em. That should be about the right size.

Otherwise you need a table, and if you want it to work in IE, that means
a <table>.
Thanks Ben, yes, in my case I'll use this: http://auriance.com/docs/tmp/align.div.html
Seems to be working fine in most browsers. If I need to center a Flash
movie, I'll take care of the height of the movie and I'll substract
1/2 of its height in the negative top margin to keep it centered
Cheers,

Charles.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.