• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

newbie html question

jinduy

Diamond Member
<td width= "180" > zoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooom </td>


my goal here is to keep the size of the cell at 180 so that the data would look like:

zooooo
oooooo
oooooo
ooooo
oo...m

something like this... is that possible using tables? i know it's probably useless but it bugs me. thanks
 
Originally posted by: paruhd0x
Originally posted by: KahunaHube
that should do it..

It doesn't.

Well, when you set the width of a cell you are only setting its minimum width. The maximum width will always adjust to fit the longest line of data in the cell. So without break tags your 180px wide cell will continue to stretch the more o's you add to the word zoom in your example. If break tags aren't giving you the results you were looking for, perhaps there's another approach to whatever it is you are trying to accompolish?
 
so basically i gotta do something like

<td width= "180" > zooooooooooooooooooooooooooo[br]ooooooooooooooo[br]oooooooooooooooooom </td>


do i understand correctly?
replaced with [br]
 
Originally posted by: jinduy
so basically i gotta do something like

<td width= "180" > zooooooooooooooooooooooooooo[br]ooooooooooooooo[br]oooooooooooooooooom </td>


do i understand correctly?
replaced with [br]

Yes pretty much. But that doesn't sound like what you wanted to hear. It all depends upon what you are trying to do, but there may be other ways. For example, if you are trying to do the traditional three column layout with the center column being your content but don't want the content to push the column's width to the right when you have a long, unbroken line of text, then try controlling the width of the center column by setting widths on the left and right columns.

 
Originally posted by: Stratum9
Originally posted by: jinduy
so basically i gotta do something like

<td width= "180" > zooooooooooooooooooooooooooo[br]ooooooooooooooo[br]oooooooooooooooooom </td>


do i understand correctly?
replaced with [br]

Yes pretty much. But that doesn't sound like what you wanted to hear. It all depends upon what you are trying to do, but there may be other ways. For example, if you are trying to do the traditional three column layout with the center column being your content but don't want the content to push the column's width to the right when you have a long, unbroken line of text, then try controlling the width of the center column by setting widths on the left and right columns.

ah great idea, i must try that out,

thanks all, thought i would get burned like the other dood asking for math help ~_~


and yes a 3 column layout is pretty much wat i had been trying to do 🙂.
 
Originally posted by: jinduy
can any html expert tell me if my 3 column layout looks decent to them...

www.jinduy.net

yes the site is very ugly, just workin on tryin to get my layout setup.
It's a good start. Have you considered doing your table column widths in percentages? IMHO, your right column is too wide, and when the page is made smaller (on a smaller screen or resized browser window) the middle column is "squished" too much.

BTW, if you learn CSS (please do, it's awesome), you will have the min-width and max-width properties to play with, which would help a lot in this situation (check out this to see what can be done with CSS).

Edit: for more fancy CSS that is probably much better done than mine could ever be, check out Eric Meyer's examples.
 
Originally posted by: jliechty
Originally posted by: jinduy
can any html expert tell me if my 3 column layout looks decent to them...

www.jinduy.net

yes the site is very ugly, just workin on tryin to get my layout setup.
It's a good start. Have you considered doing your table column widths in percentages? IMHO, your right column is too wide, and when the page is made smaller (on a smaller screen or resized browser window) the middle column is "squished" too much.

BTW, if you learn CSS (please do, it's awesome), you will have the min-width and max-width properties to play with, which would help a lot in this situation (check out this to see what can be done with CSS).

Edit: for more fancy CSS that is probably much better done than mine could ever be, check out Eric Meyer's examples.

yeah to my understanding, using css is better than using tables. but right now i want to make sure i know html very well before i tackle css.

thanks for the input! i'll keep the right column in mind. need sleep now 🙁.
 
Back
Top