• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

text alignment in tables

Explorer ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

Specifically/currently, i have a table heading (in merged cells acorss 3 columns in a single row) that is set for center alignment, but when i preview it or out put, it shifts to the left and shifts the text to 2 lines instead of one as if the cells aren't merged.I checked the HTML coding, andit looks fine (says that alignment is center).

Why is this happening.. and no, the tables wasn't imported. The table was created in RH.

HELP AND THANKS!

kb

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Jul 24, 2006 Jul 24, 2006
Looks like it may be an issue with the fixed width of the column...

Go to the true code and try removing the attribute 'width: 85.1pt;'
This attribute is part of the tag <td colspan=3..........................

Does that fix the problem?

Votes

Translate

Translate
Community Expert ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

Try changing the heading to normal style or something else. Does that make a difference? If it does, it suggests there is something in the style definition that is overriding things.

Try creating a new topic and using one of the supplied stylesheets. Create a similar table and see if that has the same problem.

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

Hi kb. Does the same behaviour occur if you cut and paste the table into another topic? If so, try changing the style to normal.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

ok, here is the latest...

i tried chancing the heading style to "normal" in the style sheet... no difference... it still won't align center in the preview.

and yes, I have the table set up in a separate topic (since this problem began) so i can play with it and see the true code on its own without worrying about surrounding text, etc... and no luck there... :-(

the other thing.. i'm not sure if this matters.. but it might... there are 2 heading rows in this table. The text with the problem is the top heaading row. The text in the row below it aligns fine. go figure...

i have noticed this now in ALL my tables... it isn't just this one.... both heading rows use the same style as well.

any new ideas?

THANKS for what you've suggested so far!

kb

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

Hi Kb,

any chance of pasting the code for us to look at?
Just the <table> tag code will do

thanks
Craig

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

In RH HTML there is no menu option to define header rows. Presumably therefore you have added you own HTML?
Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

ok... this is weird but there is no <table> doesn't appear.. but there is a <\table>!

here's the code... on this page there is only a table.. not topic title or anything...the table is long so i have to break up the code bewtween responises here's part 1 and it has the header code in it.

<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">

<html>

<!--(==============================================================)-->
<!--(Document created with RoboEditor. )============================-->
<!--(==============================================================)-->

<head>

<title>FEATURE/DIRECTORY NO LOOKUP TABLE ONLY</title>

<!--(Meta)==========================================================-->

<meta http-equiv=content-type content="text/html; charset=windows-1252">
<meta name=generator content="RoboHELP by eHelp Corporation - www.ehelp.com">
<meta name=generator-major-version content=0.1>
<meta name=generator-minor-version content=1>
<meta name=filetype content=kadov>
<meta name=filetype-version content=1>
<meta name=page-count content=1>
<meta name=layout-height content=516>
<meta name=layout-width content=689>


<!--(Links)=========================================================-->

<link rel="StyleSheet" href="DX-120 help.css">



</head>

<!--(Body)==========================================================-->


<body>

<!--(Table)=========================================================-->
<!--begin!kadov{{--><div align=center><!--}}end!kadov-->
<table x-use-null-cells
style="padding-left: 6.00pt;
padding-top: 4.00pt;
padding-right: 6.00pt;
padding-bottom: 2.00pt;
margin-bottom: 2.00pt;
margin-right: 7.74pt;
border-left-style: Solid;
border-left-width: 4px;
border-right-style: Solid;
border-right-width: 4px;
border-top-style: Solid;
border-top-width: 4px;
border-bottom-style: Solid;
border-bottom-width: 4px;
border-left-color: #0a2d84;
border-right-color: #0a2d84;
border-top-color: #0a2d84;
border-bottom-color: #0a2d84;
x-cell-content-align: Center;
left: 85px;
top: 554px;
width: 465px;
height: 424px;
float: aligncenter;
border-spacing: 0px;
border-spacing: 0px;"
cellspacing=0
height=424
width=465>
<col>
<col style="width: 145.4pt;">
<col style="width: 80pt;">

<tr style="x-cell-content-align: center;
background-color: #e6e6e6;
height: 20px;"
valign=middle
bgcolor=#E6E6E6>
<td colspan=3
rowspan=1
style="width: 85.1pt;
background-color: #0a2d84;
border-left-width: 1px;
border-left-style: Solid;
border-left-color: #0a2d84;
border-right-width: 1px;
border-right-color: #0a2d84;
border-right-style: solid;
border-bottom-width: 1px;
border-bottom-color: #0a2d84;
border-bottom-style: solid;
border-top-width: 1px;
border-top-color: #0a2d84;
border-top-style: solid;"
bgcolor=#0A2D84
width=85.1pt>
<p class=TABLEheading
style="text-align: center;"
align=center>DIRECTORY NUMBERS</td>
<td_null>
<td_null></tr>

<tr style="x-cell-content-align: center;
background-color: #e6e6e6;
height: 20px;"
valign=middle
bgcolor=#E6E6E6>
<td style="width: 85.1pt;
background-color: #0a2d84;
border-left-color: #0a2d84;
border-left-style: Solid;
border-left-width: 1px;
border-right-style: solid;
border-right-color: #0a2d84;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #0a2d84;
border-bottom-width: 1px;"
bgcolor=#0A2D84
width=85.1pt>
<p class=TABLEheading><!--kadov_tag{{<spaces>}}-->    <!--kadov_tag{{</spaces>}}-->Feature<a
name=IX_Directory_Numbers></a><a name=IX_numbers_directory></a></td>
<td style="width: 193px;
background-color: #0a2d84;
border-right-style: solid;
border-right-color: #0a2d84;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #0a2d84;
border-bottom-width: 1px;"
bgcolor=#0A2D84
width=193px>
<p class=TABLEheading> </td>
<td style="width: 106px;
background-color: #0a2d84;
border-right-style: solid;
border-right-color: #0a2d84;
border-right-width: 1px;
border-bottom-style: solid;
border-bottom-color: #0a2d84;
border-bottom-width: 1px;"
bgcolor=#0A2D84
width=106px>
<p class=TABLEheading>Directory <br>
Numbers</td></tr>

<tr style="x-cell-content-align: center; height: 47px;"
valign=middle>
<td rowspan=2
style="width: 85.1pt;
border-left-color: #0a2d84;
border-left-style: Solid;
border-left-width: 1px;
border-right-style: Solid;
border-right-color: 'VERTICAL DK BLUE';
border-right-width: 1px;
border-bottom-style: Solid;
border-bottom-color: 'VERTICAL DK BLUE';
border-bottom-width: 1px;"
width=85.1pt>


THANKS!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

here's part 2:

p class=tableitem
style="font-weight: bold; margin-left: 12px;">Co <!--kadov_tag{{<ignored>}}-->gp<!--kadov_tag{{</ignored>}}-->
<br>
(CO line group)</td>
<td style="width: 193px;
border-right-style: Solid;
border-right-color: 'VERTICAL DK BLUE';
border-right-width: 1px;
border-bottom-color: 'VERTICAL DK BLUE';
border-bottom-style: solid;
border-bottom-width: 1px;"
width=193px>
<p class=tableitem
style="margin-left: 12px;">1</td>
<td style="width: 106px;
border-right-style: Solid;
border-right-color: 'VERTICAL DK BLUE';
border-right-width: 1px;
border-bottom-color: 'VERTICAL DK BLUE';
border-bottom-style: solid;
border-bottom-width: 1px;"
width=106px>
<p class=tableitem
style="margin-left: 12px; text-align: center;"
align=center>9</td></tr>

<tr style="x-cell-content-align: center; height: 25px;"
valign=middle>
<td_null>
<td style="width: 193px;
border-right-style: Solid;
border-right-color: 'VERTICAL DK BLUE';
border-bottom-style: Solid;
border-bottom-color: 'VERTICAL DK BLUE';
border-right-width: 1px;
border-bottom-width: 1px;"
width=193px>
<p class=tableitem
style="margin-left: 12px;">2~8</td>
<td style="width: 106px;
border-right-style: Solid;
border-right-color: 'VERTICAL DK BLUE';
border-bottom-style: Solid;
border-bottom-color: 'VERTICAL DK BLUE';
border-right-width: 1px;
border-bottom-width: 1px;"
width=106px>
<p class=tableitem
style="margin-left: 12px; text-align: center;"
align=center>740~746</td></tr>

<tr style="x-cell-content-align: center; height: 23px;"
valign=middle>
<td rowspan=4
style="background-color: #a9d2f1;
border-left-color: #0a2d84;
border-left-style: Solid;
border-right-style: Solid;
border-right-color: 'VERTICAL DK BLUE';
border-bottom-style: Solid;
border-bottom-color: 'VERTICAL DK BLUE';
border-right-width: 1px;
border-left-width: 1px;
border-bottom-width: 1px;
width: 85.1pt;"
bgcolor=#A9D2F1
width=85.1pt>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

this table is so long that it will take forever to get this all posted.. do you have enough? or i can send it to you offlist...

sorry... and thanks...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

sorry, Peter... OF COURSE.. you are right.. there is no option to set up header rows.. DUH... so i guess that part doesn't matter..

and no.. i'm not bright enough to set something up in HTML! :-/

so it is simply that i forgot that when i created this table weeks ago that it didn't require/allow for specific header rows.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

Looks like it may be an issue with the fixed width of the column...

Go to the true code and try removing the attribute 'width: 85.1pt;'
This attribute is part of the tag <td colspan=3..........................

Does that fix the problem?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 24, 2006 Jul 24, 2006

Copy link to clipboard

Copied

LATEST
you are a genius!

hopefully, i can find the same spot in the same place of every table and fix this! THANKS, CRAIG!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp