• 0

HTML table column problem


Question

This is the issue (the top bar isn't in line with what follows - its not far off but its not right)

post-103369-0-11685900-1348309880.png

Despite setting the % to the same as what follows, the problem is this scroller bar its affecting the width so whilst setting the % of the grey bar the same, it isn't working.

Grey bar:


<table><tr class=last><td width=5%></td><td width=15%>Date</td><td width=10%>Result</td><td width=25%>Against</td><td

width=25%>Competition</td><td width=6%>Start</td><td width=6%>Sub</td><td width=6%>Goals</td><td

width=17px></td></tr></table>[/CODE]

I even added that 17px td to the end to see if that would solve it, and it didn't. I used 17px as that is the width of the scroller.

Please can someone advise :)

Link to comment
https://www.neowin.net/forum/topic/1107257-html-table-column-problem/
Share on other sites

7 answers to this question

Recommended Posts

  • 0

If you use units like px in HTML it won't work (only use plain numbers or percentages), just change the value to 17. Only use units like px in CSS.

Also some browsers don't show anything if there's no content within some HTML, just try and add an   in there or something.

  • 0

Changed to


<table><tr class=last><td width=5%> </td><td width=15%>Date</td><td width=10%>Result</td><td
width=25%>Against</td><td width=25%>Competition</td><td width=6%>Start</td><td width=6%>Sub</td><td
width=6%>Goals</td><td width=17> </td></tr></table>
[/CODE]

but the result is the same.

  • 0

From what little information you have given you have two tables there?

Table 1 - Grey bar

Table 2 - Results

Why not combine them into one table? Im guessing its a table reading from a database?


&lt;table&gt;
&lt;tr class=last&gt;
&lt;td width=5%&gt; &lt;/td&gt;&lt;td width=15%&gt;Date&lt;/td&gt;&lt;td width=10%&gt;Result&lt;/td&gt;&lt;td
width=25%&gt;Against&lt;/td&gt;&lt;td width=25%&gt;Competition&lt;/td&gt;&lt;td width=6%&gt;Start&lt;/td&gt;&lt;td width=6%&gt;Sub&lt;/td&gt;&lt;td
width=6%&gt;Goals&lt;/td&gt;&lt;td width=17&gt; &lt;/td&gt;
&lt;/tr&gt;
//end of grey bar and start of php loop
&lt;tr&gt;
&lt;td&gt;&lt;?=postition?&gt;&lt;/td&gt;&lt;td&gt;&lt;?=date?&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

I am just a novice, im sure someone will clean up what i wrote or you can work out what i mean i only dabble and learn when im bored and that was a year ago.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Those persons has complete control over the internet right now. They do see everything what we do regardless.
    • Everyone and every country who doesn't support Israel's aggression, terrorism and hypocrisy is their immediate enemy. You can definitely see how many innocent people they are killing almost everyday. In fact they're the actual Neo-Nazi who holds Hitler's ideology.
    • Just pull a 4Chan and ignore the UK gov, or better troll them. It's not like they can enforce the fine across border.
    • It has NEVER been shown that all these overreaching creepy methods of surveillance have ever saved a child or prevented a terrorist attack. Not a single one. It's the kind of people like you who just wave it away as "paranoid conspiracy" that makes big tech and governments this creepy mass data hoarding entities. Not only that, 3/4 of these surveillance ideas undermine the very foundations of safe online communication because they always want to have a backdoor in everything "just in case" they might need it to... checks the notes "save the children". If you put a backdoor into encryption chain there is no encryption chain anymore. You know what encryption keeps safe? Your medical records, your online shopping and credit card during payment, your photos in the cloud, your emails, your passwords, everything. There is ZERO guarantee only the good guys will use it. And if you think police suddenly can't apprehend child abusers because of encryption, Epstein was running his entire sex trafficking ring using GMail which is not even encrypted end to end. Or to make matters even worse, USA has a **** and a good buddy of Epstein as a president. Absolutely NOTHING has been done to address it. Maxwell just got a better "hotel" room as a reward. This clearly shows how they absolutely don't really care about the children but they care about the absolute control over all of us. And you're defending them here. Good grief. On top of constant attempts to insert backdoors into encryption chain, the entire age verification nonsense is again entirely over reaching, creepy, invades everyone's privacy with premise of yet again "protecting the children" instead of demanding device makers to provide simple and powerful tools for PARENTS to control how their children use devices and what they do on them. THIS would be the way, not the stupid age verification for everyone. Imagine if government would be dictating companies how their phones work and not the company's IT department. The parents should be the IT department to their children. And for everyone excusing "they are not knowledgeable enough" buuuuuulsheat. We live in a digital age, if you have children now, you absolutely are well versed in digital everything at least to basic extent. If you're not, how do you even function in these times then? Reality is that parents are just lazy and don't want to deal with this. They want government to raise their kids because they are too busy scrolling stupid Instagram and Tiktok or some bs.
    • You could make the argument that K should not be included, but FC, the fried chicken, is not the framework, it's the product. It's the Paint in Paint.NET. A closer analogy is if KFC included the name of the deep fryer they used. HennyPennyFC.
  • Recent Achievements

    • Very Popular
      Captain_Eric earned a badge
      Very Popular
    • One Month Later
      amusc earned a badge
      One Month Later
    • One Month Later
      DJC50PLUS earned a badge
      One Month Later
    • Week One Done
      DJC50PLUS earned a badge
      Week One Done
    • Proficient
      Eric Biran went up a rank
      Proficient
  • Popular Contributors

    1. 1
      +primortal
      507
    2. 2
      PsYcHoKiLLa
      221
    3. 3
      ATLien_0
      92
    4. 4
      +Edouard
      88
    5. 5
      Steven P.
      83
  • Tell a friend

    Love Neowin? Tell a friend!