Margins and spacing messed up with Chrome and IE

I have an issue that has just recently come to my attention. We have a report that clients can view. Works perfectly fine in Firefox because that’s what we use to test normally. Well we’ve had 2 isolated incidents of where a client loaded it in chrome or ie and the margins and spacing are completely messed up.

Here is a photo…chrome on left, firefox on right…it is suppose to look just like it does in firefox.

Imgur

i can look at 50 different reports by the same people and all are fine except for this 1…well now its 2 but i’m totally lost as to what caused this. Like the only thing i can thing of is it is in the data and for some reason something in the data is actually messing with the settings, but i havent seen anything that would cause it. is there any special characters that ie would recognize that firefox just skips over… also…if you need me to post code i can…but its long. I’ve set widths of table cells and of tale for these specific pages ignore the widths. All the reports work fine in chrome/firefox/ie except for these 2. Thanks for any help or advice.

Hello eddywhitaker, welcome to Sitepoint :).

WHile you have given us a view of what exactly is wrong and how it should look, this does little for us due to the fact we have no code to work with. If you wrap your code in [noparse]


[/noparse] tags, that can make it easier for us.

What would actually be even nicier is giving us a reduced test case, minimalized HTML version, just enough so we can get to the problem (same with CSS if you can manage it, if not, don’t worry)

ok…i really am not sure of a way to reduce it as this was an existing page made before i was hired, so i dont even know where the problem is

i did limit it the the part that i think seems to cause the problem, at least the part that is messed up in the image i sent

this doesnt show any changes i have made…this is just what the original was, so even though for every cell i went in and set widths, as i said in OP, it didnt affect it so i went with original code

here is the reports.aspx.cs page

 

    private void loanDetails()
    {
        Table table = new Table();
        table.Width = Unit.Percentage(100);
        table.CellPadding = 5;

        foreach (DataRow dr in ds.Tables[2].Rows)
        {
            TableRow tr = new TableRow();
            if (dr["risk_rating"] != DBNull.Value && Convert.ToInt32(dr["risk_rating"]) == 3)
                tr.ID = "badLoan";
            else if (dr["risk_rating"] != DBNull.Value && Convert.ToInt32(dr["risk_rating"]) == 4)
                tr.ID = "badLoan4";

            TableCell tc = new TableCell();
            tc.Style["padding-top"] = "50px";
            tc.Text = "Loan Count";
            tc.CssClass = "description";
            tr.Cells.Add(tc);

            tc = new TableCell();
            tc.Text = dr["#"].ToString();
            tc.Style["padding-top"] = "50px";
            tc.ColumnSpan = 3;
            tr.Cells.Add(tc);
            table.Rows.Add(tr);

            tr = new TableRow();
            tr.ID = dr["id"].ToString();
            tc = new TableCell();
            tc.Text = "Borrower(s)";
            tc.CssClass = "description";
            tr.Cells.Add(tc);

            tc = new TableCell();
            tc.Text = dr["last_name"].ToString().ToUpper() + ", " + dr["first_name"].ToString().ToUpper();
            tc.ColumnSpan = 3;
            tr.Cells.Add(tc);
            table.Rows.Add(tr);

            //this information should not display if the file is denied
            if (!Convert.ToBoolean(dr["loan_denied"]))
            {
                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Property Address";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.ColumnSpan = 3;
                tc.Text = dr["property_address"].ToString().ToUpper() + "<br />" + dr["property_city"].ToString().ToUpper() +
                    ", " + dr["property_state"].ToString().ToUpper() + " " + dr["property_zip"].ToString().ToUpper();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Branch/TPO";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.ColumnSpan = 3;
                tc.Text = dr["branch_tpo"].ToString().ToUpper();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Loan/Case #";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["loan_number"].ToString() + " / " + dr["fha_va_conv_case_nbr"].ToString();
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "LTV/CLTV";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["appraised_value_ltv_perc"].ToString().ToUpper() + " / " +
                    dr["cltv_perc"].ToString().ToUpper() + "%";
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Loan Type/Amount";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["loan_type"].ToString() +
                    (dr["loan_amount"] != DBNull.Value ? "/" + Convert.ToDecimal(dr["loan_amount"]).ToString("c") : string.Empty);
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Pur/Refi";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["loan_purpose"].ToString().ToUpper();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "First Time H/O (Y/N)";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["first_time_homebuyer_yn"].ToString().ToUpper();
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Rate";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["ir_perc"].ToString();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Loan Originator";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["loan_originator"].ToString().ToUpper();
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Loan Processor";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["loan_processor"].ToString().ToUpper();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Credit Rating";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["credit_scores_file"].ToString();
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "QC";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["credit_scores_qc"].ToString().ToUpper();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Ratios";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["credit_analysis_ratios_file"].ToString().ToUpper() + "% / " +
                    dr["credit_analysis_ratios_file_perc"].ToString().ToUpper() + "%";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "QC";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["Credit_Analysis_Ratios_QC"].ToString().ToUpper() + "% / " +
                    dr["Credit_Analysis_Ratios_QC_Perc"].ToString().ToUpper() + "%";
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Underwriter Type";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["underwriter_type"].ToString().ToUpper();
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Stated Income";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["stated"].ToString().ToUpper();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Income/Assets";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["income_assets"].ToString().ToUpper();
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Underwriter";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["underwriter_name"].ToString().ToUpper();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "APR Calculation File";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["apr_file"].ToString();
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "QC";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["apr_qc"].ToString();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Appraiser";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["appraiser"].ToString().ToUpper();
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Value";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["appraised_value"].ToString().ToUpper();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Appraiser Company";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["company_name"].ToString();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Appraisal Review Type";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = Convert.ToBoolean(dr["Field_Review"]) ? "FRA" : "Desk Review";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Appraisal Rating";
                if (Request.QueryString["edit"] == null)
                    tc.Text = "Appraisal Rating";
                else
                    tc.Text = "<a href=\\"tabbed/auditing.aspx?id=" + dr["id"].ToString() + "&oid=" + Request.QueryString["id"] + "&tab=6\\">Appraisal Rating</a>";
                tr.Cells.Add(tc);

                tc = new TableCell();
                //if (dr["avg"] != DBNull.Value && Convert.ToDouble(dr["avg"]) <= 2.5)
                //{
                //    tc.Text = Convert.ToDouble(dr["avg"]).ToString("f");
                //    tc.Font.Bold = true;
                //    tc.ForeColor = Color.Red;
                //}
                //else if (dr["avg"] != DBNull.Value)
                //    tc.Text = Convert.ToDouble(dr["avg"]).ToString("f");
                //else
                tc.Text = dr["Appraisal_rating"].ToString();

                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Real Estate Company";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["re_co"].ToString().ToUpper();
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Real Estate Agent";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["re_agent"].ToString().ToUpper();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Closing Agent/Escrow Company";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.ColumnSpan = 3;
                tc.Text = dr["closing_agent"].ToString().ToUpper();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Date Closed/Funded";
                tr.Cells.Add(tc);

                tc = new TableCell();
                if (dr["HUD1_Closing_Date"] != DBNull.Value)
                    tc.Text = Convert.ToDateTime(dr["HUD1_Closing_Date"]).ToString("MM/dd/yyyy");
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Disbursement Date";
                tr.Cells.Add(tc);

                tc = new TableCell();
                if (dr["disb_dte"] != DBNull.Value)
                    tc.Text = Convert.ToDateTime(dr["disb_dte"]).ToString("MM/dd/yyyy");
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.CssClass = "description";
                if (Request.QueryString["edit"] == null)
                    tc.Text = "Risk/Satisfactory Rating";
                else
                    tc.Text = "<a href=\\"tabbed/auditing.aspx?id=" + dr["id"].ToString() + "&oid=" + Request.QueryString["id"] + "&tab=7\\">Risk/Satisfactory Rating</a>";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["risk_rating"].ToString() + " / " + dr["satisfactory_risk"].ToString().ToUpper();
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.CssClass = "description";
                tc.Text = "Investor";
                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.Text = dr["investor_name"].ToString().ToUpper();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);
            }

            string rowFilter = "prnt_id = " + dr["id"].ToString();
            DataView dv = new DataView(ds.Tables[5], rowFilter, string.Empty, DataViewRowState.OriginalRows);

            //makes sure there are findings available
            if (dv.Count > 0)
            {
                tr = new TableRow();
                tc = new TableCell();
                tc.ColumnSpan = 4;
                tc.CssClass = "title";
                tc.Text = "Findings";
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                for (int i = 0; i < dv.Count; i++)
                {
                    tr = new TableRow();
                    tc = new TableCell();
                    tc.CssClass = "description";
                    tc.VerticalAlign = VerticalAlign.Top;
                    if (Request.QueryString["edit"] == null)
                        tc.Text = dv[i]["description"].ToString();
                    else
                    {
                        tc.Text = "<a href=\\"editFinding.aspx?id=" + dv[i]["findID"].ToString() + "&oid=" + Request.QueryString["id"]
                            + "&aid=" + dr["id"].ToString() + "&edit=1\\">" + dv[i]["description"].ToString() + "</a>";
                    }
                    tr.Cells.Add(tc);

                    tc = new TableCell();
                    tc.ColumnSpan = 3;
                    tc.Text = dv[i]["FullDescription"].ToString().Replace("\
", "<br />");
                    tr.Cells.Add(tc);
                    table.Rows.Add(tr);

                    //only available if displaying the response management report
                    if (Request.QueryString["mgm"] != null)
                    {
                        tr = new TableRow();
                        tc = new TableCell();
                        tc.CssClass = "description";
                        tc.Text = "Management Response";
                        tr.Cells.Add(tc);

                        tc = new TableCell();
                        tc.Text = dv[i]["ManagementResponse"].ToString();
                        tr.Cells.Add(tc);
                        table.Rows.Add(tr);

                        tr = new TableRow();
                        tc = new TableCell();
                        tc.CssClass = "description";
                        tc.Text = "Responding Manager";
                        tr.Cells.Add(tc);

                        tc = new TableCell();
                        tc.Text = dv[i]["RespondingManager"].ToString();
                        tr.Cells.Add(tc);
                        table.Rows.Add(tr);

                        tr = new TableRow();
                        tc = new TableCell();
                        tc.CssClass = "description";
                        tc.Text = "Action Taken";
                        tr.Cells.Add(tc);

                        tc = new TableCell();
                        tc.Text = dv[i]["ActionTaken"].ToString();
                        tr.Cells.Add(tc);
                        table.Rows.Add(tr);
                    }
                }
            }

            //auditor is being reviewed by auditor
            if (Request.QueryString["reviewed"] != null)
            {
                rowFilter = "audit_id = " + dr["id"].ToString();
                dv = new DataView(ds.Tables[12], rowFilter, string.Empty, DataViewRowState.OriginalRows);

                //makes sure there are deleted findings available
                if (dv.Count > 0)
                {
                    tr = new TableRow();
                    tc = new TableCell();
                    tc.ColumnSpan = 4;
                    tc.CssClass = "title";
                    tc.Text = "Deleted Findings";
                    tr.Cells.Add(tc);
                    table.Rows.Add(tr);

                    for (int i = 0; i < dv.Count; i++)
                    {
                        tr = new TableRow();
                        tc = new TableCell();
                        tc.CssClass = "description";
                        tc.VerticalAlign = VerticalAlign.Top;
                        tc.Text = dv[i]["description"].ToString();
                        tr.Cells.Add(tc);

                        tc = new TableCell();
                        tc.ColumnSpan = 3;
                        tc.Text = dv[i]["FullDescription"].ToString().Replace("\
", "<br />");
                        tr.Cells.Add(tc);
                        table.Rows.Add(tr);
                    }
                }
            }


            rowFilter = "prnt_id = " + dr["id"].ToString();
            dv = new DataView(ds.Tables[6], rowFilter, string.Empty, DataViewRowState.OriginalRows);

            //makes sure there are red flags available
            if (dv.Count > 0)
            {
                tr = new TableRow();
                tc = new TableCell();
                tc.ColumnSpan = 4;
                tc.CssClass = "title";
                tc.Text = "Red Flags";
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                for (int i = 0; i < dv.Count; i++)
                {
                    tr = new TableRow();
                    tc = new TableCell();
                    tc.ColumnSpan = 4;
                    tc.Text = dv[i]["Flag_Description"].ToString();
                    tr.Cells.Add(tc);
                    table.Rows.Add(tr);
                }
            }

            rowFilter = "prnt_id = " + dr["id"].ToString();
            dv = new DataView(ds.Tables[7], rowFilter, string.Empty, DataViewRowState.OriginalRows);

            //makes sure there are comments available
            if (dv.Count > 0)
            {
                tr = new TableRow();
                tc = new TableCell();
                tc.ColumnSpan = 4;
                tc.CssClass = "title";
                tc.Text = "Comments";
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                for (int i = 0; i < dv.Count; i++)
                {
                    tr = new TableRow();
                    tc = new TableCell();
                    tc.ColumnSpan = 4;
                    if (Request.QueryString["edit"] == null)
                        tc.Text = dv[i]["fulldescription"].ToString();
                    else
                    {
                        tc.Text = "<a href=\\"editComment.aspx?id=" + dv[i]["id"].ToString() + "&oid=" + Request.QueryString["id"]
                            + "&aid=" + dr["id"].ToString() + "&edit=1\\">" + dv[i]["fulldescription"].ToString() + "</a>";
                    }
                    tr.Cells.Add(tc);
                    table.Rows.Add(tr);
                }
            }

            rowFilter = "audit_id = " + dr["id"].ToString();
            dv = new DataView(ds.Tables[8], rowFilter, string.Empty, DataViewRowState.OriginalRows);

            //makes sure there are adverse appraisal questions available
            if (dv.Count > 0)
            {
                tr = new TableRow();
                tc = new TableCell();
                tc.ColumnSpan = 4;
                tc.CssClass = "title";
                tc.Text = "Federal Regulatory Audit";
                tr.Cells.Add(tc);
                table.Rows.Add(tr);
                string category = string.Empty;

                for (int i = 0; i < dv.Count; i++)
                {
                    if (category == string.Empty || category != dv[i]["category"].ToString())
                    {
                        category = dv[i]["category"].ToString();
                        tr = new TableRow();
                        tc = new TableCell();
                        tc.Text = category;
                        tc.CssClass = "description";
                        tc.ColumnSpan = 4;
                        tr.Cells.Add(tc);
                        table.Rows.Add(tr);
                    }

                    tr = new TableRow();
                    tc = new TableCell();
                    tc.ColumnSpan = 4;
                    tc.Text = dv[i]["statement"].ToString() + "<br /> Answer: " + dv[i]["answer"].ToString() + "<br /> Rating: " +
                        (Convert.ToDouble(dv[i]["risk_rating"]) <= 2.5 ? "<span class=\\"adverse\\">" + dv[i]["risk_rating"].ToString() + "</span>"
                        : dv[i]["risk_rating"].ToString());
                    tr.Cells.Add(tc);
                    table.Rows.Add(tr);
                }
            }

            rowFilter = "audit_id = " + dr["id"].ToString();
            dv = new DataView(ds.Tables[9], rowFilter, string.Empty, DataViewRowState.OriginalRows);

            //makes sure there are adverse appraisal questions available
            if (dv.Count > 0)
            {
                tr = new TableRow();
                tc = new TableCell();
                tc.ColumnSpan = 4;
                tc.CssClass = "title";
                tc.Text = "Desk Review";
                tr.Cells.Add(tc);
                table.Rows.Add(tr);
                string category = string.Empty;

                for (int i = 0; i < dv.Count; i++)
                {
                    if (category == string.Empty || category != dv[i]["category"].ToString())
                    {
                        category = dv[i]["category"].ToString();
                        tr = new TableRow();
                        tc = new TableCell();
                        tc.Text = category;
                        tc.CssClass = "description";
                        tc.ColumnSpan = 4;
                        tr.Cells.Add(tc);
                        table.Rows.Add(tr);
                    }

                    tr = new TableRow();
                    tc = new TableCell();
                    tc.ColumnSpan = 4;
                    tc.Text = dv[i]["statement"].ToString() + "<br /> Answer: " + dv[i]["answer"].ToString() + "<br /> Rating: " +
                        (Convert.ToDouble(dv[i]["risk_rating"]) <= 2.5 ? "<span class=\\"adverse\\">" + dv[i]["risk_rating"].ToString() + "</span>"
                        : dv[i]["risk_rating"].ToString());
                    tr.Cells.Add(tc);
                    table.Rows.Add(tr);
                }
            }

            rowFilter = "audit_r_id = " + dr["id"].ToString();
            dv = new DataView(ds.Tables[13], rowFilter, string.Empty, DataViewRowState.OriginalRows);

            //denial audit
            if (dv.Count > 0)
            {
                tr = new TableRow();
                tc = new TableCell();
                tc.ColumnSpan = 4;
                tc.CssClass = "title";
                tc.Text = "Denial Audit";
                tr.Cells.Add(tc);
                table.Rows.Add(tr);
                string category = string.Empty;

                for (int i = 0; i < dv.Count; i++)
                {
                    if (category == string.Empty || category != dv[i]["category"].ToString())
                    {
                        category = dv[i]["category"].ToString();
                        tr = new TableRow();
                        tc = new TableCell();
                        tc.Text = category;
                        tc.CssClass = "description";
                        tc.ColumnSpan = 4;
                        tr.Cells.Add(tc);
                        table.Rows.Add(tr);
                    }

                    tr = new TableRow();
                    tc = new TableCell();
                    tc.ColumnSpan = 4;
                    tc.Text = dv[i]["statement"].ToString() + "<br />" + dv[i]["answer"].ToString();
                    tr.Cells.Add(tc);
                    table.Rows.Add(tr);
                }
            }

            rowFilter = "first_name = '" + dr["first_name"].ToSpecialString() + "' and last_name = '" + dr["last_name"].ToSpecialString() + "'";
            dv = new DataView(ds.Tables[11], rowFilter, string.Empty, DataViewRowState.OriginalRows);

            //comments from AMS for field review appraisals
            if (dv.Count > 0 && dv[0]["IAGCompliance"].ToString() != string.Empty)
            {
                tr = new TableRow();
                tc = new TableCell();
                tc.ColumnSpan = 4;
                tc.CssClass = "title";
                tc.Text = "Inner Agency Guidance Compliance";
                tr.Cells.Add(tc);
                table.Rows.Add(tr);

                tr = new TableRow();
                tc = new TableCell();
                tc.ColumnSpan = 1;
                tc.VerticalAlign = VerticalAlign.Top;
                tc.CssClass = "description";
                if (Request.QueryString["edit"] == null)
                    tc.Text = "Field Review Appraisal";
                else
                    tc.Text = "<a href=\\"IAGCompliance.aspx?id=" + dv[0]["id"].ToString() + "&oid=" + Request.QueryString["id"]
                            + "&aid=" + dr["id"].ToString() + "&edit=1\\">Field Review Appraisal</a>";

                tr.Cells.Add(tc);

                tc = new TableCell();
                tc.ColumnSpan = 4;
                tc.Text = dv[0]["IAGCompliance"].ToString();
                tr.Cells.Add(tc);
                table.Rows.Add(tr);
            }


            //add a page preak after each loan file
            table.Rows[table.Rows.Count - 1].CssClass = "breakAfter";
        }

        phLoanDetails.Controls.Add(table);
    }

and here is CSS sheet


body   
{
    font-size: .80em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    color: #454545;
}

h1
{
    font-size: 36pt;
    display: block;
    width: 500px;
    margin: 30px auto 50px auto;
}

h2
{
    font-size: 24pt;
    display: block;
    width: 500px;
    margin: 30px auto 50px auto;
}

h3
{
    font-size: 16pt;
    display: block;
    width: 500px;
    margin: 30px auto 50px auto;
}

p
{
    text-align: left;
    font-weight: normal;
    font-size: 10pt;
}

.loan
{
    margin-top: 30px;
    text-align: left;
}

.header
{
    width: 1200px;
    margin: 0 auto;
    text-align: center; 
}

.subheader
{
    font-weight: bold;
}

.title
{
    font-size: 16pt;
    font-weight: bold;
    color: #4b6c9e;
}

.description
{
    font-weight: bold;
    color: #4b6c9e;
    width: 20%;
}

.tbReport
{
    border-collapse:collapse;
    background-color: #F3F3F3;
    margin: 10px auto 0 auto;
    border: 1px solid black;
}

.tbReport caption
{
    font-weight:bold; 
    font-size:14pt;
    text-align: center;
}

.tbReport tr th
{
    color: White;
    font-weight:bold; 
    border: 1px solid black;
    padding: 5px;
}

.tbReport tr td
{
    text-transform : lowercase; 
    text-transform : capitalize; 
    border: 1px solid black;
    padding: 5px;
}

#lblPage
{
    font-weight: bold;
    font-size: 14pt;
    color: #f9f9f9;
    line-height: 2em;
    padding-right: 15px;
}

fieldset
{
    margin: 10px auto 0 auto;
    width: 530px;
    border: 1px solid #ccc;
}

.adverse
{
    font-weight: bold;
    color: Red;
}

@media print
{
    .noPrint  
    {
        display: none; 
        visibility: hidden;
        text-align: center;
    }
}

a:link, a:visited, a:hover, a:active
{
    color: inherit;
}

.breakBefore
{
    page-break-before: always;
}

.breakAfter
{
    page-break-after: always;
}

sorry for length

Sorry, could we get the rendered code that is displayed through the browser? The raw ASP.Net code does little for us :(.

what do you mean rendered code? … like what it looks like once it is displayed? i linked the image on the first post… in explorer…the margins get messed up …and its on the left…the pic on the right is firefox is displaying correctly…same id number for that report…so far…i have 2 id numbers that do this…but all the others seem to work fine…it makes me think its more of a data issue…but at same time…something in that data is causing explorer and chrome to freak out…i’m more of just trying to figure out why they are freaking out…and it might help me find the thing causing the whole problem, because when i look at the data in the db …it all looks fine and matches other reports that display correctly…but it might be something so small that i dont even realize it.

if you mean the aspx page…for this section…all there is, is a placeholder displaying the binded table…cuz everything was done in the code page and bound there

or why is firefox not freaking out

Hi, you may have given us the ASPX code, however if we try and copy paste that code into a notepad folder and save it, jsut to replicate the issue on our end, all we get to see is the ASPX crap. We need the HTML that comes from View-Source in the browser.

We can’t answer anything until we get either a link or the HTML code.

ok …i think i understand what you meant by view source now…problem is…i would have to edit that …because i cannot give the information that is there a it is sensitive information, but i think i have found the problem when i was going through that but will not be able to make changes til the other programmer gets back…so…i’m not 100% yet…but i think that helped out a good bit…thanks…i will update this when he gets back and let you know if that worked

Ok, we will wait and see if that is indeed the issue.

If not, we will need that source code. Feel free to edit out any content/text that pertains to sensitive information :).

ok…problem i believe is hyperlinks are crazy long in one section…and firefox handles wrapping them easily (i think) …but ie and chrome dont…maybe…so…anyway to fix that?..maybe in css file

You could make them not wrap, as such, set this on the anchor :).

white-space: nowrap;

that kinda gave the opposite effect…i want it to wrap sooner…not later… sorry

Oh, I read that wrong :(.

If your hyperlinks are all one long word without spaces in them, you could try word-wrap:break-word; instead.

well the thing is they do have spaces in them… i’m trying to figure out how to explain this properly haha…i didnt design this…and its not the way i would have done this…ok say I want to enter a comment…i got to the edit comment page for that specific id…and the field looks a bit like this one big text box…

i can enter spaces and enters and all that…but when the i view it in the report…it all is together…as if only a space a happened

so it would look like this in the report,( sorry for the double post )

“well the thing is they do have spaces in them… i’m trying to figure out how to explain this properly haha…i didnt design this…and its not the way i would have done this…ok say I want to enter a comment…i got to the edit comment page for that specific id…and the field looks a bit like this one big text box…i can enter spaces and enters and all that…but when the i view it in the report…it all is together…as if only a space a happened”

which i dont mind…except in IE …i have a set width to work in…and its ignoring it

also…the word-wrap didnt work…visual studio is giving me a warning that it doesnt recognize it

From what yo udescribed, CSS can’t make it have breaks when needed.

It would be up to Javascript or PHP to force linebreaks, depending on the option you choose.

what about instead of a hyperlink…its was just a long string of txt …like a long hyperlink…but without the actualy being hyperlink
dkoeokdokdokeokdekodekodkodekoedkodeokdeokededkoedkoedkodeokdeokedok << like that…but it behaves linke normal text and not a hyperlink. is there a way to break it?

[URL=“http://www.visibilityinherit.com/code/wrap-text.php”]http://www.visibilityinherit.com/code/wrap-text.php

This page will answer everything you have to ask :).

haha…one would think…still having trouble…trying to avoid any js/php unless i have to…most of those examples i cant use cuz they involve knowing whats going in before hand…i wont know whats going in…could be long or short…know of any way without js or php…sorry.just not really good with either those…prefer to stick with stuff i know…still doing research on this.but if nothing by noon tomorrow…then i will go the JS option…thanks for all the help