Go Back   SitePoint Forums > Forum Index > Design Your Site > Web Page Design > CSS
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old Nov 3, 2009, 23:10   #8
RyanReese
CSS Guru in Training
 
RyanReese's Avatar
 
Join Date: Oct 2008
Location: Whiteford, MD
Posts: 8,695
Quote:
Originally Posted by ralph.m View Post
I've certainly read that, although I don't quite know what's meant by "a generated display value" in relation to a table element.
I assumed you did.

Ok so lets play this. The following elements generate this type of display
<p>-block
<span>inline
<table>table
So the border-collapse will only work for elements that generate display:table, like <table> or elements that are manually given display:table or display:inline-table.

AKA you can give span{display:table;} and as long as the browser supports it it will now make use of border-collapse

Get it?
Quote:

I figured they would be the case, but still, is just doesn't seem right to have it all as one rule like dotJoon proposed. What do you think?
I don't think it should all be in the same rule as you are applying border-collapse to elements which don't use it. I would manually give that to the table via CSs instead of being lazy with the universal selector
RyanReese is online now   Reply With Quote
 

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
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
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 09:14.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved