Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7646277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:09:59+00:00 2026-05-31T10:09:59+00:00

Does anyone know how I can style dynamic elements created via the DOM method

  • 0

Does anyone know how I can style dynamic elements created via the DOM method createElement in IE7 with CSS.

As some of you may or may not already know, IE7 seems to refuse to style elements that are created using the DOM api but will quite happily style them using innerHTML.

It seems to be a bug with IE7 only as IE8 has no problem with styling these dynamic elements.

On GitHub I forked this repo: https://github.com/ChiperSoft/Kalendae and wanted to convert it to support IE7 (it states it only supports IE8 but at first I noticed some basic things I could fix to get it working in IE7 and then I realised the main problem supported IE7 was again due to this bug where IE7 chokes on dynamic elements).

(for the sake of experiment…) I tried loading the CSS after the script had finished (just as a way to test to see if IE7 would render the styles for the DOM created elements) but that didn’t work.

And it’s not possible to create these dynamic elements via innerHTML because of the requirements of the script and the dynamic nature of the elements (it’s a date picker script).

So ultimately I need to try and work out how to fix this bug with IE7.

Any ideas?

Kind regards,
Mark

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T10:10:00+00:00Added an answer on May 31, 2026 at 10:10 am

    I had this issue before but I was trying to submit a dynamically added form element… basically, your elements aren’t rendering. Try adding them to a container. I can’t remember off hand, but I believe I used a dynamically added DIV tag as my container.

    EDIT
    

    Yep… I was correct. You need to append the new element to a DIV. See this question/answer javascript createElement(), style problem

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know what CSS can be applied to these elements to make the
Does anyone know of a tool that I can use to find explicit C-style
Does anyone know how can I detect the browser type in css? What I
Does anyone know how I can update the style attribute of a division using
Does anyone know how to create a wpf Style in code behind, I can't
Does anyone know of an online css optimizer / formatter that can handle css3
Does anyone know how can I cut a string and then assign into an
Does anyone know where can I find recent data on PHP4 vs PHP5 market
Does anyone know how can I catch a mail error (error is displayed while
Does anyone know how can I edit a subitem on a listView? I've tried

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.