[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

I want to align all the paragraphs to be the same width and height.

Asked by Melfeky in Hypertext Markup Language (HTML)

Tags: objcheck, set, switchdiv

Hello all experts,
I have a page with check boxes in it that when checked a paragraph is opened below it, what i want is to align all the 4 paragraph together so they are all have the same width and hieght.
Would someone tell me how to do this?
Thanks
Here is the code of the page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Our Customers </TITLE>
<script language="JavaScript">
<!--
//=======================================================
     //detect browser settings for showing and hiding DIVs
     isNS4 = (document.layers) ? true : false;
     isIE4 = (document.all && !document.getElementById) ? true : false;
     isIE5 = (document.all && document.getElementById) ? true : false;
     isNS6 = (!document.all && document.getElementById) ? true : false;
//=======================================================

function switchDiv(strDivName,bolVisible){
 //identify the element based on browser type
 if (isNS4) {
   objElement = document.layers[strDivName];
 } else if (isIE4) {
   objElement = document.all[strDivName].style;
 } else if (isIE5 || isNS6) {
   objElement = document.getElementById(strDivName).style;
 }
 
 if(isNS4){
     if(!bolVisible) {
       objElement.visibility ="hidden"
     } else {
       objElement.visibility ="visible"
     }    
 }else if(isIE4){
     if(!bolVisible) {
       objElement.visibility = "hidden";
     } else {
       objElement.visibility = "visible";
     }
 } else if (isIE5 || isNS6) {
      if(!bolVisible){
         objElement.visibility = "hidden";
      } else {
        objElement.visibility = "visible";
        }
      }
}


function toggleDetails(objCheck,strDivName){
     var objTableCell = document.getElementById('tdDetails');
     if(objCheck.checked){
          switchDiv(strDivName,true)
     }else{
          switchDiv(strDivName,false)
     }
}

//-->
</script>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">

<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<link rel="stylesheet" href="diet.css" type="text/css">
<link rel="stylesheet" href="ver.css" type="text/css">
<link rel="stylesheet" href="diet.css" type="text/css">
<STYLE type="text/css">
    BODY {scrollbar-3dlight-color:#666666;
           scrollbar-arrow-color:#666666;
           scrollbar-base-color:#666666;
           scrollbar-track-color:#ECECD9;
           scrollbar-darkshadow-color:#999999;
           scrollbar-face-color:#ECECD9;
           scrollbar-highlight-color:#fffff;
           scrollbar-shadow-color:#666666}
  </STYLE>

<BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" link="#666666" onLoad ="switchDiv('tdDetails1',false);switchDiv('tdDetails2',false);switchDiv('tdDetails3',false);switchDiv('tdDetails4',false)">

<table width="766" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="766" height="15"></td>
  </tr>
  <tr>
    <td valign="top" height="205">
      <table width="75%" border="0">
        <tr>
          <td width="1" height="16"></td>
          <td width="259"></td>
          <td width="51"></td>
          <td width="3"></td>
          <td width="18"></td>
          <td width="210" rowspan="2"><img src="gsl_logo.gif" width="147" height="68"></td>
          <td width="4"></td>
        </tr>
        <tr>
          <td colspan="2" height="52" valign="top" bgcolor="#3366CC"><img src="bravnetlogo.gif" width="263" height="50"></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
        </tr>
        <tr>
          <td colspan="5" height="22">
            <input type="checkbox" name="checkbox" value="checkbox" onClick ="toggleDetails(this,'tdDetails1')">
            <font color="#CC0000"><b>Click for more details.</b></font> </td>
          <td>
            <input type="checkbox" name="checkbox2" value="checkbox" onClick ="toggleDetails(this,'tdDetails2')">
            <font color="#CC0000"><b>Click for more details.</b></font> </td>
          <td></td>
        </tr>
        <tr>
          <td height="68"></td>
          <td valign="top" id = "tdDetails1" colspan="2"><font color="#666666" size="1">When
            people click for more details, I&#146;d like this paragraph description
            to open under the <b>one for more details</b>. Also in the paragraph
            there would be a &#147;X&#148; button click to close paragraph .</font></td>
          <td></td>
          <td></td>
          <td colspan="2" valign="top" id = "tdDetails2"><font color="#666666" size="1">When
            people click for more details, I&#146;d like this paragraph description
            to open under the <b>two for more details</b>. Also in the paragraph
            there would be a &#147;X&#148; button click to close paragraph .</font></td>
        </tr>
        <tr>
          <td height="60" colspan="5" valign="top"><img src="focus_logo.gif" width="140" height="40"></td>
          <td valign="top"><img src="logo2.gif" width="60" height="58"></td>
          <td></td>
        </tr>
        <tr>
          <td height="22" colspan="5" valign="top">
            <input type="checkbox" name="checkbox3" value="checkbox" onClick ="toggleDetails(this,'tdDetails3')">
            <font color="#CC0000"><b>Click for more details.</b></font> </td>
          <td valign="top">
            <input type="checkbox" name="checkbox4" value="checkbox" onClick ="toggleDetails(this,'tdDetails4')">
            <font color="#CC0000"><b>Click for more details.</b></font> </td>
          <td></td>
        </tr>
        <tr>
          <td height="92" colspan="4" valign="top" id = "tdDetails3"><font size="1" color="#999999">When
            people click for more details, I&#146;d like this paragraph description
            to open under the <b>three for more details</b>. Also in the paragraph
            there would be a &#147;X&#148; button click to close paragraph .</font></td>
          <td></td>
          <td valign="top" id = "tdDetails4"><font size="1" color="#999999">When
            people click for more details, I&#146;d like this description to open
            under the <b>four for more details</b>. Also in the paragraph there
            would be a &#147;X&#148; button click to close paragraph .</font></td>
          <td></td>
        </tr>
        <tr>
          <td height="65"></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</BODY>
</HTML>
 
Loading Advertisement...
 
[+][-]02/09/05 02:17 AM, ID: 13262324Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Hypertext Markup Language (HTML)
Tags: objcheck, set, switchdiv
Sign Up Now!
Solution Provided By: Roonaan
Participating Experts: 3
Solution Grade: A
 
[+][-]02/08/05 03:29 PM, ID: 13259872Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/08/05 03:44 PM, ID: 13259950Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/08/05 06:03 PM, ID: 13260567Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02/08/05 06:05 PM, ID: 13260570Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/08/05 06:18 PM, ID: 13260610Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/08/05 06:23 PM, ID: 13260633Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/10/05 06:07 AM, ID: 13275192Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/10/05 06:26 AM, ID: 13275396Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93