PC align center, middle help!
- Started
- Last post
- 20 Responses
- uprise
can someone who is using windows see if this page is aligned "center" "middle". It works fine on a mac using IE. But, I can never get to work on a pc (it is always center top) and I do not have one to test.
http://www.visualuprise.com/page…
:)
- versa0
IE6 PC = no
just align your cells with "center"
- uprise0
Just center? no middle? won't this just give me a center top?
- mrdobolina0
make a table 99%x99%
put your content inside like this:
content
- mrdobolina0
forgot it doesnt accept html, dammit.
- mrdobolina0
basically make a table 99% high and wide put your content inside of it and align it to 'middle'
- versa0
to use just align center, you have to put a table inside your table cells
an extra step, and there are several ways to skin this cat
- uprise0
Ok Check it out now if you would. see if that worked. On my mac it is now middle but it is just aligned left.
- jevad0
you aint got any tr's going on there pal. here:
table width =100% height=100%
tr
td
center
CONTENT
/center
/td
/tr
/table
- uprise0
versa, will test it now.
: )
- uprise0
OK I hope this works.
- versa0
i am guessing you don't have an initial tr / table row
put that in and try it
- jevad0
omg your code is a mess man!
table
tr
td
centre
CONTENT
/tr
/td
/centre
/table
- jevad0
I closed the tags the wrong way round
centre, td, then tr
- uprise0
I know I am a hack. OK it is starting to make more sense to me.. Try this.
- jevad0
one more time:
table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"
tr
td
div align="center"
table
content
/table
/div
/td
/tr
/table
- uprise0
how about this? If this works I will be stoked. I have been dealing with this issue for a while now. I guess I need to get a html book ehh! wysiwyg is a F*ckin lie.
- jevad0
close the gap after teh div align=, and use this for your doctype:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- uprise0
Jevad, Thanks for your help! I think this should be right.
- ********0
could have taken out the doctype to begin with