Re: [css-d] styling tables

2009-09-13 Thread Chang Huang
I think it would be much easier to wrap the table within a and style that instead of the table. On 11/09/2009, at 2:42 AM, jeffrey morin wrote: > Hi everyone! > I have to build a table that has rounded corners on the top. Does > anyone > have any good info on styling tables? I tried putting

Re: [css-d] Can I apply :last-child to a class?

2009-09-06 Thread Chang Huang
K. Korpela wrote: > Chang Huang wrote: > >> I've forgotten to mention that the list is >> dynamically generated, sorry, so it's not possible to predict the >> last >> 'special' item. > > Then the generating process should be modified

Re: [css-d] Can I apply :last-child to a class?

2009-09-05 Thread Chang Huang
it. On 6 September, at 6 September 2:46 PM, David Laakso wrote: > Chang Huang wrote: >> Hi, I'm trying to get the last element that belongs to a specific >> class. For example, >> >> >> aaa >> bbb >> ccc >> ddd

[css-d] Can I apply :last-child to a class?

2009-09-05 Thread Chang Huang
Hi, I'm trying to get the last element that belongs to a specific class. For example, aaa bbb ccc ddd eee fff ggg hhh I need to get the last 'li' with the class 'special' ('ggg'), is it possible to do that without JS? I tried '.

Re: [css-d] How to 'clear' absolute?

2008-10-30 Thread Chang Huang
Hi, yes and no, because the element that follows the parent div with be on top of the parent div itself. What I'm trying to do is make this markup into tabs: Tab1 Tab 1 Content Tab2 Tab 2 Content Tab3 Tab 3 Content So far I've come up with 2 solutions: 1. Move all tabs (h3) up using P:

[css-d] How to 'clear' absolute?

2008-10-29 Thread Chang Huang
Hi, is there a way to clear a absolute positioned element? For example: some content some more content How do I make the second div appear after the first one and not on top of it? Assume that I can't use float and the height of the first div is unknown (its content is

Re: [css-d] text-transform both lowercase AND capitalize?

2008-09-23 Thread Chang Huang
'Text' (capitalized) using just CSS. Unfortunately, it seems that we can't do that with CSS, yet. I might have to do it with javascript. Thanks all. On Fri, Sep 19, 2008 at 9:33 PM, Jack Timmons <[EMAIL PROTECTED]> wrote: > On Fri, Sep 19, 2008 at 12:08 AM, Holly Bergevin &l

Re: [css-d] text-transform both lowercase AND capitalize?

2008-09-18 Thread Chang Huang
Thanks all. It would be nice to have the option 'text- transform:lowercase capitalize;' though. On 18/09/2008, at 3:51 AM, Andrew Frazier wrote: > On Wed, 17 Sep 2008 18:29:08 +0100, Keith DiSarno <[EMAIL PROTECTED]> > wrote: > >> So you want to go... >> WORD --> word --> WORD >> >> ?? >> > > N

Re: [css-d] text-transform both lowercase AND capitalize?

2008-09-17 Thread Chang Huang
No, I don't want small caps, I want capitalize, but the problem is I can't capitalize something that is in big caps. So I want to transform them to lowercase first and them capitalize it. Todd wrote: > text-transform: small-caps; is what you do. > > Chang Huang wrote: >

[css-d] text-transform both lowercase AND capitalize?

2008-09-17 Thread Chang Huang
Something like 'text-transform: lowercase capitalize;' Is it possible to do that? I can't do text-transform twice, can I? __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://c

Re: [css-d] width:100% + padding/margin question

2008-08-24 Thread Chang Huang
Oh, sorry, I forgot to mention that #box2 is floated, thus it does not occupy the whole width of #box1. Without setting #box2 to width:100%, I believe that its width relies on how long the content is. Correct me if I'm wrong. Thanks On 22/08/2008, at 6:00 PM, Bill Brown wrote: &g

[css-d] width:100% + padding/margin question

2008-08-21 Thread Chang Huang
Hi, If I have: Code: Select all and I do: Code: Select all #box1 { width:500px; height:200px; } #box2 { width:100%; height:100%; padding:10px; } The 10px padding of #box2 will be allocated outside of #box1. According to the box model, this is the cor

[css-d] IE6 Pushdown Float Problem

2008-08-06 Thread Chang Huang
Hi, I'm having this problem when a floated container is pushed down when I resize the window on IE6, I'm giving up after a couples of hours without finding the root of the problem =( Here's the code: http://www.html-channel.com/pastebin.php?id=5 div#main-column is pushed down in this case w

[css-d] Expandable Divs

2008-05-06 Thread Chang Huang
Hi all, I have a situation where 2 divs are sitting next to each other (floated left and right), sometime the right div is not required and it is not shown, is it possible for the left div to take over that place left by the right div? Thanks. __

Re: [css-d] Using CSS to control PDF for print

2008-02-03 Thread Chang Huang
ed in italic or bold has bad spacing issue, they seem to be overprinting or otherwise leaving big gap between them. Could this be a CSS problem or CF problem? Thanks. On Sat, Feb 2, 2008 at 9:12 AM, Michael Adams <[EMAIL PROTECTED]> wrote: > On Fri, 01 Feb 2008 18:46:35 +1100 > Chang Huan

[css-d] Using CSS to control PDF for print

2008-02-01 Thread Chang Huang
Hi all, I've been reading about how to use CSS to control the layout of a web for print, I wonder is there's a optimum way to style a web-generated PDF for print. I've been googling it for a while but with no success. Can anyone point me to the right direction please? Tha