/    Sign up×
Community /Pin to ProfileBookmark

REAL CowGirl has table problems! Please Help!!

Hi Everybody! CowGirl here!

I am having a small problem with a table. One row in my table has 16 columns (table has 35 columns, some columns in this row are merged).

The problem is I want this row to have a height of ONE pixel. So I put a .gif spacer (with a height of one pixel) in there, but the row will NOT collapse to the height of one pixel. (The row refuses to collapse at all – it stays at a height of approximately 20 pixels or so.) The strange thingie is that if I merge all the columns in this row, then the row will collapse to the height of one pixel, but merging the whole row into one cell will not work for me.

I use Dreamweaver 8 and have used CSS to style my table.

Can anybody please tell me how to make this row collapse to the height of my spacer? Please help – this table is being more stubborn than my horses!!!!!!!!!!!!!

Big Hugs!

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayMay 25.2006 — May want to try text-height:1px;
Copy linkTweet thisAlerts:
@drhowarddrfineMay 25.2006 — Do you mean in IE? IE will not let you collapse it smaller than the line-height. I forgot the exact hack for this because I would never use tables for layout but try googling for that unless someone comes up with it here.
Copy linkTweet thisAlerts:
@NogDogMay 25.2006 — Assing a class to the table row:
[code=html]
<tr class="onepixel"><td><!-- rest of row --></tr>
[/code]

In your CSS:
<i>
</i>.onepixel td {
font-size: 1px;
line-height: 1px;
padding: 0;
}
.onepixel td img {
display: block;
margin: 0;
}

Also, put on your Kevlar armor and get ready to hear about not using tables for page layout. ?
Copy linkTweet thisAlerts:
@toicontienMay 25.2006 — *pulls hammer back on gun* Tables are awsome for laying out pages ? *shoots own foot*
Copy linkTweet thisAlerts:
@CowGirlauthorMay 29.2006 — To all who replied,

Thank you for taking the time to help me. I was able to fix the problem because of your responses.

Big Hugs, CowGirl!
×

Success!

Help @CowGirl 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 6.1,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...