Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 8th, 2007, 7:33 AM   #1
Farflungfish
Newbie
 
Join Date: Nov 2007
Posts: 6
Rep Power: 0 Farflungfish is on a distinguished road
Question Radio Buttons and TR spacing

Hello programmingforums.org this is my first post, and first problem of the week!

The following links are to images which show my problem,

One for each major browser, and i have enabled borders on tables to show where they are:

http://img215.imageshack.us/img215/6460/ienz5.jpg - Internet Explorer
http://img215.imageshack.us/my.php?image=mozje9.jpg - Moz / FF
http://img215.imageshack.us/my.php?image=operaqe9.jpg - Opera

I would like the page to display as Opera renders it, though i think the radio buttons make some random space for themselves in the TR even though they are within a seperate table which wraps round them tightly.
Layout is all in tables as im sure you can see, though would changing to div's help?
If anyone requires code, i will post it. If thats not enough information i have provided above.

Any help would be much appreciated, thanks and hello all once again
Farflungfish is offline   Reply With Quote
Old Nov 8th, 2007, 9:24 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Re: Radio Buttons and TR spacing

Of course it isn't enough information. You don't even bother to say what, among the rendering differences, is bothering you. The vertical position? The horizontal position? Obviously, should we happen to guess correctly, we can't point out the errors in, or misuse of, markup that we can't see.

Generally speaking, tables should not be used for layout. Tables are for tabular material. A lot of your material is tabular, so that's fine. If you're talking about placement of the page contents, I'd personally accomplish it in another way.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Nov 8th, 2007, 4:14 PM   #3
Farflungfish
Newbie
 
Join Date: Nov 2007
Posts: 6
Rep Power: 0 Farflungfish is on a distinguished road
Re: Radio Buttons and TR spacing

The IE 7 and Moz/FF rendering, the height of each row is somewhat expanded and not wrapped like in opera, here is the code.
But note that i use the phpbb template engine so it will be duplicated dependant on how many rows of data the engine receives.

html Syntax (Toggle Plain Text)
  1. <!-- BEGIN player -->
  2. <tr>
  3. <td valign="top"> <div align="left">{player.USERNAME} </div></td>
  4. <td valign="top"> <div align="left">{player.CLASS} </div></td>
  5. <td><form name="statusforum" method="post" action="">
  6. <table width="100%" border="1" cellpadding="0" cellspacing="0" class="radio">
  7. <tr>
  8. <td valign="top"><div align="center">
  9. <input type="radio" name="status" value="0" onClick="changeStatus('{player.ID}', this.value)" {player.CHECK0}>
  10. </div></td>
  11. <td> <div align="center">
  12. <input type="radio" name="status" value="2" onClick="changeStatus('{player.ID}', this.value)" {player.CHECK2}>
  13. </div></td>
  14. <td> <div align="center">
  15. <input type="radio" name="status" value="1" onClick="changeStatus('{player.ID}', this.value)" {player.CHECK1}>
  16. </div></td>
  17. <td> <div align="center">
  18. <input type="radio" name="status" value="3" onClick="changeStatus('{player.ID}', this.value)" {player.CHECK3}>
  19. </div></td>
  20. </tr>
  21. </table>
  22. </form></td>
  23. </tr>
  24. <!-- END player -->

and css for classes used
css Syntax (Toggle Plain Text)
  1. <style type="text/css">
  2. <!--
  3. .attendee-font {
  4. font-family: Arial, Helvetica, sans-serif;
  5. font-size: 12px;
  6. font-style: normal;
  7. line-height: normal;
  8. font-weight: normal;
  9. font-variant: normal;
  10. border-bottom-width: 1px;
  11. border-bottom-style: solid;
  12. border-bottom-color: #999999;
  13. }
  14. .attendee-title-font {
  15. font-family: Arial, Helvetica, sans-serif;
  16. font-size: 12px;
  17. font-style: normal;
  18. line-height: normal;
  19. font-weight: bold;
  20. font-variant: normal;
  21. color: #003399;
  22. text-decoration: underline;
  23. }
  24. .status-table {
  25. font-family: Arial, Helvetica, sans-serif;
  26. font-size: 9px;
  27. color: #000000;
  28. }
  29. .radio {
  30. margin: 0px;
  31. padding: 0px;
  32. border:2px solid #999;
  33. }
  34. td status-table {
  35. font-family: Arial, Helvetica, sans-serif;
  36. font-size: 9px;
  37. color: #000000;
  38. }
  39. -->
  40. </style>

sorry for such an abstract question before. Hope this makes it better

another minor thing bothering me is the beauty of IE's fonts and the horror of Opera's rendering, no feathering etc, what causes this and any resolution to make all pretty?

Last edited by DaWei; Nov 8th, 2007 at 4:54 PM.
Farflungfish is offline   Reply With Quote
Old Nov 8th, 2007, 5:20 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Re: Radio Buttons and TR spacing

Wow. Tables within tables. I strongly suggest you learn about semantic markup. You might want to visit the site, A List Apart.

That said, I have replicated your table here. You'll notice that the extra space shown in your examples is not there. I would suggest that whatever is filling in the information in the template is adding something, that there's something in your outer table definition. Not that the outer table stuff is not shown in your code; I generated my own.

Note that I have also replicated your code without the inner table and without the divs. I'm not sure why you think you need all that stuff.

I can't comment on the beauty and rendering. I'm looking at images, not the page.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Nov 8th, 2007, 5:36 PM   #5
Farflungfish
Newbie
 
Join Date: Nov 2007
Posts: 6
Rep Power: 0 Farflungfish is on a distinguished road
Re: Radio Buttons and TR spacing

thank you very much,

Quote:
Note that I have also replicated your code without the inner table and without the divs. I'm not sure why you think you need all that stuff.
yes i realise now that it will sit inline even without the table. - meh sadly im using Dreamweaver, it likes to add inline crap like div's to align some text..
to vouch for my corner, i dont do style - i just have to for this project as the style person decided not to contribute thanks very much for a good slap in the face.
Farflungfish is offline   Reply With Quote
Old Nov 8th, 2007, 5:45 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Re: Radio Buttons and TR spacing

Here's the deal: I used Dreamweaver to produce my version. I use Dreamweaver for the tools it gives me. I don't let it write my code!
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Nov 8th, 2007, 5:56 PM   #7
Farflungfish
Newbie
 
Join Date: Nov 2007
Posts: 6
Rep Power: 0 Farflungfish is on a distinguished road
Re: Radio Buttons and TR spacing

/whimpers away

i will do better, thank you for teaching me!
Farflungfish is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:05 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC