/    Sign up×
Community /Pin to ProfileBookmark

can’t size table

Hi,

I’ve got a table inside a form. The data comes from a mysql db loaded from php at startup. One of the fields is particularly long and throwing the form off.

All I want is 2 columns, the left is for the label and should be single line and wide enough to fit, the second column is for data and should be a fixed width and spill over to a new line if necessary.

However, what I’m getting is multi-line on the label and overly long lines for the data.

I tried the setting the width attribute of the table, but no luck. I tried setting the width with setAttribute(“width”,800) in javascript, but no luck.

How can I force the table size and column widths?

Thanks!

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@jayw710authorApr 18.2008 — Given the rush of responses ?, I was forced to use a workaround. I placed the long field (a URL) inside of a text field -- here I can control the width. Not what I wanted, but it gets the job done.
Copy linkTweet thisAlerts:
@ray326Apr 19.2008 — I'd probably use a dl/dt/dd for that.
×

Success!

Help @jayw710 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.18,
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,
)...