Jump to content

overflow: hidden tr


soltek

Recommended Posts

Hey mates, I'm having some problems with an html table.

I'm trying to do the table flexible to different screen resolutions.

The data inside that tr is kinda long, so, at small resolution, the tr would be small also and the content inside (a phrase) would be clipped using overflow: hidden. When the screen is large enough... well, you got the idea.

 

The thing is the overflow:hidden isnt working at all and i think is because it needs to have a fixed width, not a % width.

Take a look at my code, please:

 

HTML

	<table class=tabela>
	<tr class=coluna1>
	<td class=linha1>1234567891011121314151617181920212223242526272829303132343536373839404142434445464748495051525354555657585960</td>
	<td class=linha2>2</td>
	<td class=linha3>3</td>
	</tr>
</table>

 

 

CSS

.tabela {
width: 100%;
cellpading: 0;
cellspacing: 0;	
}

.coluna1 {
background-color: white;
}

.linha1 {
width: 50%;
max-width: 50%;
overflow: hidden;
}[/code

Can you think of a solution for this?
Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.