HighDots Forums  

Internet Explorer And CSS problems?

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Internet Explorer And CSS problems? in the JavaScript discussion (multi-lingual) forum.



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

Default Internet Explorer And CSS problems? - 07-19-2008 , 09:49 PM






I hope this is a right forum for my problem...

I used javascript and DOM to create dynamically nested
<form>/<div>/<input> etc inside a wrapper "DIV". Then I used CSS to
style the elements to achieve the look that I want. I developed this
under Firefox, and it works perfectly.

Then I was asked to make it work under IE. Overall, it looks OK as is
but some elements are mis-aligned. So I decided to tweak CSS to line
them up in IE. That's where my problem started.

I liberally used ID's and class ID's to address the elements inside the
wrapper DIV. When I tried to address an <div> element which I have a
class ID of "twos", IE seems to ignore it. Eg.

form#events div.twos

If I used this format: form#events div, IE can see and style it.

My question: What I really want is to use this selector: twos


I can't find any explanation to this IE problem on the new or books. Do
you have any experience with this problem? Any hack to bypass this?

Thank you.

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 - 2010, Jelsoft Enterprises Ltd.