Re: [css-d] Firefox-mac specific css

2007-03-22 Thread Rolf Mortenson
Thanks George - I suppose it will have to be javascript On Mar 22, 2007, at 12:22 AM, George Ornbo wrote: If you are using PHP you can use HTTP_USER_AGENT to sniff. Here's a quick and dirty script. If not you can use Javascript - try googling for Javascript sniffers. Plenty out there!

Re: [css-d] Firefox-mac specific css

2007-03-22 Thread Rolf Mortenson
On Mar 22, 2007, at 6:59 AM, Felix Miata wrote: On 3/22/07, Rolf Mortenson [EMAIL PROTECTED] wrote: I've stumbled on a bug that affects Firefox on Mac (not Win), and confirmed it in the mozilla bug logs. I've also found an apparent fix involving our good friend overflow: auto, but I'd

[css-d] Firefox-mac specific css

2007-03-21 Thread Rolf Mortenson
I've stumbled on a bug that affects Firefox on Mac (not Win), and confirmed it in the mozilla bug logs. I've also found an apparent fix involving our good friend overflow: auto, but I'd prefer to feed it only to Firefox mac... I'm so used to targeting IE, that I can't think of how you

[css-d] targeting the parent

2007-03-15 Thread Rolf Mortenson
Is there a way to target the parent of an element via css? What I want to do is when an anchor is hovered, change it's parent's background (specifically, an anchor within a td), but I can't think of how to do that - it might not be possible. Thanks!

[css-d] aligning data with css

2007-03-14 Thread Rolf Mortenson
I continue to try and find the best solution for aligning data in large tables. A week or so ago Philippe suggested: td:first-child+td+td+td {text-align:right;} will select the 4th column in good browsers (including IE7). For IE 6, you need to use the col element. table

[css-d] aligning data in large tables

2007-03-08 Thread Rolf Mortenson
What is the optimal way to align data in a very large table? - let's say you've got a few thousand rows, and 10 columns, and you want data in 3 of those columns to be aligned right (the rest align left). Is it preferable to give each td in those columns a class -- td class=right? or is it

Re: [css-d] aligning data in large tables

2007-03-08 Thread Rolf Mortenson
td:first-child+td+td+td {text-align:right;} will select the 4th column in good browsers (including IE7). For IE 6, you need to use the col element. table colgroupcolcolcolcol class=alignRightcolcol/ colgroup col.alignRight {text-align:right;} Note that you have to put the 2

[css-d] 100% height challenges...

2007-03-06 Thread Rolf Mortenson
I've been building this layout concept for a project that does everything I want it to... almost. The basic markup is where I want it to be, but I'm having one issue. You can view it here: http://tinyurl.com/25r3pq The layout is done via css, and there's a little javascript to open and

[css-d] *font-size?

2007-03-01 Thread Rolf Mortenson
I was just reading through the YUI documentation, and noticed in their fonts.css the following: body {font:13px arial,helvetica,clean,sans-serif;*font- size:small;*font:x-small;} What is the * doing in front of font-size and font -- or, perhaps I should ask, what browser are they targeting

[css-d] IE6 - float + overflow:auto problems

2007-02-28 Thread Rolf Mortenson
I was building a proof-of-concept for myself, and bumped into a problem in IE that I can't seem to solve. test page is posted here, with all css in the head: http:// tinyurl.com/ytr6qf I've got a basic structure like this: html body div id=wrapper div id=topTop/div div

[css-d] IE6 - float + overflow:auto problems

2007-02-28 Thread Rolf Mortenson
Rolf Mortenson wrote: I was building a proof-of-concept for myself, and bumped into a problem in IE that I can't seem to solve. http://tinyurl.com/ytr6qf ...in IE6, div.big gets pushed down below the floated div#togglebar. I've tried every trick I can think of, but it won't cooperate

Re: [css-d] IE6 - float + overflow:auto problems

2007-02-28 Thread Rolf Mortenson
Easy to solve for that case, by adding... * html .big {float: left; margin: 0 -175px 0 -10px;} ...using negative margins on floats. However, this solution will only work when you know the (more or less exact) element-width and how much to subtract from it. regards Georg So...

[css-d] (no subject)

2007-02-28 Thread Rolf Mortenson
Gunlaug Sørtun wrote: It will also fail when the div is expanded, because you can't clear below '.big'. So, the only solution seems to be to wrap a div around everything below #togglebar, and float that div with a negative backside margin - only in IE6 and below. Well, I built an

Re: [css-d] IE6 - float + overflow:auto problems

2007-02-28 Thread Rolf Mortenson
sorry -- that went out without a proper subject line. Gunlaug Sørtun wrote: It will also fail when the div is expanded, because you can't clear below '.big'. So, the only solution seems to be to wrap a div around everything below #togglebar, and float that div with a negative backside

[css-d] Screen resolution vs page width

2007-01-04 Thread Rolf Mortenson
Several months back (maybe 5 or 6 months?) there was a discussion on the list about designing for various screen resolutions in which some members offered their preferred page width model for different screen resolutions - in other words, accounting for scroll bars and typical browser

[css-d] If a td is display:none; does it exist?

2006-05-01 Thread Rolf Mortenson
I have a specific CSS question that may actually be part of a bigger non-CSS issue, so if anyone thinks the answer lies outside the scope of the list, please let me know off-list. The basic question is, if a td within a table is given the css rule display:none; does that td exist for the

Re: [css-d] overflow strategy for a fixed width table?

2005-12-31 Thread Rolf Mortenson
Cool technique! I don't think (on first glance) it will work in this particular case - the programmers on the back end will cringe if I suggest a jump to another page for the full details. But this example: http://www.satzansatz.de/cssd/tmp/dropitII.html gives me an idea for letting users

[css-d] display: table-cell --- why?

2005-12-07 Thread Rolf Mortenson
I posed this question on another thread, but as Micky wisely pointed out, that be hijackin' a thread... so... Could someone please explain the use of display:table-cell? I can never seem to get my brain around the how's and why's Like, why wouldn't you use a table instead of using divs that

[css-d] div won't expand/contract in IEwin

2005-11-29 Thread Rolf Mortenson
I've got a module from a fairly complex page that uses some javascript to toggle the display of a text box if a user selects other from the dropdown menu. When the text box is displayed, it should push everything below it further down the page, expanding the div that contains each row of