Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 06-13-2011, 04:18 AM styling table cell
Ultra Talker

Posts: 254
Trades: 0
i have a table and when i add the following css it does not work
<table>
<tr><td>content</td></tr>

<div style="float: left; width: 100%; height: 5px;">content</div>

<tr><td>content</td></tr>
</table>

if i add
<tr><td><div style="float: left; width: 100%; height: 5px;">content</div></td></tr>

this also does not work i have tried
<tr><td valign="top" height="5">content</td></tr> but in ie it is taking more than 5px
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-13-2011, 06:26 AM Re: styling table cell
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
The <tr> tag represents a row in the table and the <td> a cell in the table. You can't add content (your div tag) in between the rows. And besides, your css code is placed in the div tag, so it would only affect the div tag, not the table.

What exactly are you trying to do?
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is online now
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 06-26-2011, 03:39 PM Re: styling table cell
Novice Talker

Posts: 4
Trades: 0
Lizciz is right. you can add data only between <td> and </td>
__________________

Please login or register to view this content. Registration is FREE
||
Please login or register to view this content. Registration is FREE
||
Please login or register to view this content. Registration is FREE
sarashabbir is offline
Reply With Quote
View Public Profile Visit sarashabbir's homepage!
 
Old 07-01-2011, 03:43 AM Re: styling table cell
Experienced Talker

Posts: 35
Trades: 0
Hello ,
Float left and right will not work inside the table untill width to the td is not set

even though to floats left we can see output untill td 's width is extended.
__________________
Magento Themes Experts

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
shankar.adodis is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to styling table cell
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.30287 seconds with 12 queries