Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   General Discussions (http://forums.winamp.com/forumdisplay.php?f=1)
-   -   So, you think your soo good... (html) (http://forums.winamp.com/showthread.php?t=182941)

squakMix 10th June 2004 22:37

So, you think your soo good... (html)
 
Moderators, you can lock this thread. problem Solved.

I got one for ya. I dont really know how to google this, so here goes:

I got a table, with these dimentions: Width = 100% Height = 100%

It's devided into three columns. So the code looks like:

Quote:

<table width = 100% Height = 100%>
<tr>

<td>
asd
</td>

<td>
asd
</td>

<td>
asd
</td>

</tr>
</table>
Now, here's the thing:
The two Outside collums... the right and the Left have PERCENTAGE widths. So, it would look like:

Quote:

<table width = 100% Height = 100%>
<tr>

<td width = 40%>
asd
</td>

<td width = 400>
asd
</td>

<td width = 40%>
asd
</td>

</tr>
</table>
Here's the problem. Guess what happends if I put more than 400 Pixels of text in the middle column? For some reason, it pushes the 400 pixel middle column BIGGER than 400 px, and this is a huge problem here. What can I do? I cant put breaks after every line... I have hundreds of lines of text in my webpage layout. I have also tried putting a table that takes up the middle column, but for some reason, it still pushes bigger than specified peramiters (sp). Wtf can i do? I thought about using an Iframe for the middle column, but I hate working with frames... When the page loads, there's a huge white block where the frame is.

I would appreciate it if I could have a little help with this. It would be really helpful if someone knew a way to pre-load the page/iframe before the page is actually showed or if someone knows how to stop the middle from Expanding.

Thanks for any help :)

Sandman2012 10th June 2004 23:45

Use div tags and css.

squakMix 10th June 2004 23:47

Quote:

Originally posted by Sandman2012
Use div tags and css.
Dont know either. After I DO learn both, I would have to mess around and practice with them and get good ect, before I can really Think of a way to fix my problem.

Sandman2012 10th June 2004 23:51

I taught myself xhtml strict and css in less than a week (with no prior knowlege of any code whatsoever) using W3schools as a reference.

http://www.w3schools.com/

squakMix 10th June 2004 23:57

Yea, i dont really have a week. This is just a simple problem. I cant afford a week to try and fix this.

Namelessv1 11th June 2004 00:21

Does this work?

http://alexluu.trybalink.net/page.html

code:
<table width="100%" height="100%">
<tr>
<td width="40%">
asd
</td>
<td width="400">
copy and paste copy and paste copy and paste copy and paste copy and paste
copy and paste copy and paste copy and paste copy and paste copy and paste
copy and paste copy and paste copy and paste copy and paste copy and paste
copy and paste copy and paste copy and paste copy and paste copy and paste
copy and paste copy and paste copy and paste copy and paste copy and paste
copy and paste copy and paste copy and paste copy and paste copy and paste
</td>

<td width="40%">
asd
</td>
</tr>
</table>


squakMix 11th June 2004 00:29

...Yes. Maybe I did something wrong... Wtf.

here's the coding for my website:

Edit: WTF. ...It works now... Wtf...

...I dont understand why THAT doesnt work.

squakMix 11th June 2004 00:33

So it looks like:

A huge table, Divided into three colums, that has Width = 100%, and height = 100% With three tds, the two sides have width = 40%, and the middle is 400 px. on the two outside Colums, there is an image (one on each side). In the middle, there's another table. At the top of the table, there is a banner. For some reason, when I type in the middle table, it pushes out of bounds.

squakMix 11th June 2004 00:36

Uh, I tried the exact coding that i had originally again by putting it in a notepad document, and manually loading it into a webpage, and it mysteriously worked. :rolleyes:

griffinn 11th June 2004 00:36

You should remove all hard-wired "height" and "width" attributes and let the user's browser do what it's supposed to do: render the page as best it can.

squakMix 11th June 2004 00:37

what do you mean? The percentages?

squakMix 11th June 2004 00:38

Now wtf. It only works if I use WORDS. if I do "SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS" It pushes the table out of it's demensions :rolleyes:

squakMix 11th June 2004 00:40

See!? It did it with winamp!


Anyway, It doesnt matter anymore. Mods, you can lock this thread. I dont have this problem, as long as I actually use real words.

Namelessv1 11th June 2004 00:48

Maybe you should just clean up your code. It's atrociously sloppy.

siebe83 11th June 2004 17:43

as far as i have seen your code, you're always doing this:

<td width = 400>

instead, do this:
<td width="400">

PulseDriver 11th June 2004 19:51

Don't use anything outside the HTML 4.0 standard unless you NEED it. That's what I say... ah well, I have started using xhtml syntax now, but I think that's compatible backwards...

squakMix 11th June 2004 22:04

Quote:

Originally posted by siebe83
as far as i have seen your code, you're always doing this:

<td width = 400>

instead, do this:
<td width="400">

Does it make a difference?

Wavestreaming 11th June 2004 22:10

I think your problem may lye in the

<table width="100%" height="100%">

Maybe take out the width="100%" ??

squakMix 11th June 2004 22:16

Nope. Cant. Anyway, problem solved.

PulseDriver 12th June 2004 01:39

When you you percentage in tables and images(images are got only horizontal support by IE, anyways... it's mesured from the parent-width/height, and not the table itself...

If it's a table inside another table-cell, the width of 100% is the width of the cell the table is place within. If the table have the body as parent, it's the body-width that's mesured.

And always use attribute="value" as that's the XML and XHTML syntax.. and always end your tags, if it be by <tagname /> or <tagname>content</tagname>

squakMix 12th June 2004 01:57

Quote:

Originally posted by PulseDriver
When you you percentage in tables and images(images are got only horizontal support by IE, anyways... it's mesured from the parent-width/height, and not the table itself...

If it's a table inside another table-cell, the width of 100% is the width of the cell the table is place within. If the table have the body as parent, it's the body-width that's mesured.

...What made you think that I didnt know this?

Namelessv1 12th June 2004 02:55

Quote:

Originally posted by squakMix
Does it make a difference?
http://www.cs.tut.fi/~jkorpela/qattr.html

squakMix 12th June 2004 03:19

Quote:

It's easier, since you need not memorize and recall the rules for allowable omission.

In XML, quotes are always required (since XML has SHORTTAG NO; see Comparison of SGML and XML). You may use XML in the future, and in that case your life will be simpler if you have adopted the habit of quoting attribute values.

When someone (you or someone else) later edits your HTML file, he may easily forget to add the quotes if he edits an attribute value in manner which makes the quotes mandatory. For example, an attribute like SRC=foo.gif is legal, but if someone changes the attribute (e.g. due to moving a file to another directory) to SRC=images/foo.gif it becomes illegal.
All of these rules dont necessarily apply to me. I dont do XML, I know all of the rules, and I know when to use quotes. None of these are legitimate.

Namelessv1 12th June 2004 04:22

If you're looking strictly at it as "do I absolutely have to code as such?" then no, none of these reasons are "legitimate."

However, it's not suprising that you keep running into these "problems."

ryan 12th June 2004 04:53

Quote:

Originally posted by squakMix
Does it make a difference?
Yes, the way you're doing it is invalid, and probably doesn't work at all. Trying to write HTML in this manner will only make things harder for you in the future.

squakMix 12th June 2004 05:45

It works both ways, and coding wise, does not make a difference, whatsoever. It is not the cause of my problems.

griffinn 13th June 2004 16:11

Most of the time, the problem runs deeper than technique. The true problem often lies in the web author's attitude.

Effective delivery of a message shouldn't always have to depend on the way it looks. Your table does not have to be exactly x pixels wide.

Are you using an image to convey a certain message when a block of text, formatted reasonably nicely, would be just as (or more) effective?

Are you using a table as a layout tool, rather than to present data that naturally lend themselves to a tabular arrangement?

Are you, in general, too concerned with style, and paid too little attention to substance?

ryan 13th June 2004 20:58

Quote:

Most of the time, the problem runs deeper than technique. The true problem often lies in the web author's attitude.

Effective delivery of a message shouldn't always have to depend on the way it looks. Your table does not have to be exactly x pixels wide.

Are you using an image to convey a certain message when a block of text, formatted reasonably nicely, would be just as (or more) effective?

Are you using a table as a layout tool, rather than to present data that naturally lend themselves to a tabular arrangement?

Are you, in general, too concerned with style, and paid too little attention to substance?

You should write the little sayings that go into fortune cookies, you would make a fortune. No pun intended.

;)

PulseDriver 13th June 2004 23:19

I can tell you that spaces in attributes is wrong, and the only reason that the webbrowser catch them, is that they got "intelligent" understanding of spelling-errors.

The only place where there can be space, is between the quotations.

code:


<tag attribute = value>content</tag> wrong
<tag attribute = "value">content</tag> wrong

<tag attribute=value>content</tag> this is right for some attributes
<tag attribute="value">content</tag> I would stick to this if I were you, cause this is never wrong




Example with spaces inside a quotation

code:


<font face="times new roman">content</font>




And the whole idea with the quotations is that you CAN input values with spaces, and the quotations are the identifiers which tells the brower where the attribute-value starts and where the attribute-value ends.


All times are GMT. The time now is 10:04.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.