/    Sign up×
Community /Pin to ProfileBookmark

HTML / CSS Table Strangeness

Hi all,

for some strange reason, I cannot get control over the 2nd <TD> element in my php loop. I wish to control its width. nothing I try seems to work. I’m open to suggestions please. The page can be found here -> [url]http://www.stevelim.com/web/firefox_extensions.html[/url]

[CODE]
echo ‘<table>’;

for($i=1; $i<count($items); $i++) {
echo ‘<tr>’;
echo ‘<td style=”padding:0 20px 0 20px”>’;
echo ‘<b>’.title($items[$i]).'</b> (‘.find(“version”, $items[$i]).’) by ‘.find(“creator”, $items[$i]).'<br>’;
echo find(“description”, $items[$i]).'<br/>’;
echo ‘<a href=”‘.find(“homepageURL”, $items[$i]).'”>’.find(“homepageURL”, $items[$i]).'</a><br/><br/>’;
echo ‘</td>’;
$i++;
echo ‘<td>’;
echo ‘<b>’.title($items[$i]).'</b> (‘.find(“version”, $items[$i]).’) by ‘.find(“creator”, $items[$i]).'<br>’;
echo find(“description”, $items[$i]).'<br/>’;
echo ‘<a href=”‘.find(“homepageURL”, $items[$i]).'”>’.find(“homepageURL”, $items[$i]).'</a><br/><br/>’;
echo ‘</td>’;
echo ‘</tr>’;
}

echo ‘</table>’;

[/CODE]

Thanks.

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@ray326Nov 19.2006 — You might try classes on the tds and CSS widths.
×

Success!

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