go41

Re: IE7 and IE6 don’t seem to recognize class :: Reply by Joern

von Joern am 21. Apr. 2010 | Keine Kommentare

It would be easier if I could see the site live.
The problem could arise if you style images in different places with a div id, lets say like #headline a img, #featured a img or #front-list img, #archive img
This #ID goes first, your class="postimg" might not be recognized.
To override a case like this you have to set img.postimg for the div id it’s in, like:

#front-list img.postimg ..

#archive img.postimg ..

or

#headline a .postimg ..
So ID is stronger than CLASS (imho)
With firefox I use firebug addon to explore the applied styles, Chrome and Safari you can with right mouse explore elements, IE you can use developer tools to find out why a style doesn’t work.
You might try to validate your site and reduce some of the errors…

http://validator.w3.org/check?uri=http% … or%2F1.767
____________________
you find me on Google+, Twitter and Facebook

(von: Joern)

Hier noch 1 weitere Ergebnisse dieses Threads:

IE7 and IE6 don’t seem to recognize class

20. Apr. 2010 (von: adamwork)

Hi allI have this code in my stylesheet....'img.postimg { float:right; margin-left:15px; margin-bottom:5px; border:1px solid #000000; }'The code of my post then looks like this... '<img src="http://www.concept-ents.com/blog/wp-content/uploads/2010/04/popcornsquare-e1271783254679.jpg" alt="Popcorn Logo" title="Popcorn Logo" width="150" height="150" class="postimg" />'Image aligns to the left fine in…

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: