OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Border around DIV when DIV is inside a cell
This page's ID:
24904
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
You need to set the padding of the table cell to 0 by specifying the padding using css in the table tag you are only affecting the tables "box" it doesn't set the properties of the cells like if you were using the padding attribute. For example [code] <HTML> <HEAD> <TITLE>DIV in a Cell "Border" Problem</TITLE> </HEAD> <BODY> <table style="background-color:#f0f; border-collapse:collapse; margin:0; padding:0;"> <tr> <td style="padding:0;"> <div style="width:200px; height:100px; background-color:#ff0; margin:0; padding:0;"> How can I get rid of this 1 pixel magenta border around the DIV and see only the yellow color, I mean, how to make the DIV take all the cell space? </div> </td> </tr> </table> </BODY> </HTML> [/code] [small](Edited by [internallink=3899]Nathus[/internallink] on 02-03-2005 22:51)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »