homepage Welcome to WebmasterWorld Guest from 54.204.215.209
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: DrDoc

CSS Forum

    
border control
IE noncompliance?
brdwlsh




msg:1214636
 7:10 am on Feb 7, 2004 (gmt 0)

part of my page contains a table--1 row 2 columns.

in the left column is a <p> box element(class="left") with a border on all sides.
in the right column is a <p> box element(class="right") with a border on all sides but the left.

ideally, they should match up so as to appear like it is one box with a single outer border and a dividing line in the middle.

i have margin:0px 0px 0px 0px; in both classes.
i have no table-level margin/padding tags

this works in mozilla but not IE 5.2--i am using a mac and have not tested on PC yet.
IE gives me a small space between the elements--very unattractive.

is there any way around this or is it just an IE thing?
i'm very new to CSS, am i missing something--doing this the wrong way?

thanks

 

aevea




msg:1214637
 4:58 pm on Feb 7, 2004 (gmt 0)

Did you define
<table cellspacing="0"> in the html? Unfortunately, I don't think there's any way to do it with css.

Adam

BitBanger




msg:1214638
 2:55 pm on Feb 8, 2004 (gmt 0)

Try:

table (border-collapse: collapse;}

brdwlsh




msg:1214639
 7:00 pm on Feb 8, 2004 (gmt 0)

the cellpadding thing worked a little bit--the division is still visible but much less.

the table style didn't work--even tried it with tr and td. i was hoping it would work!

thank you both

Purple Martin




msg:1214640
 1:02 am on Feb 9, 2004 (gmt 0)

The table style that BitBanger posted had a typo - one of the brackets was the wrong sort. Try this:

table {border-collapse: collapse;}

brdwlsh




msg:1214641
 3:31 am on Feb 9, 2004 (gmt 0)

good eye--i saw it too :}

thanks though.

maybe it doesn't work properly with IE on mac.

Purple Martin




msg:1214642
 4:17 am on Feb 9, 2004 (gmt 0)

That wouldn't surprise me. I've heard people say many times that IE on Mac makes a mess of things.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved