View Full Version : Centrew of screen in Opera, does not support vertical %'s
trevorsaint
September 29th, 2003, 06:20 AM
Hi, this question may well be hidden somewhere, but has anyone figured out a way, other than! frames to centre a design for all browser types, and I dont mean using standard html, becuase Opera does not support vertical percentages, and therefore standard HTML, would not work if anyone has attempted such a task.
I have searched and searched, and every design seems to raise to the top, and unless using frames I dont think there is an alternative, if so please share it with me.
I do remember seeing something about CSS, being a solution but I could not fully understand the reasoning, if anyone could enlighten me in this subject, please please do!
Trev
eyeinfinitude
September 29th, 2003, 07:14 AM
Does this work?
<center>
<TABLE HEIGHT="100%" BORDER="0"><TR align="center" valign="middle"><TD>
SWF code goes here
</td></tr></table>
</center>
trevorsaint
September 29th, 2003, 07:29 AM
Thanks for your reply Electrongeek. No this will not work, I am forgetting about the swf section for the time being. This has been a problem for a long time and thought I would ask for some assistance. The code you have used there will not correct the problem with Opera.
If it was that easy everyone would be simply using those properties.
In a web page viewed in netscape and in ie, this code would work accordingly, but like I said Opera does not support the height percentages, only width, so the design would be positioned centrally from left to right but not from top to bottom.
I understand I am just being a little picky in terms of support, but its knowledge I would like to understand regardless. I have also found that unknown to me until recently in my new job, that IE on mac is different to IE on PC, and therefore my page equally looks funny. I dont have a Mac to test my web pages on but I was shocked to find and see this problem.
Catering for browser types is a depressing fact, but needs consideration.
Hope you can help or give some form of guidance
and thansk a bunch for a reply at all.
Trev
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.