Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ALIGNMENT OF HEADINGS

Status
Not open for further replies.

hphillips

Programmer
Apr 3, 2002
1
GB
I have a problem with a file I have created which has two horzontal frames. The top frame contains a header record, the second frame contains the data. Before I created the frames, the data aligned to the headers perfectly, after I put the frames in the data no longer aligns to the headers, even though they contain identical align tags and field sizes.

If I copy and paste the data into the header frame, the header adjusts itself and the data becomes properly aligned to the headers.
To see the file go to the following site;

 
If you don't need to keep it in % value, try to fix the table width in both frames by adding <table width=&quot;&quot;>. I don't believe that it will solve your problem completely because there are two different tables.

It worked well before you added frames only because you place header and content cells in one table. If you do this in two different ones on the same page you'll get the same improper alignment.

The most known trick is to fix table cells width is by using transparent images added to the very first row (that should not contain anything except them). You should do the same it in both tables.

But, once again, it works only for fixed-size tables.

good luck
 
I think that the problem comes from <frameset> and <frame> tags.
If you did by yourself coding of frames there shouldn't be a problem. But if you did form FrontPage or Dreamweaver, they put junk code for adding margins between frames.
So look in your code and if you find something like marginwidth and marginheight set them to 0.
If there are no such code, try other sussgestions.
Wish you success!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top