Jump to content
Posted 28 March 2009 - 06:44 PM
Posted 28 March 2009 - 06:55 PM
Posted 28 March 2009 - 09:09 PM
Right off the top of my head......
<body style="margin-top:50%; margin-bottom:50%;"> <center> hello </center> </body>
Posted 28 March 2009 - 09:16 PM
<body> <table width=100% height=100%> <tr><td> <center> hello </center> </td></tr> </table> </body>
Posted 29 March 2009 - 09:49 AM
Posted 29 March 2009 - 02:31 PM
a. You are using improper markup to center your text. If you want to center your text in a table cell, you use align="center"
b. <center> is deprecated, which means that it should not be used at all. There may come a point in time where browsers quit supporting it, and your page will break.
c. center has nothing to do with vertical alignment.
Posted 29 March 2009 - 11:22 PM
Posted 30 March 2009 - 09:44 PM
with CSS2, you could do that with "<div style="position: absolute; top: 50%; left: 50%;"><img src="PathToImage" /></div>" You could also do "margin-bottom: 50%; margin-top:(if this would be needed, don't remember) 50%; margin-left:(not sure if left is the right argument) 50%;" There is also "valign=center align=center" Though that has been deprecated...
Posted 30 March 2009 - 10:21 PM
Posted 30 March 2009 - 10:56 PM
Well you could try the margins at 25%... The CSS2 is not supported by Internet Explorer... Yes I do believe align has been depreciated, I haven't used it in some time now... You could also try using the picture in the background... Using CSS, you could easily position it to be centered...
Posted 30 March 2009 - 11:15 PM
Yeah, well this statement is incorrect:
But if I position it with CSS all my readers using IE will will not see it in the middle? That is a big price.
CSS2 is not supported by Internet Explorer
You use CSS styles.
What do you use if not align? How anything be done without align="center"?
Posted 31 March 2009 - 01:08 PM
Posted 31 March 2009 - 09:31 PM
Patbox - You can have the image as a background image, the css for changing the position of a background image is supported with Internet Explorer.
Posted 31 March 2009 - 09:45 PM
That is hardly the same as IE not supporting CSS2. What you meant was that it doesn't support some elements.
No CSS2, position, and top, left/right, is a part of CSS2
Why? Are you shocked at the difference between VW, Ferrari ,and Volvo? They are completely independent projects. Why would you expect them to behave the same way? This has been the bane of web developers for years.
I am really shocked how many differences there are between FF and IE
Posted 31 March 2009 - 10:31 PM
0 members, 0 guests, 0 anonymous users