/    Sign up×
Community /Pin to ProfileBookmark

tables question

I have a 4 cell table set up that includes text and 2 small icons in each cell. The table is set as
table cellpadding=”10″ border=”1″ width=”100%”

So why would the cells be different sizes? The icons are all the same size and each cell begins with div align=”justify”.

The cells are not set at a specific size so I can’t figure out why they are different sizes. The amount of text in each shouldn’t affect the width of the cell.

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@pyroFeb 12.2003 — [i]Originally posted by km01grant [/i]

[B]The amount of text in each shouldn't affect the width of the cell. [/B][/QUOTE]
But it does. If you want the cells to be the same size, in your first <tr> add width to each <td> something like this:

&lt;tr&gt;
&lt;td width="25%"&gt;&lt;/td&gt;
&lt;td width="25%"&gt;&lt;/td&gt;
&lt;td width="25%"&gt;&lt;/td&gt;
&lt;td width="25%"&gt;&lt;/td&gt;
&lt;/tr&gt;
Copy linkTweet thisAlerts:
@km01grantauthorFeb 12.2003 — Thanks, that worked and don't know why I didn't think of doing that to begin with.

One more question...How would I make an outline of the cell or table where the lines come up to the meet the heading at the top. I'm not talking about the border size of the table but I can't think of the name of it or where I saw the instructions for it.
Copy linkTweet thisAlerts:
@CyCoFeb 12.2003 — Could you be more specific?
×

Success!

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