Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Tables annoy me :P


  • Please log in to reply
5 replies to this topic

#1 Wolfy87

Wolfy87

  • Members
  • 414 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:England
  • Local time:05:01 PM

Posted 11 March 2009 - 12:39 PM

I create the table
<table...
And set the width
<table width="500px">
Then i add in a tr and two td's
<table width="500px">
<tr>
<td>
</td>
<td>
</td>
<tr>
</table>
But when i size the td's differently like so
<table width="500px">
<tr>
<td width="100px">
</td>
<td width="400px">
</td>
<tr>
</table>
It dose not size them right, one is huge (500px to be exact) and the other is shoved off the edge and is about 10px, i dont understand, is there some rule that you have to use with tables to stop them exploding?

Thanks, Wolfy87 =D

BC AdBot (Login to Remove)

 


#2 Wolfy87

Wolfy87
  • Topic Starter

  • Members
  • 414 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:England
  • Local time:05:01 PM

Posted 11 March 2009 - 12:55 PM

Ok dont worry i have found the awnser. The only way round this that i have found is creating two seperate tables like so

<table width="50%">
<tr>
<td>
</td>
<tr>
</table>
<table width="50%">
<tr>
<td>
</td>
<tr>
</table>

Thanks, Wolfy87.

#3 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,259 posts
  • ONLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:10:01 AM

Posted 11 March 2009 - 05:30 PM

Have you tried using percentages instead of pixels in the two <td>'s?

#4 Wolfy87

Wolfy87
  • Topic Starter

  • Members
  • 414 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:England
  • Local time:05:01 PM

Posted 12 March 2009 - 11:35 AM

Yes, but still no difference, although it could just be me not coding it right =] ive got it now anyway, now i need to align them right, im using the W3C walidator for html strict and it wont let me use height width align, its all got to be css so thats made it even harder to align things =/

Wolfy87.

#5 burn1337

burn1337

  • Banned
  • 311 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:01 AM

Posted 22 March 2009 - 02:32 AM

I would also check your ending tr, it didn't seem to be ending but rather starting...

#6 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:11:01 AM

Posted 22 March 2009 - 09:28 AM

I would also check your ending tr, it didn't seem to be ending but rather starting...


Yep. Your html is not properly formatted. Fix it, and then worry about your other issues.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users