IE « selector « HTML CSS Q&A

Home
HTML CSS Q&A
1.align
2.anchor
3.Animation
4.attribute
5.background
6.Block
7.border
8.Button
9.checkbox
10.Class
11.color
12.column
13.cross browser
14.Development
15.div
16.doctype
17.dom
18.dreamweaver
19.dropdown
20.email
21.embed
22.Encoding
23.Eye
24.firefox
25.flash
26.flex
27.float
28.font
29.footer
30.form
31.Format
32.grid
33.height
34.htaccess
35.HTML 5
36.hyperlink
37.iframe
38.Image
39.Image Format
40.inheritance
41.input
42.internet explorer
43.JTabbedPane
44.label
45.layout
46.li ul ol
47.link
48.margin
49.media
50.Menu
51.mobile
52.Navigation
53.opera
54.overflow
55.pdf
56.position
57.print
58.query
59.regex
60.Render
61.rhino
62.scrollbar
63.selector
64.shadow
65.Shape
66.span
67.Table
68.Template
69.text
70.TextArea
71.TextBox
72.URL
73.validation
74.webkit
75.Website
76.Website Header
77.width
78.Word
79.XML
80.z index
HTML CSS Q&A » selector » IE 

1. Use double classes in IE6 CSS?    stackoverflow.com

is there any way to make IE6 understand double classes, say I have a class MenuButton with a color class and possibly a clicked class; like :

.LeftContent a.MenuButton {..general rules..}  
.LeftContent a.MenuButton.Orange ...

2. Using the ">" selector with IE6    stackoverflow.com

I have written some CSS which targets elements using the parent > child selector. Specifically for tables so I can apply certain styles to the headers and footers like this

table > ...

3. What is the replacement for the child selector?    stackoverflow.com

Since IE6 does not support the child selector (see http://kimblim.dk/csstest/#ex1), what is the alternative when dealing with this browser? I do not want to modify the markup, and I'd much ...

4. IE8 css selector    stackoverflow.com

To target elements only in IE browsers i'll use IE6:

* html #nav li ul {
    left:              ...

5. CSS attribute selector bug in IE8?    stackoverflow.com

as specified by CSS 2.1:

input[type=submit] {
}
or
input[type="submit"] {
}
must matches any input element whose "type" attribute value is exactly equal to "submit". However this selector doesn't works on IE8 (and IE7 ...

6. I want to know how give the name of css selector in IE    stackoverflow.com

I want to fit my website in IE .I want to know how i give the name of css selector in IE like firefox.Please help me!

7. Does IE ignores custom css selectors?    stackoverflow.com

IE is freaking me out. my css code looks like this:

kl {
    font-size:10pt;
    font-weight: bold;
    color:#6e90a6;
}
and my html code looks like this:
<div id="testid"><kl>test</kl>
Why ...

8. Using multiple-class selectors in IE7 and IE8    stackoverflow.com

I know IE7 & IE8 supposedly have support for using multiple CSS class selectors, but I can't seem to get it to work. CSS:

.column {
  float: left;
  display: block;
  ...

9. CSS: IE7 Selector    stackoverflow.com

How could I select IE7 with pure (valid) CSS?

10. :hover pseudo-class of CSS does not work in IE7    stackoverflow.com

I have problem with the :hover pseudo-class of CSS. I am using it like

tr.lightRow:hover {
    color:red
} 
It works in Safari and Firefox but it does not work in ...

11. CSS child selector (>) doesn't work with IE    stackoverflow.com

The following CSS works well under firefox but doesn't work under IE browser, Why?
Also, how can I make only the elements, directly under the parent element, be affected by CSS? CSS:

.box{font:24px;}
.box>div{font:18px}
.box>div>div{font:12px;}
HTML:
<div ...

12. css selector on IE    stackoverflow.com

I'm using .class1.class2 .class3 selector, where .class1.class is a combination selector and .class3 belongs to a descendant. works fine in FF, but on IE7, it doesn't work. In the css below, ...

13. Child selector problem in IE7, IE8    stackoverflow.com

I have a CSS style using child selectors in an HTML page as follows:

<html>
    <head>

        <title>MSO Bug</title>
     ...

14. Use :not() pseudo-class in IE7/IE8    stackoverflow.com

is there any way I can get the :not() pseudo-class to work in Internet Explorer 7/8? Is there any javascript that can do the same thing as the CSS3 :not()?

15. Using the CSS3 :not selector with IE - using Prototype    stackoverflow.com

I need to add a CSS style to a content <div>, which is present on all pages of my site. However, I do not want to use the new style on ...

16. Is there a way to make IE6 fail gracefully when encountering '>'?    stackoverflow.com

It's quite well known that IE6 does not support direct descendant selection with >, but what I found recently is that if you have multiple selection rules separated by commas it ...

17. IE9 css :first-child    stackoverflow.com

I have a css rule like this in my css file:

.Island_VerticalMenu:first-child { width: 100% }
However, when I view it in the developer tool of IE9, it looks like this:
:first-child.Island_VerticalMenu ...

18. IE8 z-index on before and after css selectors    stackoverflow.com

This is very frustrating.... http://jsfiddle.net/RRnm8/ works well on every browser, except for IE8... it should be displayed like this: correct version But in IE8 you get this :'( wrong ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>19. <a href='http://stackoverflow.com/questions/5594102/-active-css-selector-not-working-for-ie-and-ie'>:active css selector not working for IE8 and IE9</a><span class='articleProductElementHost'>    stackoverflow.com</span></h3><p class='articleProductElementParagraph'>Here's my <a href=site. This is the last problem of a series of cross-browser discrepancies I've experienced and solved thanks to the community. Basically, in Internet Explorer 8 and Internet Explorer ...

20. IE and :first-of-type    stackoverflow.com

I'm a beginner, so if u know other solution tell me ;) I want to make menu on my website look like this:

link / link / link / link / link
Menu is ...

21. CSS :not workaround for Internet Explorer    stackoverflow.com

The following example works in Firefox 4, but not in Internet Explorer 8: HTML:

<div class='first'>A</div>
<div>B</div>
<div>C</div>
CSS:
div:not(.first) {
    color: red;
}
What workaround would you suggest to make it work in ...

22. CSS child selector doesn't work on ie9    stackoverflow.com

i have a page like this:

<body>
<table width="100%">...</table>
<table width="100%">...</table>
<table width="100%">...</table>
<table width="100%">...</table>
</body>
what i need to do is making all those tables 85% width and horizontally centered on the page. it would be easy ...

23. Arbitrary Substring Attribute Value Selector not working in IE7    stackoverflow.com

I have a Tag cloud that i need to style. Unfortunately it has no classes and I cannot edit the code. The Problem: I'm using the following code:

.tag-cloud a[style*="xx-large"]{
font-size:140% !important;
}
To target:
<div class="tag-cloud">
<a ...

24. CSS Selectors: Possible to select ONLY the second element?    stackoverflow.com

Is this even possible?

<div class="column">
    <div> 
        <div> 
        </div>   ...

25. CSS - How to deactivate the :hover pseudo class in IE 6    stackoverflow.com

I use a hover navigation and it all works well. I'm really satisfied. But I'm also sadistic to the IE6 - so is there a CSS way to deactivate the :hover ...

26. How to get the first ClassB inside ClassA?    stackoverflow.com

how to acheive this with CSS 1.0 (IE 6.0):

.ClassA > .ClassB
{
...
}
to get the first ClassB inside ClassA?

27. how to select 'first' item with interenet explorer 7?    stackoverflow.com

lets say we have

<div id="mydiv">
   <p>blah</p>
   <p>blah</p>
   <p>blah</p>
</div>
is there a way to simulate $('#mydiv p').first() in css for internet explorer 7? thanks

28. CSS class not being applied at all in IE7-8    stackoverflow.com

<!DOCTYPE html> has been set, and html5shim.js has been included in the <head> of each page. I have the CSS:

.height_fix_container > * { margin:0; background:#fff url(../images/bg.jpg) top left no-repeat; min-height: 400px; }
.height_fix_container ...

29. CSS pseudo classes in Internet Explorer 8    stackoverflow.com

This might apply to IE7 too, I'm not sure though. I have the following CSS:

div#sidebar-right a.menu-item img:nth-child(1),
div#sidebar-right a.menu-item > *:first-child {
    position: relative;
    left: ...

30. CSS selector :active not working on child element click in IE8    stackoverflow.com

I have the following HTML structure:

<div id="ctr__Wrapper" class="wrapper">
    <div id="ctr" class="control clickable">
        <img src="logo.png">
    </div>
</div>
And the following CSS ...

31. css selectors, IE and html doctypes    stackoverflow.com

Im writing html and css in an old web application that is using the following doctype

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
If i change it to html5 doctype, the menu ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.