Re: [css-d] alternating coloured rows in dynamic website

2006-12-12 Thread Andy Pemberton
Generally, I like to add a style rule for regular TRs and then a class for either TR.odd or TR.even (whichever you'd like). tr{ background-color: #eee; } tr.odd{ background-color: #ccc; } This way, you only need to print out the 'class="odd"' on the odd rows, which makes your pages smaller

Re: [css-d] Div show/hide

2006-12-12 Thread Andy Pemberton
Ah, that method will work, Mark - but I would argue against using the javascript pseudo-protocol for a production site. The reason has to do with usability. Often times, embedding the javascript pseudo protocol in a link will prevent users from being able to right click and open the link in a new

Re: [css-d] Div show/hide

2006-12-11 Thread Andy Pemberton
Russ: Though this is more of a javascript/html dom question, I'll answer anyway. You must return false in the 'onclick' method of the link you're using to fire this javascript event. This will prevent the browser from following the href attribute. So your markup should look like: Truth In Savin

Re: [css-d] IE7 and IE6 coexisting

2006-12-11 Thread Andy Pemberton
This article is a handy reference for running multiple versions of IE: http://www.positioniseverything.net/articles/multiIE.html I've recently installed the package with installers (by *Yousif Al Saif) and have had no problems with it. Good luck, Andy * ___

Re: [css-d] input.text selector not working

2006-12-08 Thread Andy Pemberton
The syntax you've shown (input.text) is a class selector, not an attribute selector. The rule: input.text{...} would match the following markup:

Re: [css-d] Rule specific hack or conditoinal tag inside CSS

2006-12-08 Thread Andy Pemberton
Yes - this is generally the way to use Conditional Comments to filter CSS rules to IE. Here's a snippet of code to illustrate the point: ... ... So generally, you'd add all the normal rules in the first style sheet, theme.css, then override them specifically for IE in the IE-only style sheet,

Re: [css-d] Rule specific hack or conditoinal tag inside CSS

2006-12-08 Thread Andy Pemberton
The best practice method for conditionally filtering CSS rules to IE is a proprietary microsoft technology called Conditional Comments. http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp Andy __ css-discuss

Re: [css-d] need expert css/javascript help please

2006-12-06 Thread Andy Pemberton
OK, got this working. There are multiple problems here - so I'd really suggest you start by validating your HTML. The problem you're seeing in Safari has to do with the nested DIV inside of your div#theImages container. The problem is you're defining a height on this container that is less than

Re: [css-d] tooltip question

2006-12-06 Thread Andy Pemberton
You would probably want to toggle style.display = 'none' and style.display = '' or block/inline accordingly. Changing visibility will cause these 'hidden' contains to still occupy their space in the flow of the document. Andy On 12/6/06, Mark J. Reed <[EMAIL PROTECTED]> wrote: > > On 12/6/06, Ma

Re: [css-d] display problem is some versions of IE6

2006-12-06 Thread Andy Pemberton
If you're seeing a problem in certain versions of IE, please be sure to include the build number of the IE version you're experiencing the problem. To see the build number, in IE's toolbar - hit help, about internet explorer. I see no problem in my build (6.0.2900 SP2) Andy* * For example, go to

Re: [css-d] Site check - logo displays incorrectly

2006-11-29 Thread Andy Pemberton
Jeralyn: Replace your H1 and H1 A selector rules with the following: #header h1 { position: relative; top:43px; margin:0; width: 260px; height: 60px; } #header h1 a { position:absolute; top:0;left:0; display: block; background: url('images/sc_logo.jpg') no-repeat right top; height:100%; width:100

Re: [css-d] Collapsing div in IE

2006-11-29 Thread Andy Pemberton
The problem you are seeing is a result of not properly containing the image floated to the left (.imgbedside) You need to either add markup to clear the element (with for example) or implement a no-markup clearing solution. References - http://www.complexspiral.com/publications/containing-float

Re: [css-d] Floats not floating in IE

2006-11-29 Thread Andy Pemberton
Mark: This is quite an interesting case. Aparrently, applying "hasLayout" to the #header_right element is causing a rendering bug in IE that is adding extra space between the #header_left and #header_right elements. See the reference below for a description of "hasLayout" and its effects in IE. S