/    Sign up×
Community /Pin to ProfileBookmark

Table width problem. what am i doing wrong?

ok. so im trying to develop a set/fixed width for my table. the height works fine. so im really confused, also the table keeps moving the more text i put in. how to set a fixed width?. i have it set as follows:

<TABLE BORDER=”1″ BORDERCOLOR=”#000000″ CELLSPACING=0 CELLPADDING=2>
<TR VALIGN=”TOP”>
<TD ALIGN=LEFT width=100 HEIGHT=700><font face=”verdana, arial” size=”2″ color=”#000000″>
89898888888888888888888888888888888888888888888888888888888ooooooooooooooooooooooooooooooooooooooooooooooooo88</font></td>
</TR>
</TABLE>

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@jonjesneyAug 03.2010 — <TABLE WIDTH="200" BORDER="1" BORDERCOLOR="#000000" CELLSPACING=0 CELLPADDING=2>

Add the width to the Table tags
Copy linkTweet thisAlerts:
@xziledauthorAug 03.2010 — hmmm didn't work. i will post the entirety of it as i have another table above it that may be causing it to not work corrrectly?

<style>

a:hover{

color:#800000;

}

BODY {

overflow:auto;

background-color:#FFFFFF;

background-image:url(blud12.jpg);

background-repeat:no-repeat;

background-position:top right;

background-attachment:fixed;

margin:0;

</style>

</head>

<body bgcolor="#FFFFFF" Text="#000000" link="#000000" alink="#000000" vlink="#000000">

<table WIDTH=350><TR VALIGN="TOP"><TD ALIGN=LEFT><Img border="0" src="log.jpg"></td><TD width=350 ALIGN=LEFT><font

face="verdana, arial" size="2"><br><br>.::<b>News</b>::.<br><a href="biography.html"><b>Biography</b></a><br><a

href="discography.html"><b>Discography</b></a><br><a href="gallery.html"><b>Gallery</b></a><br><a

href="downloads.html"><b>Downloads</b></a><br><a href="gear.html"><b>Gear</b></a><br><a

href="contact.html"><b>Contact</b></a><br></font></td></tr></table>


<TABLE WIDTH="200" HEIGHT="700" BORDER="1" BORDERCOLOR="#000000" CELLSPACING=0 CELLPADDING=2>

<TR VALIGN="TOP">

<TD ALIGN=LEFT><font face="verdana, arial" size="2" color="#000000">

89898888888888888888888888888888888888888888888888888888888ooooooooooooooooooooooooooooooooooooooooooooooooo88</font></td>

</TR>

</TABLE>
Copy linkTweet thisAlerts:
@FangAug 03.2010 — Wrap the text in a <p> element and apply the style with CSS, not with <font>, which is depreciated.

Use Lorem Ipsum for testing not random number strings.
Copy linkTweet thisAlerts:
@jonjesneyAug 03.2010 — hmmm didn't work. i will post the entirety of it as i have another table above it that may be causing it to not work corrrectly?

<style>

a:hover{

color:#800000;

}

BODY {

overflow:auto;

background-color:#FFFFFF;

background-image:url(blud12.jpg);

background-repeat:no-repeat;

background-position:top right;

background-attachment:fixed;

margin:0;

</style>

</head>

<body bgcolor="#FFFFFF" Text="#000000" link="#000000" alink="#000000" vlink="#000000">

<table WIDTH=350><TR VALIGN="TOP"><TD ALIGN=LEFT><Img border="0" src="log.jpg"></td><TD width=350 ALIGN=LEFT><font

face="verdana, arial" size="2"><br><br>.::<b>News</b>::.<br><a href="biography.html"><b>Biography</b></a><br><a

href="discography.html"><b>Discography</b></a><br><a href="gallery.html"><b>Gallery</b></a><br><a

href="downloads.html"><b>Downloads</b></a><br><a href="gear.html"><b>Gear</b></a><br><a

href="contact.html"><b>Contact</b></a><br></font></td></tr></table>


<TABLE WIDTH="200" HEIGHT="700" BORDER="1" BORDERCOLOR="#000000" CELLSPACING=0 CELLPADDING=2>

<TR VALIGN="TOP">

<TD ALIGN=LEFT><font face="verdana, arial" size="2" color="#000000">

89898888888888888888888888888888888888888888888888888888888ooooooooooooooooooooooooooooooooooooooooooooooooo88</font></td>

</TR>

</TABLE>[/QUOTE]


Have you tried writing in that table rather than just one continuous string, so put words in it with spaces between the words?
Copy linkTweet thisAlerts:
@tarielleAug 03.2010 — I had the same problem once, I however found out that the problem was that I had to many <td> in a row so when I shorted them and made like 3-4 td rows the width worked as it should
Copy linkTweet thisAlerts:
@xziledauthorAug 03.2010 — FIXED! thanks!
Copy linkTweet thisAlerts:
@jonjesneyAug 03.2010 — FIXED! thanks![/QUOTE]

How? By doing what?
×

Success!

Help @xziled spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...