Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 1:00 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ]  Bookmark and Share
Author Message
 Post subject: vertical-align:middle works on IE but not Firefox
PostPosted: Sat Jan 19, 2008 9:36 am 
Offline

Joined: Mon Jan 14, 2008 8:38 am
Posts: 6
Hi there,

I'm trying to display paragraph with a table embedded in there inline. I hope the table can behave like a big letter in the paragraph, with the line aligned in the center of the table. For example, if I want to make "1/2" to a vertical "1 <hr/> 2", I
would put it in a table and change the "display" property as follows:

Code:
<p> This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.

I HAVE <table style="display:inline;vertical-align:middle"> <tr> <td> 1 <hr /> 2 </td> </tr> </table>  PIZZA.

This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.



This works perfectly for me on IE, but on Firefox only the "inline" property works, and the "vertical-align" property doesn't (i.e., the table and the line text are aligned at the bottom still).

Did I do something wrong? Or is this a Firefox bug?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 27, 2008 6:40 am 
Offline
500+ Club
User avatar

Joined: Wed Feb 27, 2008 6:14 am
Posts: 929
Location: Cebu City Philippines
Changing your codes to quoted below will work:
Code:
<p> This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.

I HAVE
<table>
<tr>
   <td>1</td>
</tr>
<tr>
      <td><hr/></td>
      <td>PIZZA</td>
</tr>
   <td>2</td>
</tr>
</table>
This is a long paragraph. This is a long paragraph. This is a long paragraph. This is a long paragraph.


Haven't you know that http://www.hotdesign.com/seybold/ designing in table is not a good practice. You should start building your page w/o tables.

See if the code helps :D

_________________
~ Get me some work, I do freelancing ~


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley