General HTML/Web Design Programming Q`s/HTML for right align in Explorer.

Advertisement


Question
QUESTION: Hi Nancy

On my web page at http://advantagein.com/energy/ I managed to get the table with the bulk of the text to right align in Firefox. However, it does not right align in Internet Explorer. What tag could I add to get it to right align in both browsers?
I used a program called kompozer. I also added a couple of tags based on a web search but it did not help.

Does the page look good and read well in Firefox? I thought it would be good if it would also look like that in Explorer.

Regards Richard.

Website
Website  
ANSWER: Hello - I have  attached a screen shot of the webpage in IE9.  The only issue I see is that the image is outside the table.  I would place it within the table row.

Each Browser does read some html code differently but, text align is not one that there is usually a problem.

<img src="conspiracyp.gif" alt="Supressed inventions and inventors" align="right" border="0" height="145" width="217">
<table style="width: 60%; text-align: left; margin-left: auto; margin-right: 0px;">


---------- FOLLOW-UP ----------

QUESTION: Hi Nancy

Thanks for your answer. Someone suggested that my web page looked out of balance. That is why I tried to right align the table. It worked in Firefox. However, it does not work in Internet Explorer. As you should see the table with the text is left aligned and not underneath the heading. However, in Firefox it looks better. Do you know if I could add some html to make it look more balanced in Internet Explorer like it does in Firefox?

Your help is appreciated
Regards Richard.

Answer
Hello - the heading is outside the table.  Add a row to the top of your table and copy and paste all the heading within that row, the it will be aligned with the rest of the page.

<body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" alink="#ff0000" link="#0000ff" vlink="#800080">
<center><img src="http://www.advantagein.com/blul.gif" alt="inventors societies or clubs for inventing and inventions" border="0" height="10" width="600"></center>
<center><font color="#000000"><font face="Arial " size="+3">How to obtain a more cost
affective energy <br>
generator than the ones that are widely sold</font></font>
</center>
<br>
<center><font color="#000000"><font face="Arial " size="+2">Information on free energy or
overunity inventions</font></font>
</center>
<font color="#663366"> </font>
<center><font face="ARIAL " size="+1">The Main Page</font>
<font face="Arial " size="-1"><a href="http://www.advantagein.com">has much
more than just Information on free energy or overunity inventions and
generators.
</a></font></center>
<p><font face="Arial, Helvetica"><font color="#000000"><font size="3">

THIS IS THE IMAGE - THIS IS ALSO NOT WITHIN THE TABLE.

<img src="conspiracyp.gif" alt="Supressed inventions and inventors" align="right" border="0" height="145" width="217">


THIS IS THE BEGINNING OF THE TABLE

60% is 60% of the viewing screen, so on my large screen the text is very narrow and left aligned.  CENTER THE TABLE

         <table border="0" align="center">


<table style="width: 60%; text-align: left; margin-left: auto; margin-right: 0px;">
<tbody>
<tr>
<td>
<font face="Arial " size="3">There are many
claims of energy generation systems that are supposed to be much more
cost affective than the ones widely known. Some of them have been
suppressed by those with vested interests in current technology. We
could encourage people to research these systems.<br>
<br>


For more details on working with code go to...  http://www.w3schools.com/

Nancy

General HTML/Web Design Programming Q`s

All Answers


Answers by Expert:


Ask Experts

Volunteer


Nancy Janyszeski

Expertise

I can help with basic HTML questions and web development concepts. I do not write JavaScript, but can help with the concept of using and where to find it.

Experience

Experience in the area.I am Microsoft Office User Specialist (MOUS) Master Certified and was certified as a MOUS Authorized Instructor. Instructional design and test writer for Skills Advantage LLC, http://skillsadv.com/, Test Publisher and E-learning Solutions Provider

Publications
Courseware, intro and advanced HTML

Education/Credentials
Microsoft MOUS certified, ICDL certified

Past/Present Clients
Vocational Schools

©2016 About.com. All rights reserved.