HighDots Forums  

IE6 first-child

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss IE6 first-child in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff
 
Posts: n/a

Default IE6 first-child - 04-06-2009 , 11:18 AM






I'd like a hack for IE6's lack of support for first-child (until IE6
fades away).

I found a funky javascript trick. Is there anything better, even in
javascript?

Jeff

Reply With Quote
  #2  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: IE6 first-child - 04-06-2009 , 11:26 AM






On Mon, 6 Apr 2009, Jeff wrote:

Quote:
I'd like a hack for IE6's lack of support for first-child
(until IE6 fades away).
<xxx class="first">

Quote:
I found a funky javascript trick. Is there anything better,
even in javascript?
Even better is not to rely on Javascript.

--
In memoriam Alan J. Flavell
http://www.alanflavell.org.uk/charset/


Reply With Quote
  #3  
Old   
Jeff
 
Posts: n/a

Default Re: IE6 first-child - 04-06-2009 , 02:34 PM



Andreas Prilop wrote:
Quote:
On Mon, 6 Apr 2009, Jeff wrote:

I'd like a hack for IE6's lack of support for first-child
(until IE6 fades away).

xxx class="first"

I found a funky javascript trick. Is there anything better,
even in javascript?

Even better is not to rely on Javascript.
I don't write content, but rather set up pages for others to edit.
Inflicting on others to add special classnames and styling, when this
should just be plain html, I find to be cruel.

I'm converting a site where the markup looks like this:

<div class='maincontent'>
<strong>
<h2 style='font-size: 15px;'>About XXX Writing</h2>
<img src="images/xxx_pic.jpg" alt="XXX" name="" width="180" height="251"
align="right" style="margin-right: -4px; margin-left: 16px; margin-top:
-4px;"/></strong>

<p style='margin-bottom: 28px;'>

to something where it looks like this:

<h2>About XXX Writing</h2>

<img src="images/xxx_pic.jpg" alt="XXX">

<p>...

And yet maintaining the exact same look.

Jeff
Quote:

Reply With Quote
  #4  
Old   
Jim Moe
 
Posts: n/a

Default Re: IE6 first-child - 04-06-2009 , 02:50 PM



On 04/06/09 08:18 am, Jeff wrote:
Quote:
I'd like a hack for IE6's lack of support for first-child (until IE6
fades away).

I found a funky javascript trick. Is there anything better, even in
javascript?

I could not possibly say. You do not provide any reference to the funky
version so there is no way to compare it against alternate versions.
There is IE's conditional statements for providing IE version specific
style. It has to be the <head> section though.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
  #5  
Old   
Jeff
 
Posts: n/a

Default Re: IE6 first-child - 04-06-2009 , 06:01 PM



Jim Moe wrote:
Quote:
On 04/06/09 08:18 am, Jeff wrote:
I'd like a hack for IE6's lack of support for first-child (until IE6
fades away).

I found a funky javascript trick. Is there anything better, even in
javascript?

I could not possibly say. You do not provide any reference to the funky
version so there is no way to compare it against alternate versions.
See what you make of this:

http://www.pathf.com/blogs/2008/04/hacking-the-fir/

Quote:
There is IE's conditional statements for providing IE version specific
style. It has to be the <head> section though.
I'll look into that, although I don't think it will help here, but
it's a bit I should know. I rarely use hacks, but I think for a small
bug in a disappearing browser, it's acceptable.

Jeff
Quote:

Reply With Quote
  #6  
Old   
Jeff
 
Posts: n/a

Default Re: IE6 first-child - 04-06-2009 , 06:23 PM



Jim Moe wrote:
Quote:
On 04/06/09 08:18 am, Jeff wrote:
I'd like a hack for IE6's lack of support for first-child (until IE6
fades away).

I found a funky javascript trick. Is there anything better, even in
javascript?

I could not possibly say. You do not provide any reference to the funky
version so there is no way to compare it against alternate versions.
I just found this:

http://dean.edwards.name/IE7/

I need the png alpha fix anyways, I'll see if it works.

Jeff


Quote:
There is IE's conditional statements for providing IE version specific
style. It has to be the <head> section though.


Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.